ionic cordova构建显示棉绒警告的Android

时间:2019-08-02 07:33:31

标签: angular typescript ionic-framework

运行“ ionic build android”时收到以下警告

有人可以帮忙吗?

[12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/variables.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/Account.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/AccountTemplate.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/BankCodes.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/BillPayments.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/Card.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/Configuration.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/ContactInfo.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/EZcash.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/Ecard.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/ForgotPassword.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/FundsReceived.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/GenarateCVV.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/GetSocialPay.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/ImageUpload.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse200.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse2001.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse2002.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse2003.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse2004.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse2005.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse2006.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse2007.ts but found no valid, enabled rules for this file type and file path in the resolved configuration. [12:00:40][Step 2/4] Tried to lint /Users/ibl/BuildAgent/work/57cc7c2dbfdcfaba/src/model/InlineResponse2008.ts but found no valid, enabled rules for this file type and file path in the resolved configuration.

离子信息

cli软件包:(/ Users / dev / Documents / IB / PSVB-MBL / node_modules)

@ionic/cli-utils  : 1.19.3
ionic (Ionic CLI) : 3.20.1

全局软件包:

cordova (Cordova CLI) : 7.1.0 

本地软件包:

@ionic/app-scripts : 3.2.4
Cordova Platforms  : android 7.1.0
Ionic Framework    : ionic-angular 3.9.0

系统:

Android SDK Tools : 26.1.1
Node              : v9.10.1
npm               : 5.6.0 
OS                : macOS
Xcode             : Xcode 10.2.1 Build version 10E1001

环境变量:

`ANDROID_HOME : /Users/dev/Library/Android/sdk`

其他:

`backend: pro`

1 个答案:

答案 0 :(得分:1)

  

以下是问题链接:https://github.com/palantir/tslint/issues/3735

在您的tslint.json中 在tslint.json

中添加新规则
"jsRules": {
    "no-empty": true
}