天天看点

AP Spartacus central Travis build的lint环节

起始命令:

Running styleslint

260yarn run v1.22.5

261$ stylelint “{projects,feature-libs}/**/*.scss”

262Done in 1.02s.

263Validating code linting

264Linting “storefrontapp”…

Lint warnings found in the listed files.

680Linting “storefrontlib”…

681/home/travis/build/SAP/spartacus/projects/core/src/auth/user-auth/user-auth.module.ts:23:16

682WARNING: 23:16 deprecation getStableConfig is deprecated: since 3.0, use getStable() instead

683

684/home/travis/build/SAP/spartacus/projects/core/src/cart/cart-persistence.module.ts:12:16

685WARNING: 12:16 deprecation getStableConfig is deprecated: since 3.0, use getStable() instead

686

687/home/travis/build/SAP/spartacus/projects/core/src/cart/cart.module.ts:22:24

688WARNING: 22:24 deprecation CartPageMetaResolver is deprecated: since 3.1, in future versions we’ll drop this service as the logic

689is no longer specific since we introduce backend driven robots.

690

691/home/travis/build/SAP/spartacus/projects/core/src/cart/facade/cart-voucher.service.ts:57:37

692WARNING: 57:37 deprecation ADD_VOUCHER_PROCESS_ID is deprecated: since 2.0

693WARNING: 68:39 deprecation ADD_VOUCHER_PROCESS_ID is deprecated: since 2.0

694WARNING: 79:39 deprecation ADD_VOUCHER_PROCESS_ID is deprecated: since 2.0

695WARNING: 89:41 deprecation CartResetAddVoucher is deprecated: since 2.0

AP Spartacus central Travis build的lint环节

不同的文件夹分别进行lint:

AP Spartacus central Travis build的lint环节

lint执行完毕之后,执行单元测试 unit test 代码:

AP Spartacus central Travis build的lint环节

继续阅读