WMS_MAIN/lint_result.txt
liufumingren abf2c4d94a 1
2026-05-29 16:47:38 +08:00

201 lines
24 KiB
Plaintext


> wms@1.0.0 lint
> eslint . app/service/systems/order_express.js app/service/systemMethods/order/index.js test/app/service/systems/order_express.bindExpressPackageMaterial.test.js test/app/service/systemMethods/order/index.bindExpressPackageMaterial.test.js
D:\wms\app\model\platform.js
9:19 error 'INTEGER' is assigned a value but never used no-unused-vars
D:\wms\app\service\im.js
78:1 warning Missing JSDoc @param "data" type jsdoc/require-param-type
D:\wms\app\service\systemMethods\index.js
269:1 warning Missing JSDoc @param "platformCode" declaration jsdoc/require-param
275:41 error A space is required after ',' comma-spacing
478:13 error 'customerCodes' is assigned a value but never used no-unused-vars
534:19 error Strings must use singlequote quotes
534:32 error A space is required after ',' comma-spacing
534:66 error A space is required after ',' comma-spacing
534:67 error Strings must use singlequote quotes
534:74 error Missing semicolon semi
545:7 error Expected space(s) after "if" keyword-spacing
545:44 error Missing space before opening brace space-before-blocks
546:37 error A space is required after '[' array-bracket-spacing
546:71 error A space is required before ']' array-bracket-spacing
1750:42 error A space is required after ',' comma-spacing
1752:5 error Expected space(s) after "if" keyword-spacing
1752:30 error Missing space before opening brace space-before-blocks
1756:21 error Missing space before value for key 'templatestype' key-spacing
1756:21 error Strings must use singlequote quotes
1756:26 error Missing trailing comma comma-dangle
1761:13 error Missing space before value for key 'token' key-spacing
1762:7 error Expected property shorthand object-shorthand
1800:1 error Expected indentation of 6 spaces but found 10 indent
1932:63 error A space is required after ',' comma-spacing
1932:64 error Strings must use singlequote quotes
1950:65 error Strings must use singlequote quotes
2129:3 warning Missing JSDoc @param "s" declaration jsdoc/require-param
2129:3 warning Missing JSDoc @param "platid" declaration jsdoc/require-param
2137:54 error A space is required after ',' comma-spacing
2137:63 error A space is required after ',' comma-spacing
2162:5 error Trailing spaces not allowed no-trailing-spaces
D:\wms\app\service\systems\express_platform.js
433:17 error Strings must use singlequote quotes
433:46 error A space is required after ',' comma-spacing
433:75 error Missing semicolon semi
502:1 error Trailing spaces not allowed no-trailing-spaces
558:1 error Trailing spaces not allowed no-trailing-spaces
D:\wms\app\service\systems\print\printData.js
5:7 error 'result' is assigned a value but never used no-unused-vars
D:\wms\app\service\systems\shops.js
639:18 error 'service' is assigned a value but never used no-unused-vars
642:11 error 'warehouseId' is assigned a value but never used no-unused-vars
D:\wms\config\config.local.js
1:7 error 'app' is assigned a value but never used no-unused-vars
D:\wms\database\migrations\20260506103000-add-box-fields-to-wms_receiving_detail.js
78:32 error 'Sequelize' is defined but never used no-unused-vars
D:\wms\database\migrations\20260511120000-add-wave-prefix-to-wms_wave_strategy.js
12:30 error 'Sequelize' is defined but never used no-unused-vars
D:\wms\database\migrations\20260513090000-add-last-login-time-to-wms_print_computer.js
24:30 error 'Sequelize' is defined but never used no-unused-vars
D:\wms\database\migrations\20260513113000-create-wms_order_wave_index.js
83:30 error 'Sequelize' is defined but never used no-unused-vars
D:\wms\database\migrations\20260514110000-add-subject-config-to-wms_print_stations.js
26:1 warning @param "Sequelize" does not match an existing function parameter jsdoc/check-param-names
D:\wms\database\migrations\20260514123000-drop-wms_print_station_express.js
10:28 error 'Sequelize' is defined but never used no-unused-vars
D:\wms\database\migrations\20260528100000-drop-platid-from-wms-platform.js
68:3 error Newline required at end of file but not found eol-last
D:\wms\db_query.js
9:17 error Missing trailing comma comma-dangle
18:11 error A space is required after '[' array-bracket-spacing
18:27 error A space is required before ']' array-bracket-spacing
21:11 error A space is required after '[' array-bracket-spacing
21:25 error A space is required before ']' array-bracket-spacing
24:11 error A space is required after '[' array-bracket-spacing
24:23 error A space is required before ']' array-bracket-spacing
29:11 error A space is required after '[' array-bracket-spacing
29:22 error A space is required before ']' array-bracket-spacing
29:48 error Strings must use singlequote quotes
30:11 error 'migrationName' is assigned a value but never used no-unused-vars
36:13 error A space is required after '[' array-bracket-spacing
36:32 error A space is required before ']' array-bracket-spacing
36:58 error Strings must use singlequote quotes
38:17 error Empty block statement no-empty
D:\wms\run-target-migration.js
1:20 error 'DataTypes' is assigned a value but never used no-unused-vars
D:\wms\run_task.js
1:20 error 'DataTypes' is assigned a value but never used no-unused-vars
D:\wms\scripts\db-query-runner.js
8:34 error A space is required after '{' object-curly-spacing
8:43 error Missing space before value for key 'success' key-spacing
8:102 error A space is required before '}' object-curly-spacing
18:36 error A space is required after '{' object-curly-spacing
18:45 error Missing space before value for key 'success' key-spacing
18:110 error A space is required before '}' object-curly-spacing
25:36 error A space is required after '{' object-curly-spacing
25:45 error Missing space before value for key 'success' key-spacing
25:105 error A space is required before '}' object-curly-spacing
30:34 error A space is required after '{' object-curly-spacing
30:43 error Missing space before value for key 'success' key-spacing
30:98 error A space is required before '}' object-curly-spacing
38:34 error A space is required after '{' object-curly-spacing
38:43 error Missing space before value for key 'success' key-spacing
38:108 error A space is required before '}' object-curly-spacing
53:34 error A space is required after '{' object-curly-spacing
53:43 error Missing space before value for key 'success' key-spacing
53:95 error A space is required before '}' object-curly-spacing
60:13 error A space is required after '[' array-bracket-spacing
60:18 error A space is required before ']' array-bracket-spacing
71:32 error A space is required after '{' object-curly-spacing
71:41 error Missing space before value for key 'success' key-spacing
71:66 error A space is required before '}' object-curly-spacing
D:\wms\task_script.js
1:20 error 'DataTypes' is assigned a value but never used no-unused-vars
3:7 error 'path' is assigned a value but never used no-unused-vars
4:7 error 'fs' is assigned a value but never used no-unused-vars
D:\wms\temp_check_json.js
6:57 error Expected '===' and instead saw '==' eqeqeq
D:\wms\temp_count_brackets.js
3:86 error Expected '===' and instead saw '==' eqeqeq
D:\wms\temp_find_headers_close.js
3:86 error Expected '===' and instead saw '==' eqeqeq
9:9 error Expected '===' and instead saw '==' eqeqeq
11:9 error Expected '===' and instead saw '==' eqeqeq
12:14 error Expected '===' and instead saw '==' eqeqeq
D:\wms\temp_find_missing_commas.js
1:138 error Unexpected constant condition no-constant-condition
D:\wms\temp_find_objsep.js
1:159 error Expected a conditional expression and instead saw an assignment no-cond-assign
D:\wms\temp_find_trailing_commas.js
1:147 error Expected a conditional expression and instead saw an assignment no-cond-assign
D:\wms\temp_rebuild_system_json.js
4:86 error Expected '===' and instead saw '==' eqeqeq
14:9 error Expected '===' and instead saw '==' eqeqeq
16:9 error Expected '===' and instead saw '==' eqeqeq
17:14 error Expected '===' and instead saw '==' eqeqeq
D:\wms\test\app\controller\system.order.pendingOrder.reverseReviewOrder.test.js
406:29 error 'orderService' is assigned a value but never used no-unused-vars
D:\wms\test\app\schedule\print_retry_compensation.test.js
171:64 error Unexpected empty async method 'retryFailed' no-empty-function
207:64 error Unexpected empty async method 'retryFailed' no-empty-function
D:\wms\test\app\service\systemMethods\order\wave.batchCancel.test.js
23:20 error Unexpected empty async method 'commit' no-empty-function
24:22 error Unexpected empty async method 'rollback' no-empty-function
D:\wms\test\app\service\systemMethods\order\wave.fetch.test.js
197:22 error Unexpected empty async method 'commit' no-empty-function
198:24 error Unexpected empty async method 'rollback' no-empty-function
323:22 error Unexpected empty async method 'commit' no-empty-function
324:24 error Unexpected empty async method 'rollback' no-empty-function
453:22 error Unexpected empty async method 'commit' no-empty-function
454:24 error Unexpected empty async method 'rollback' no-empty-function
D:\wms\test\app\service\systems\location_zone.deleteZone.test.js
45:26 error Unexpected empty async method 'commit' no-empty-function
46:28 error Unexpected empty async method 'rollback' no-empty-function
D:\wms\test\app\service\systems\order_print.unlockWavePlatformPrintDataByGroup.test.js
141:1 error Expected indentation of 4 spaces but found 6 indent
142:1 error Expected indentation of 4 spaces but found 6 indent
143:1 error Expected indentation of 6 spaces but found 8 indent
144:1 error Expected indentation of 6 spaces but found 8 indent
145:1 error Expected indentation of 6 spaces but found 8 indent
146:1 error Expected indentation of 6 spaces but found 8 indent
147:1 error Expected indentation of 6 spaces but found 8 indent
148:1 error Expected indentation of 6 spaces but found 8 indent
149:1 error Expected indentation of 4 spaces but found 6 indent
D:\wms\test\app\service\systems\storage.receiving.bindDetailProduct.test.js
40:38 error Unexpected empty async method 'createOperationLog' no-empty-function
鉁?126 problems (121 errors, 5 warnings)
76 errors and 3 warnings potentially fixable with the `--fix` option.