Running with gitlab-runner 11.5.0 (3afdaba6)
on sd-134519-docker 15451e3f
Using Docker executor with image node:14 ...
Pulling docker image node:14 ...
Using docker image sha256:4c0767d619437eaf41447ae802143ec7f726cab01811175ca1559e7ce5269645 for node:14 ...
section_start:1637747170:prepare_script
Running on runner-15451e3f-project-38-concurrent-0 via sd-134519...
section_end:1637747172:prepare_script
section_start:1637747172:get_sources
Fetching changes...
Removing envelops/__pycache__/
Removing envelops/migrations/__pycache__/
Removing envelops/tests/__pycache__/
Removing inventory/__pycache__/
Removing inventory/migrations/__pycache__/
Removing inventory/tests/__pycache__/
Removing log/debug.log
Removing log/errors.log
Removing members/__pycache__/
Removing members/middleware/__pycache__/
Removing members/migrations/__pycache__/
Removing members/tests/__pycache__/
Removing members_space/__pycache__/
Removing members_space/migrations/__pycache__/
Removing members_space/tests/__pycache__/
Removing orders/__pycache__/
Removing orders/migrations/__pycache__/
Removing orders/tests/__pycache__/
Removing outils/__pycache__/
Removing outils/config.py
Removing outils/lib/__pycache__/
Removing outils/settings.py
Removing outils/settings_secret.py
Removing outils/tests/__pycache__/
Removing pip-cache/
Removing products/__pycache__/
Removing products/migrations/__pycache__/
Removing products/tests/__pycache__/
Removing reception/__pycache__/
Removing reception/migrations/__pycache__/
Removing reception/tests/__pycache__/
Removing sales/__pycache__/
Removing sales/migrations/__pycache__/
Removing sales/tests/__pycache__/
Removing shelfs/__pycache__/
Removing shelfs/migrations/__pycache__/
Removing shelfs/tests/__pycache__/
Removing shifts/__pycache__/
Removing shifts/migrations/__pycache__/
Removing shifts/tests/__pycache__/
Removing shop/__pycache__/
Removing shop/migrations/__pycache__/
Removing shop/tests/__pycache__/
Removing stock/__pycache__/
Removing stock/migrations/__pycache__/
Removing stock/tests/__pycache__/
Removing website/__pycache__/
Removing website/migrations/__pycache__/
Removing website/tests/__pycache__/
HEAD is now at 49b745b manage resize use-case on shift exchange view
From https://gl.cooperatic.fr/cooperatic-foodcoops/third-party
* [new branch] ticket_1727 -> origin/ticket_1727
Checking out d82c419f as ticket_1727...
Skipping Git submodules setup
section_end:1637747174:get_sources
section_start:1637747174:restore_cache
Checking cache for node-modules...
No URL provided, cache will be not downloaded from shared cache server. Instead a local version of cache will be extracted.
Successfully extracted cache
section_end:1637747175:restore_cache
section_start:1637747175:download_artifacts
section_end:1637747177:download_artifacts
section_start:1637747177:build_script
$ make lint-js
npm install
npm WARN third-party@1.0.0 No license field.
audited 126 packages in 1.249s
21 packages are looking for funding
run `npm fund` for details
found 2 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
npm run lint
> third-party@1.0.0 lint /builds/cooperatic-foodcoops/third-party
> eslint . --max-warnings 326 '**/*.js'
/builds/cooperatic-foodcoops/third-party/envelops/static/js/envelops.js
121:10 warning 'archive_envelop' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/inventory/static/js/inventory.js
149:9 warning 'online' is assigned a value but never used no-unused-vars
152:29 warning 'err' is defined but never used no-unused-vars
155:31 warning 'info' is defined but never used no-unused-vars
213:40 warning Array.prototype.every() expects a return value from function array-callback-return
213:50 warning 'rowIdx' is defined but never used no-unused-vars
213:58 warning 'tableLoop' is defined but never used no-unused-vars
213:69 warning 'rowLoop' is defined but never used no-unused-vars
237:42 warning 'button' is defined but never used no-unused-vars
237:50 warning 'config' is defined but never used no-unused-vars
246:42 warning 'button' is defined but never used no-unused-vars
246:50 warning 'config' is defined but never used no-unused-vars
309:42 warning 'index' is defined but never used no-unused-vars
335:32 warning 'result' is defined but never used no-unused-vars
373:17 warning 'i' is assigned a value but never used no-unused-vars
408:57 warning Expected to return a value at the end of function consistent-return
455:32 warning 'result' is defined but never used no-unused-vars
480:40 warning Array.prototype.every() expects a return value from function array-callback-return
480:50 warning 'rowIdx' is defined but never used no-unused-vars
480:58 warning 'tableLoop' is defined but never used no-unused-vars
480:69 warning 'rowLoop' is defined but never used no-unused-vars
500:47 warning 'result' is defined but never used no-unused-vars
622:71 warning 'oldValue' is defined but never used no-unused-vars
779:57 warning Expected to return a value at the end of function consistent-return
/builds/cooperatic-foodcoops/third-party/members/static/js/inscriptions.js
86:10 warning 'new_coop_validation' is defined but never used no-unused-vars
387:10 warning 'get_next_coop_num' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/members/static/js/members.js
519:10 warning 'preview_snapshot' is defined but never used no-unused-vars
538:10 warning 'save_photo' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/members/static/js/members_admin.js
231:3 warning Trailing spaces not allowed no-trailing-spaces
/builds/cooperatic-foodcoops/third-party/members/static/js/prepa_odoo.js
68:10 warning 'is_in_coops' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/members/static/js/subscription_common.js
26:10 warning 'display_current_coop_form' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/members_space/static/js/members-space-faq.js
3:10 warning 'init_faq' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/members_space/static/js/members-space-home.js
4:10 warning 'request_delay' is defined but never used no-unused-vars
87:10 warning 'init_home' is defined but never used no-unused-vars
103:1 warning Trailing spaces not allowed no-trailing-spaces
/builds/cooperatic-foodcoops/third-party/members_space/static/js/members-space-my-shifts.js
53:170 warning Missing semicolon semi
55:92 warning Missing semicolon semi
60:1 warning Trailing spaces not allowed no-trailing-spaces
61:17 warning Expected blank line after variable declarations newline-after-var
61:174 warning Missing semicolon semi
63:1 warning Trailing spaces not allowed no-trailing-spaces
64:87 warning Missing semicolon semi
152:10 warning 'init_my_shifts' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/members_space/static/js/members-space-shifts-exchange.js
191:11 warning Expected line break before `.show` newline-per-chained-call
194:76 warning Expected line break before `.show` newline-per-chained-call
338:10 warning 'init_shifts_exchange' is defined but never used no-unused-vars
369:5 warning Closing curly brace does not appear on the same line as the subsequent block brace-style
369:6 warning Trailing spaces not allowed no-trailing-spaces
372:9 warning Expected blank line after variable declarations newline-after-var
375:5 warning Closing curly brace does not appear on the same line as the subsequent block brace-style
375:6 warning Trailing spaces not allowed no-trailing-spaces
399:37 warning Missing space before opening brace space-before-blocks
403:2 warning Trailing spaces not allowed no-trailing-spaces
/builds/cooperatic-foodcoops/third-party/members_space/static/js/members-space.js
8:5 warning 'partner_history' is assigned a value but never used no-unused-vars
28:10 warning 'load_partner_shifts' is defined but never used no-unused-vars
37:17 warning 'incoming_shifts' is assigned a value but never used no-unused-vars
139:10 warning 'prepare_shift_line_template' is defined but never used no-unused-vars
158:10 warning 'init_my_info_data' is defined but never used no-unused-vars
192:1 warning Expected indentation of 8 spaces but found 6 indent
193:1 warning Expected indentation of 8 spaces but found 6 indent
195:1 warning Expected indentation of 8 spaces but found 6 indent
196:1 warning Expected indentation of 8 spaces but found 6 indent
255:12 warning A space is required after ',' comma-spacing
255:16 warning Missing space before opening brace space-before-blocks
258:5 warning Expected blank line after variable declarations newline-after-var
259:13 warning Variable 'timeout' should be initialized on declaration init-declarations
260:1 warning Trailing spaces not allowed no-trailing-spaces
262:13 warning Expected blank line after variable declarations newline-after-var
262:17 warning Unexpected alias 'obj' for 'this' consistent-this
267:14 error Unnecessary semicolon no-extra-semi
268:1 warning Trailing spaces not allowed no-trailing-spaces
273:1 warning Trailing spaces not allowed no-trailing-spaces
276:6 warning Missing semicolon semi
277:19 warning Trailing spaces not allowed no-trailing-spaces
278:33 warning Statement inside of curly braces should be on next line brace-style
278:33 warning Missing space before opening brace space-before-blocks
278:34 warning Multiple spaces found before 'return' no-multi-spaces
278:102 warning Closing curly brace should be on the same line as opening curly brace or on the line after the previous block brace-style
279:1 warning Trailing spaces not allowed no-trailing-spaces
280:1 warning Expected indentation of 0 spaces but found 2 indent
280:12 warning A space is required after ',' comma-spacing
/builds/cooperatic-foodcoops/third-party/products/static/js/destocking.js
7:5 warning 'bc_scanner' is assigned a value but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/products/static/js/pos_product_sales.js
5:5 warning 'pareto_sales_80_data' is assigned a value but never used no-unused-vars
98:42 warning 'index' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/products/static/js/products_common.js
1:10 warning 'products_shelf_label_print' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/products/static/js/products_index.js
35:61 warning 'meta' is defined but never used no-unused-vars
59:49 warning 'type' is defined but never used no-unused-vars
59:55 warning 'full' is defined but never used no-unused-vars
59:61 warning 'meta' is defined but never used no-unused-vars
77:80 warning Expected to return a value at the end of function consistent-return
160:27 warning 'data' is defined but never used no-unused-vars
192:10 warning Expected to return a value at the end of function 'fetch_product_from_bc' consistent-return
217:18 warning Expected to return a value at the end of method 'success' consistent-return
/builds/cooperatic-foodcoops/third-party/reception/static/js/reception_index.js
105:10 warning 'group_goto' is defined but never used no-unused-vars
256:10 warning 'group_action' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/reception/static/js/reception_produits.js
968:26 warning 'form' is assigned a value but never used no-unused-vars
977:10 warning 'setAllQties' is defined but never used no-unused-vars
997:10 warning 'get_pdf_labels' is defined but never used no-unused-vars
1020:10 warning 'print_product_labels' is defined but never used no-unused-vars
1066:10 warning 'pre_send' is defined but never used no-unused-vars
1450:10 warning 'confirmPricesAllValid' is defined but never used no-unused-vars
1456:10 warning 'confirm_all_left_is_good' is defined but never used no-unused-vars
1481:10 warning 'openFAQ' is defined but never used no-unused-vars
1485:10 warning 'openErrorReport' is defined but never used no-unused-vars
1540:51 warning 'response' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shelfs/static/js/shelf_inventory.js
16:5 warning 'add_product_input' is assigned a value but never used no-unused-vars
18:5 warning Variable 'shelf' should be initialized on declaration init-declarations
22:5 warning Variable 'table_to_process' should be initialized on declaration init-declarations
23:5 warning Variable 'table_processed' should be initialized on declaration init-declarations
25:5 warning Variable 'editing_origin' should be initialized on declaration init-declarations
98:29 warning 'e' is defined but never used no-unused-vars
172:10 warning 'validateEdition' is defined but never used no-unused-vars
172:26 warning 'form' is defined but never used no-unused-vars
408:35 warning Array.prototype.every() expects a return value from function array-callback-return
408:45 warning 'rowIdx' is defined but never used no-unused-vars
408:53 warning 'tableLoop' is defined but never used no-unused-vars
408:64 warning 'rowLoop' is defined but never used no-unused-vars
483:36 warning 'textStatus' is defined but never used no-unused-vars
574:27 warning 'data' is defined but never used no-unused-vars
706:67 warning 'e' is defined but never used no-unused-vars
723:47 warning 'e' is defined but never used no-unused-vars
736:31 warning 'e' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shelfs/static/js/shelf_view.js
9:5 warning Variable 'shelf' should be initialized on declaration init-declarations
10:5 warning Variable 'table_products' should be initialized on declaration init-declarations
20:10 warning 'back' is defined but never used no-unused-vars
57:47 warning 'full' is defined but never used no-unused-vars
57:53 warning 'meta' is defined but never used no-unused-vars
73:47 warning 'full' is defined but never used no-unused-vars
73:53 warning 'meta' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shelfs/static/js/shelfs_admin.js
9:5 warning 'eye' is assigned a value but never used no-unused-vars
132:51 warning Array.prototype.every() expects a return value from function array-callback-return
207:27 warning 'row' is defined but never used no-unused-vars
207:32 warning 'rdata' is defined but never used no-unused-vars
219:58 warning 'action_btn' is defined but never used no-unused-vars
280:42 warning 'index' is defined but never used no-unused-vars
320:53 warning 'type' is defined but never used no-unused-vars
320:59 warning 'full' is defined but never used no-unused-vars
320:65 warning 'meta' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shelfs/static/js/shelfs_index.js
20:47 warning 'full' is defined but never used no-unused-vars
20:53 warning 'meta' is defined but never used no-unused-vars
39:47 warning 'full' is defined but never used no-unused-vars
39:53 warning 'meta' is defined but never used no-unused-vars
59:47 warning 'full' is defined but never used no-unused-vars
59:53 warning 'meta' is defined but never used no-unused-vars
75:47 warning 'full' is defined but never used no-unused-vars
75:53 warning 'meta' is defined but never used no-unused-vars
91:41 warning 'type' is defined but never used no-unused-vars
91:47 warning 'full' is defined but never used no-unused-vars
91:53 warning 'meta' is defined but never used no-unused-vars
147:31 warning Array.prototype.every() expects a return value from function array-callback-return
147:41 warning 'rowIdx' is defined but never used no-unused-vars
147:49 warning 'tableLoop' is defined but never used no-unused-vars
147:60 warning 'rowLoop' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shelfs/static/js/shelfs_sales.js
20:47 warning 'full' is defined but never used no-unused-vars
20:53 warning 'meta' is defined but never used no-unused-vars
40:35 warning 'data' is defined but never used no-unused-vars
40:41 warning 'type' is defined but never used no-unused-vars
40:47 warning 'full' is defined but never used no-unused-vars
40:53 warning 'meta' is defined but never used no-unused-vars
87:10 warning 'get_shelfs_sales_data' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shifts/static/js/shift_exchange.js
63:21 warning 'date' is assigned a value but never used no-unused-vars
68:21 warning 'lost_points' is assigned a value but never used no-unused-vars
333:5 warning Closing curly brace does not appear on the same line as the subsequent block brace-style
395:27 warning 'doc' is defined but never used no-unused-vars
474:5 warning 'dp' is assigned a value but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shifts/static/js/shift_states_not_allowed.js
2:10 warning 'request_delay' is defined but never used no-unused-vars
19:27 warning 'doc' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shop/static/js/shop.js
134:5 warning Unexpected alias 'dragSrcEl' for 'this' consistent-this
152:26 warning 'e' is defined but never used no-unused-vars
186:24 warning 'e' is defined but never used no-unused-vars
208:22 warning 'err' is defined but never used no-unused-vars
208:27 warning 'result' is defined but never used no-unused-vars
366:13 warning 'start' is assigned a value but never used no-unused-vars
367:13 warning 'end' is assigned a value but never used no-unused-vars
476:9 warning 'start' is assigned a value but never used no-unused-vars
1188:5 warning 'search_product' is assigned a value but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shop/static/js/shop_admin.js
2:5 warning 'orders' is assigned a value but never used no-unused-vars
16:5 warning 'cart_id' is assigned a value but never used no-unused-vars
51:29 warning 'err' is defined but never used no-unused-vars
54:31 warning 'info' is defined but never used no-unused-vars
191:58 warning 'action_btn' is defined but never used no-unused-vars
296:42 warning 'index' is defined but never used no-unused-vars
327:57 warning Expected to return a value at the end of function consistent-return
411:5 warning 'unselectRows' is assigned a value but never used no-unused-vars
495:39 warning 'res' is defined but never used no-unused-vars
783:9 warning 'clicked' is assigned a value but never used no-unused-vars
811:22 warning Expected to return a value at the end of function consistent-return
974:59 warning 'res' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/shop/static/js/shop_drafts.js
2:5 warning 'orders' is assigned a value but never used no-unused-vars
12:5 warning 'remove_closing_date_msg' is assigned a value but never used no-unused-vars
13:5 warning 'internal_get_msg' is assigned a value but never used no-unused-vars
16:5 warning 'cart_id' is assigned a value but never used no-unused-vars
17:5 warning 'cart_revisions' is assigned a value but never used no-unused-vars
18:5 warning 'shop_settings' is assigned a value but never used no-unused-vars
51:29 warning 'err' is defined but never used no-unused-vars
54:31 warning 'info' is defined but never used no-unused-vars
65:5 warning 'putLoadingImgOn' is assigned a value but never used no-unused-vars
68:5 warning 'removeLoadingImg' is assigned a value but never used no-unused-vars
125:58 warning 'action_btn' is defined but never used no-unused-vars
210:57 warning Expected to return a value at the end of function consistent-return
250:5 warning 'selectRow' is assigned a value but never used no-unused-vars
271:5 warning 'unselectRows' is assigned a value but never used no-unused-vars
285:5 warning 'updateCouchDB' is assigned a value but never used no-unused-vars
335:5 warning 'showCart' is assigned a value but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/stock/static/js/stock_graphSale.js
1:5 warning Variable 'myChart' should be initialized on declaration init-declarations
/builds/cooperatic-foodcoops/third-party/stock/static/js/stock_listArticleBreaking.js
7:5 warning Variable 'table_article' should be initialized on declaration init-declarations
8:5 warning 'dataSet' is assigned a value but never used no-unused-vars
9:5 warning Variable 'csrftoken' should be initialized on declaration init-declarations
44:27 warning 'data' is defined but never used no-unused-vars
66:55 warning 'meta' is defined but never used no-unused-vars
76:42 warning 'type' is defined but never used no-unused-vars
76:48 warning 'row' is defined but never used no-unused-vars
84:42 warning 'type' is defined but never used no-unused-vars
84:48 warning 'row' is defined but never used no-unused-vars
96:43 warning 'type' is defined but never used no-unused-vars
96:49 warning 'full' is defined but never used no-unused-vars
96:55 warning 'meta' is defined but never used no-unused-vars
107:37 warning 'data' is defined but never used no-unused-vars
107:43 warning 'type' is defined but never used no-unused-vars
107:49 warning 'full' is defined but never used no-unused-vars
107:55 warning 'meta' is defined but never used no-unused-vars
190:5 warning Variable 'selArctileData' should be initialized on declaration init-declarations
/builds/cooperatic-foodcoops/third-party/stock/static/js/stock_movements.js
552:29 warning 'data' is defined but never used no-unused-vars
/builds/cooperatic-foodcoops/third-party/stock/static/js/stock_order.js
12:5 warning Variable 'table_article' should be initialized on declaration init-declarations
13:5 warning 'dataSet' is assigned a value but never used no-unused-vars
14:5 warning Variable 'csrftoken' should be initialized on declaration init-declarations
117:10 warning 'ruptureArticle' is defined but never used no-unused-vars
117:25 warning 'test' is defined but never used no-unused-vars
131:27 warning 'data' is defined but never used no-unused-vars
142:5 warning Variable 'selArctileData' should be initialized on declaration init-declarations
/builds/cooperatic-foodcoops/third-party/stock/static/js/stock_rupture.js
8:5 warning 'dataSet' is assigned a value but never used no-unused-vars
✖ 231 problems (1 error, 230 warnings)
1 error and 38 warnings potentially fixable with the `--fix` option.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! third-party@1.0.0 lint: `eslint . --max-warnings 326 '**/*.js'`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the third-party@1.0.0 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-11-24T09_46_26_796Z-debug.log
make: *** [lint-js] Error 1
Makefile:9: recipe for target 'lint-js' failed
section_end:1637747187:build_script
section_start:1637747187:after_script
section_end:1637747188:after_script
section_start:1637747188:upload_artifacts_on_failure
section_end:1637747190:upload_artifacts_on_failure
ERROR: Job failed: exit code 1