Problem/Motivation
The gitlab-ci tooling added to this module's workflow has helped discover a number of style issues with the included javascript.
This issue aims to update the javascript so that it doesn't violate Drupal javascript coding standards.
These are the linting errors that are currently being discovered.
https://git.drupalcode.org/project/environment_indicator/-/jobs/3032505
[0KRunning with gitlab-runner 17.3.1 (66269445)[0;m
[0K on gitlab-runner-9dccd6855-vtfgl s8ex1X2yJ, system ID: r_Fs6duF1rd5sK[0;m
[0K[36;1mResolving secrets[0;m[0;m
section_start:1728727846:prepare_executor
[0K[0K[36;1mPreparing the "kubernetes" executor[0;m[0;m
[0K"CPURequest" overwritten with "2"[0;m
[0KUsing Kubernetes namespace: gitlab-runner[0;m
[0KUsing Kubernetes executor with image drupalci/php-8.1-apache:production ...[0;m
[0KUsing attach strategy to execute scripts...[0;m
section_end:1728727846:prepare_executor
[0Ksection_start:1728727846:prepare_script
[0K[0K[36;1mPreparing environment[0;m[0;m
[0KUsing FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...[0;m
Waiting for pod gitlab-runner/runner-s8ex1x2yj-project-58790-concurrent-5-esugaq55 to be running, status is Pending
Running on runner-s8ex1x2yj-project-58790-concurrent-5-esugaq55 via gitlab-runner-9dccd6855-vtfgl...
section_end:1728727877:prepare_script
[0Ksection_start:1728727877:get_sources
[0K[0K[36;1mGetting source from Git repository[0;m[0;m
[32;1mFetching changes...[0;m
Initialized empty Git repository in /builds/project/environment_indicator/.git/
[32;1mCreated fresh repository.[0;m
[32;1mChecking out f98dd03a as detached HEAD (ref is 4.x)...[0;m
[32;1mSkipping Git submodules setup[0;m
section_end:1728727878:get_sources
[0Ksection_start:1728727878:download_artifacts
[0K[0K[36;1mDownloading artifacts[0;m[0;m
[32;1mDownloading artifacts for composer (3032498)...[0;m
Downloading artifacts from coordinator... ok [0;m host[0;m=drupal-gitlab-job-artifacts.s3.us-west-2.amazonaws.com id[0;m=3032498 responseStatus[0;m=200 OK token[0;m=glcbt-64
section_end:1728727884:download_artifacts
[0Ksection_start:1728727884:step_script
[0K[0K[36;1mExecuting "step_script" stage of the job script[0;m[0;m
[32;1m$ cd $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/$CI_PROJECT_NAME[0;m
[32;1m$ ln -s $CI_PROJECT_DIR/$_WEB_ROOT/core/.eslintrc.passing.json $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/.eslintrc.json[0;m
[32;1m$ ln -s $CI_PROJECT_DIR/$_WEB_ROOT/core/.eslintrc.jquery.json $CI_PROJECT_DIR/$_WEB_ROOT/modules/custom/.eslintrc.jquery.json[0;m
[32;1m$ test -e .prettierrc.json || ln -s $CI_PROJECT_DIR/$_WEB_ROOT/core/.prettierrc.json .[0;m
[32;1m$ test -e .prettierignore || echo '*.yml' > .prettierignore[0;m
[32;1m$ echo "ESLINT version $(${CI_PROJECT_DIR}/${_WEB_ROOT}/core/node_modules/.bin/eslint --version)"[0;m
ESLINT version v8.57.0
[32;1m$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml --format=junit --output-file=$CI_PROJECT_DIR/junit.xml $_ESLINT_EXTRA . || EXIT_CODE_FILE=$?[0;m
[32;1m$ touch $CI_PROJECT_DIR/_eslint.patch[0;m
[32;1m$ if [ "$EXIT_CODE_FILE" != "1" ]; then # collapsed multi-line command[0;m
[32;1m$ printf "$DIVIDER\nThese are the current ESLINT errors and warnings$DIVIDER\n"[0;m
*****************************************************************************************************************************
These are the current ESLINT errors and warnings
*****************************************************************************************************************************
[32;1m$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml $_ESLINT_EXTRA . || true[0;m
/builds/project/environment_indicator/web/modules/custom/environment_indicator/config/schema/environment_indicator.schema.yml
44:1 error Expected indentation of 2 spaces but found 4 spaces yml/indent
45:1 error Expected indentation of 2 spaces but found 4 spaces yml/indent
46:1 error Expected indentation of 2 spaces but found 4 spaces yml/indent
47:1 error Expected indentation of 4 spaces but found 6 spaces yml/indent
48:1 error Expected indentation of 6 spaces but found 8 spaces yml/indent
49:1 error Expected indentation of 6 spaces but found 8 spaces yml/indent
50:1 error Expected indentation of 4 spaces but found 6 spaces yml/indent
51:1 error Expected indentation of 6 spaces but found 8 spaces yml/indent
52:1 error Expected indentation of 6 spaces but found 8 spaces yml/indent
53:1 error Expected indentation of 4 spaces but found 6 spaces yml/indent
54:1 error Expected indentation of 6 spaces but found 8 spaces yml/indent
55:1 error Expected indentation of 6 spaces but found 8 spaces yml/indent
/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/color.js
1:1 error Unexpected var, use let or const instead no-var
1:19 error Insert `Ā·` prettier/prettier
2:3 error Delete `Ā·Ā·` prettier/prettier
2:5 error Unexpected var, use let or const instead no-var
3:1 error Delete `Ā·Ā·` prettier/prettier
3:5 error Assignment (=) can be replaced with operator assignment (+=) operator-assignment
3:11 error Unexpected string concatenation prefer-template
4:3 error Delete `Ā·Ā·` prettier/prettier
5:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` with `Ā·Ā·Ā·Ā·` prettier/prettier
6:3 error Delete `Ā·Ā·` prettier/prettier
7:1 error Delete `Ā·Ā·` prettier/prettier
11:1 error Unexpected var, use let or const instead no-var
11:27 error Insert `Ā·` prettier/prettier
12:1 error Replace `Ā·Ā·Ā·Ā·` with `Ā·Ā·` prettier/prettier
13:1 error Delete `Ā·Ā·` prettier/prettier
15:1 error Replace `Ā·Ā·Ā·Ā·` with `Ā·Ā·` prettier/prettier
16:3 error Replace `Ā·Ā·colorĀ·=Ā·color.replace(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'#$1$1$2$2$3$3'āĀ·Ā·Ā·Ā·` with `colorĀ·=Ā·color.replace(/^#?([a-f0-9])([a-f0-9])([a-f0-9])$/i,Ā·'#$1$1$2$2$3$3'` prettier/prettier
21:1 error Delete `Ā·Ā·` prettier/prettier
22:1 error Replace `Ā·Ā·Ā·Ā·` with `Ā·Ā·` prettier/prettier
22:5 error Split 'var' declarations into multiple statements one-var
22:5 error All 'var' declarations must be at the top of the function scope vars-on-top
22:5 error Unexpected var, use let or const instead no-var
23:5 error Delete `Ā·Ā·Ā·Ā·` prettier/prettier
24:5 error Replace `Ā·Ā·Ā·Ā·rgbĀ·=Ā·color.match(newĀ·RegExp(` with `rgbĀ·=Ā·color.match(āĀ·Ā·Ā·Ā·Ā·Ā·newĀ·RegExp(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
25:11 error Delete `Ā·Ā·` prettier/prettier
26:1 error Delete `Ā·Ā·` prettier/prettier
27:11 error Delete `Ā·Ā·` prettier/prettier
28:1 error Delete `Ā·Ā·` prettier/prettier
29:11 error Delete `Ā·Ā·` prettier/prettier
30:11 error Delete `Ā·Ā·` prettier/prettier
31:1 error Delete `Ā·Ā·` prettier/prettier
32:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'\\s*\\)$'` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'\\s*\\)$',` prettier/prettier
33:9 error Replace `,Ā·'i')` with `'i',āĀ·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
34:5 error Insert `),ā` prettier/prettier
35:1 error Delete `āĀ·Ā·Ā·Ā·` prettier/prettier
37:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·decimalĀ·=Ā·!!rgb?Ā·[rgb[1],Ā·rgb[2],Ā·rgb[3]]Ā·:Ā·color` with `Ā·Ā·Ā·Ā·decimalĀ·=Ā·!!rgbāĀ·Ā·Ā·Ā·Ā·Ā·?Ā·[rgb[1],Ā·rgb[2],Ā·rgb[3]]āĀ·Ā·Ā·Ā·Ā·Ā·:Ā·colorāĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
37:19 error Redundant double negation no-extra-boolean-cast
39:21 error Insert `Ā·` prettier/prettier
40:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·returnĀ·parseInt(arguments[1],Ā·16)Ā·+` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·returnĀ·(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(arguments[1],Ā·16)Ā·+āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
40:24 error Unexpected string concatenation prefer-template
40:33 error Use the rest parameters instead of 'arguments' prefer-rest-params
41:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(arguments[2],Ā·16)Ā·+` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(arguments[2],Ā·16)Ā·+āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
41:30 error Use the rest parameters instead of 'arguments' prefer-rest-params
42:17 error Replace `Ā·Ā·Ā·Ā·parseInt(arguments[3],Ā·16)` with `parseInt(arguments[3],Ā·16)āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·)` prettier/prettier
42:30 error Use the rest parameters instead of 'arguments' prefer-rest-params
43:14 error Insert `,` prettier/prettier
44:9 error Replace `)` with `Ā·Ā·)āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
45:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` with `Ā·Ā·Ā·Ā·` prettier/prettier
47:1 error Delete `Ā·Ā·` prettier/prettier
48:1 error Replace `Ā·Ā·Ā·Ā·returnĀ·!!rgbĀ·?` with `Ā·Ā·returnĀ·!!rgb` prettier/prettier
48:12 error Redundant double negation no-extra-boolean-cast
49:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'rgb'Ā·+Ā·(alphaĀ·!==Ā·nullĀ·?Ā·'a'Ā·:Ā·'')Ā·+` with `Ā·Ā·Ā·Ā·?Ā·'rgb'Ā·+āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(alphaĀ·!==Ā·nullĀ·?Ā·'a'Ā·:Ā·'')Ā·+āĀ·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
49:9 error Unexpected string concatenation prefer-template
50:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
51:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[0],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[0],Ā·10)Ā·+Ā·difference,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,` prettier/prettier
52:9 error Replace `Ā·Ā·Ā·Ā·)Ā·+` with `)Ā·+āĀ·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
53:1 error Delete `Ā·Ā·Ā·Ā·` prettier/prettier
54:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[1],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[1],Ā·10)Ā·+Ā·difference,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,` prettier/prettier
55:9 error Replace `Ā·Ā·Ā·Ā·)Ā·+` with `)Ā·+āĀ·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
56:1 error Delete `Ā·Ā·Ā·Ā·` prettier/prettier
57:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[2],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[2],Ā·10)Ā·+Ā·difference,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,` prettier/prettier
58:1 error Delete `Ā·Ā·Ā·Ā·` prettier/prettier
59:9 error Delete `Ā·Ā·Ā·Ā·` prettier/prettier
59:31 error Unexpected string concatenation prefer-template
60:9 error Replace `Ā·Ā·Ā·Ā·')'Ā·:` with `')'` prettier/prettier
61:5 error Replace `Ā·Ā·Ā·` with `:` prettier/prettier
62:1 error Delete `Ā·Ā·` prettier/prettier
63:9 error Delete `Ā·Ā·Ā·Ā·` prettier/prettier
64:9 error Replace `Ā·Ā·Ā·Ā·pad(` with `pad(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
65:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[0],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[0],Ā·10)Ā·+Ā·difference,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,` prettier/prettier
66:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),Ā·2)` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·2` prettier/prettier
67:9 error Replace `Ā·Ā·Ā·Ā·pad(` with `),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·pad(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
68:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[1],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[1],Ā·10)Ā·+Ā·difference,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,` prettier/prettier
69:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),Ā·2)` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·2` prettier/prettier
70:9 error Replace `Ā·Ā·Ā·Ā·pad(` with `),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·pad(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
71:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[2],Ā·10)Ā·+Ā·difference,Ā·darkerĀ·?Ā·0Ā·:Ā·255` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·parseInt(decimal[2],Ā·10)Ā·+Ā·difference,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·darkerĀ·?Ā·0Ā·:Ā·255,` prettier/prettier
72:1 error Replace `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),Ā·2)` with `Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·).toString(16),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·2,` prettier/prettier
73:9 error Insert `),āĀ·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
75:1 error Unexpected var, use let or const instead no-var
75:28 error Insert `Ā·` prettier/prettier
76:1 error Replace `Ā·Ā·Ā·Ā·` with `Ā·Ā·` prettier/prettier
78:1 error Unexpected var, use let or const instead no-var
78:27 error Insert `Ā·` prettier/prettier
79:1 error Delete `Ā·Ā·` prettier/prettier
/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/environment_indicator.js
2:1 error Replace `āĀ·Ā·"useĀ·strict"` with `Ā·Ā·'useĀ·strict'` prettier/prettier
3:3 error 'use strict' is unnecessary inside of modules strict
6:5 error Expected method shorthand object-shorthand
7:7 error Prefer addEventListener to $.bind jquery/no-bind
8:11 error Replace `'#environment-indicatorĀ·.environment-switcher-container',Ā·context` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'#environment-indicatorĀ·.environment-switcher-container',āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·context,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
10:6 error Insert `,` prettier/prettier
14:5 error Expected method shorthand object-shorthand
15:17 error Replace `(settings.environmentIndicator)` with `Ā·settings.environmentIndicator` prettier/prettier
15:49 error Expected '!==' and instead saw '!=' eqeqeq
17:28 error Replace `Ā·getComputedStyle(document.body).getPropertyValue('--enviroment-indicator-border-width'` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·getComputedStyle(document.body).getPropertyValue(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'--enviroment-indicator-border-width',āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
20:13 error Replace `!$body.hasClass('gin--vertical-toolbar')Ā·&&Ā·!$body.hasClass('gin--horizontal-toolbar')` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·!$body.hasClass('gin--vertical-toolbar')Ā·&&āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·!$body.hasClass('gin--horizontal-toolbar')āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
21:11 error Prefer getComputedStyle to $.css jquery/no-css
21:42 error Replace `'background-color',Ā·settings.environmentIndicator.bgColor` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'background-color',āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·settings.environmentIndicator.bgColor,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
22:11 error Prefer getComputedStyle to $.css jquery/no-css
22:53 error Replace `.not('.is-active')` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·.not('.is-active')āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
27:11 error Prefer getComputedStyle to $.css jquery/no-css
27:59 error Replace `'border-left-color':Ā·settings.environmentIndicator.bgColor,Ā·'border-left-width':Ā·borderWidth` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'border-left-color':Ā·settings.environmentIndicator.bgColor,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'border-left-width':Ā·borderWidth,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
28:11 error Prefer getComputedStyle to $.css jquery/no-css
28:81 error Replace `{'margin-left':Ā·'calc(var(--enviroment-indicator-border-width)Ā·*Ā·-0.5)'}` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'margin-left':āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'calc(var(--enviroment-indicator-border-width)Ā·*Ā·-0.5)',āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
32:11 error Prefer getComputedStyle to $.css jquery/no-css
32:55 error Replace `'border-top-color':Ā·settings.environmentIndicator.bgColor,Ā·'border-top-width':Ā·borderWidth` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'border-top-color':Ā·settings.environmentIndicator.bgColor,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'border-top-width':Ā·borderWidth,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
35:11 error Replace `($body.hasClass('gin--horizontal-toolbar')Ā·||Ā·$body.hasClass('gin--vertical-toolbar')` with `Ā·(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·$body.hasClass('gin--horizontal-toolbar')Ā·||āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·$body.hasClass('gin--vertical-toolbar')āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
36:37 error Replace `"<style>.toolbarĀ·.toolbar-barĀ·#toolbar-item-administration-trayĀ·a.toolbar-icon-admin-toolbar-tools-help.toolbar-icon-default::before{Ā·background-color:Ā·"Ā·+Ā·settings.environmentIndicator.bgColorĀ·+Ā·"Ā·}</style>"` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'<style>.toolbarĀ·.toolbar-barĀ·#toolbar-item-administration-trayĀ·a.toolbar-icon-admin-toolbar-tools-help.toolbar-icon-default::before{Ā·background-color:Ā·'Ā·+āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·settings.environmentIndicator.bgColorĀ·+āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'Ā·}</style>',āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
36:37 error Unexpected string concatenation prefer-template
39:6 error Insert `,` prettier/prettier
43:5 error Expected method shorthand object-shorthand
44:64 error Insert `Ā·` prettier/prettier
45:13 error Replace `typeof(settings.environmentIndicator)` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·typeofĀ·settings.environmentIndicator` prettier/prettier
45:51 error Expected '!==' and instead saw '!=' eqeqeq
46:17 error Replace `(settings.environmentIndicator.addFavicon)` with `Ā·settings.environmentIndicator.addFavicon` prettier/prettier
46:60 error Expected '!==' and instead saw '!=' eqeqeq
47:51 error Insert `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
49:11 error 'Tinycon' is not defined no-undef
49:29 error Replace `settings.environmentIndicator.name.slice(0,Ā·1).trim()` with `āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·settings.environmentIndicator.name.slice(0,Ā·1).trim(),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·` prettier/prettier
50:11 error 'Tinycon' is not defined no-undef
52:58 error Insert `,` prettier/prettier
55:9 error Insert `;` prettier/prettier
56:6 error Insert `,` prettier/prettier
57:4 error Replace `ā` with `;` prettier/prettier
/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/tinycon.min.js
7:1 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:2 error Replace `functionĀ·()Ā·{Ā·varĀ·aĀ·=Ā·{},Ā·bĀ·=Ā·null,Ā·cĀ·=Ā·null,Ā·dĀ·=Ā·null,Ā·eĀ·=Ā·null,Ā·fĀ·=Ā·{},Ā·gĀ·=Ā·Math.ceil(window.devicePixelRatio)Ā·||Ā·1,Ā·hĀ·=Ā·16Ā·*Ā·g,Ā·iĀ·=Ā·{Ā·width:Ā·7,Ā·height:Ā·9,Ā·font:Ā·10Ā·*Ā·gĀ·+Ā·"pxĀ·arial",Ā·color:Ā·"#ffffff",Ā·background:Ā·"#F03D25",Ā·fallback:Ā·!0,Ā·crossOrigin:Ā·!0,Ā·abbreviate:Ā·!0Ā·},Ā·jĀ·=Ā·functionĀ·()Ā·{Ā·varĀ·aĀ·=Ā·navigator.userAgent.toLowerCase();Ā·returnĀ·functionĀ·(b)Ā·{Ā·returnĀ·a.indexOf(b)Ā·!==Ā·-1Ā·}Ā·}(),Ā·kĀ·=Ā·{Ā·ie:Ā·j("trident"),Ā·chrome:Ā·j("chrome"),Ā·webkit:Ā·j("chrome")Ā·||Ā·j("safari"),Ā·safari:Ā·j("safari")Ā·&&Ā·!j("chrome"),Ā·mozilla:Ā·j("mozilla")Ā·&&Ā·!j("chrome")Ā·&&Ā·!j("safari")Ā·},Ā·lĀ·=Ā·functionĀ·()Ā·{Ā·forĀ·(varĀ·aĀ·=Ā·document.getElementsByTagName("link"),Ā·bĀ·=Ā·0,Ā·cĀ·=Ā·a.length;Ā·bĀ·<Ā·c;Ā·b++)ifĀ·((a[b].getAttribute("rel")Ā·||Ā·"").match(/\bicon\b/i))Ā·returnĀ·a[b];Ā·returnĀ·!1Ā·},Ā·mĀ·=Ā·functionĀ·()Ā·{Ā·forĀ·(varĀ·aĀ·=Ā·document.getElementsByTagName("link"),Ā·bĀ·=Ā·0,Ā·cĀ·=Ā·a.length;Ā·bĀ·<Ā·c;Ā·b++)Ā·{Ā·voidĀ·0Ā·!==Ā·a[b]Ā·&&Ā·(a[b].getAttribute("rel")Ā·||Ā·"").match(/\bicon\b/i)Ā·&&Ā·a[b].parentNode.removeChild(a[b])Ā·}Ā·},Ā·nĀ·=Ā·functionĀ·()Ā·{Ā·ifĀ·(!cĀ·||Ā·!b)Ā·{Ā·varĀ·aĀ·=Ā·l();Ā·bĀ·=Ā·aĀ·?Ā·a.getAttribute("href")Ā·:Ā·"/favicon.ico",Ā·cĀ·||Ā·(cĀ·=Ā·b)Ā·}Ā·returnĀ·bĀ·},Ā·oĀ·=Ā·functionĀ·()Ā·{Ā·returnĀ·eĀ·||Ā·(eĀ·=Ā·document.createElement("canvas"),Ā·e.widthĀ·=Ā·h,Ā·e.heightĀ·=Ā·h),Ā·eĀ·},Ā·pĀ·=Ā·functionĀ·(a)Ā·{Ā·ifĀ·(a)Ā·{Ā·m();Ā·varĀ·bĀ·=Ā·document.createElement("link");Ā·b.typeĀ·=Ā·"image/x-icon",Ā·b.relĀ·=Ā·"icon",Ā·b.hrefĀ·=Ā·a,Ā·document.getElementsByTagName("head")[0].appendChild(b)Ā·}Ā·},Ā·qĀ·=Ā·functionĀ·(a,Ā·b)Ā·{Ā·ifĀ·(!o().getContextĀ·||Ā·k.ieĀ·||Ā·k.safariĀ·||Ā·"force"Ā·===Ā·f.fallback)Ā·returnĀ·r(a);Ā·varĀ·cĀ·=Ā·o().getContext("2d"),Ā·bĀ·=Ā·bĀ·||Ā·"#000000",Ā·eĀ·=Ā·n();Ā·dĀ·=Ā·document.createElement("img"),Ā·d.onloadĀ·=Ā·functionĀ·()Ā·{Ā·c.clearRect(0,Ā·0,Ā·h,Ā·h),Ā·c.drawImage(d,Ā·0,Ā·0,Ā·d.width,Ā·d.height,Ā·0,Ā·0,Ā·h,Ā·h),Ā·(aĀ·+Ā·"").lengthĀ·>Ā·0Ā·&&Ā·s(c,Ā·a,Ā·b),Ā·t()Ā·},Ā·!e.match(/^data/)Ā·&&Ā·f.crossOriginĀ·&&Ā·(d.crossOriginĀ·=Ā·"anonymous"),Ā·d.srcĀ·=Ā·eĀ·},Ā·rĀ·=Ā·functionĀ·(a)Ā·{Ā·ifĀ·(f.fallback)Ā·{Ā·varĀ·bĀ·=Ā·document.title;Ā·"("Ā·===Ā·b[0]Ā·&&Ā·(bĀ·=Ā·b.slice(b.indexOf("Ā·"))),Ā·(aĀ·+Ā·"").lengthĀ·>Ā·0Ā·?Ā·document.titleĀ·=Ā·"("Ā·+Ā·aĀ·+Ā·")Ā·"Ā·+Ā·bĀ·:Ā·document.titleĀ·=Ā·bĀ·}Ā·},Ā·sĀ·=Ā·functionĀ·(a,Ā·b,Ā·c)Ā·{Ā·"number"Ā·==Ā·typeofĀ·bĀ·&&Ā·bĀ·>Ā·99Ā·&&Ā·f.abbreviateĀ·&&Ā·(bĀ·=Ā·u(b));Ā·varĀ·dĀ·=Ā·(bĀ·+Ā·"").lengthĀ·-Ā·1,Ā·eĀ·=Ā·f.widthĀ·*Ā·gĀ·+Ā·6Ā·*Ā·gĀ·*Ā·d,Ā·iĀ·=Ā·f.heightĀ·*Ā·g,Ā·jĀ·=Ā·hĀ·-Ā·i,Ā·lĀ·=Ā·hĀ·-Ā·eĀ·-Ā·g,Ā·mĀ·=Ā·16Ā·*Ā·g,Ā·nĀ·=Ā·16Ā·*Ā·g,Ā·oĀ·=Ā·2Ā·*Ā·g;Ā·a.fontĀ·=Ā·(k.webkitĀ·?Ā·"boldĀ·"Ā·:Ā·"")Ā·+Ā·f.font,Ā·a.fillStyleĀ·=Ā·f.background,Ā·a.strokeStyleĀ·=Ā·f.background,Ā·a.lineWidthĀ·=Ā·g,Ā·a.beginPath(),Ā·a.moveTo(lĀ·+Ā·o,Ā·j),Ā·a.quadraticCurveTo(l,Ā·j,Ā·l,Ā·jĀ·+Ā·o),Ā·a.lineTo(l,Ā·mĀ·-Ā·o),Ā·a.quadraticCurveTo(l,Ā·m,Ā·lĀ·+Ā·o,Ā·m),Ā·a.lineTo(nĀ·-Ā·o,Ā·m),Ā·a.quadraticCurveTo(n,Ā·m,Ā·n,Ā·mĀ·-Ā·o),Ā·a.lineTo(n,Ā·jĀ·+Ā·o),Ā·a.quadraticCurveTo(n,Ā·j,Ā·nĀ·-Ā·o,Ā·j),Ā·a.closePath(),Ā·a.fill(),Ā·a.beginPath(),Ā·a.strokeStyleĀ·=Ā·"rgba(0,0,0,0.3)",Ā·a.moveTo(lĀ·+Ā·oĀ·/Ā·2,Ā·m),Ā·a.lineTo(nĀ·-Ā·oĀ·/Ā·2,Ā·m),Ā·a.stroke(),Ā·a.fillStyleĀ·=Ā·f.color,Ā·a.textAlignĀ·=Ā·"right",Ā·a.textBaselineĀ·=Ā·"top",Ā·a.fillText(b,Ā·2Ā·===Ā·gĀ·?Ā·29Ā·:Ā·15,Ā·k.mozillaĀ·?Ā·7Ā·*Ā·gĀ·:Ā·6Ā·*Ā·g)Ā·},Ā·tĀ·=Ā·functionĀ·()Ā·{Ā·o().getContextĀ·&&Ā·p(o().toDataURL())Ā·},Ā·uĀ·=Ā·functionĀ·(a)Ā·{Ā·forĀ·(varĀ·bĀ·=Ā·[["G",Ā·1e9],Ā·["M",Ā·1e6],Ā·["k",Ā·1e3]],Ā·cĀ·=Ā·0;Ā·cĀ·<Ā·b.length;Ā·++c)ifĀ·(aĀ·>=Ā·b[c][1])Ā·{Ā·aĀ·=Ā·v(aĀ·/Ā·b[c][1])Ā·+Ā·b[c][0];Ā·breakĀ·}Ā·returnĀ·aĀ·},Ā·vĀ·=Ā·functionĀ·(a,Ā·b)Ā·{Ā·returnĀ·newĀ·Number(a).toFixed(b)Ā·};Ā·a.setOptionsĀ·=Ā·functionĀ·(a)Ā·{Ā·fĀ·=Ā·{},Ā·a.colourĀ·&&Ā·(a.colorĀ·=Ā·a.colour);Ā·forĀ·(varĀ·bĀ·inĀ·i)Ā·f[b]Ā·=Ā·a.hasOwnProperty(b)Ā·?Ā·a[b]Ā·:Ā·i[b];Ā·returnĀ·thisĀ·},Ā·a.setImageĀ·=Ā·functionĀ·(a)Ā·{Ā·returnĀ·bĀ·=Ā·a,Ā·t(),Ā·thisĀ·},Ā·a.setBubbleĀ·=Ā·functionĀ·(a,Ā·b)Ā·{Ā·returnĀ·aĀ·=Ā·aĀ·||Ā·"",Ā·q(a,Ā·b),Ā·thisĀ·},Ā·a.resetĀ·=Ā·functionĀ·()Ā·{Ā·bĀ·=Ā·c,Ā·p(c)Ā·},Ā·a.setOptions(i),Ā·"function"Ā·==Ā·typeofĀ·defineĀ·&&Ā·define.amdĀ·?Ā·define(a)Ā·:Ā·"undefined"Ā·!=Ā·typeofĀ·moduleĀ·?Ā·module.exportsĀ·=Ā·aĀ·:Ā·window.TinyconĀ·=Ā·aĀ·}` with `(functionĀ·()Ā·{āĀ·Ā·varĀ·aĀ·=Ā·{},āĀ·Ā·Ā·Ā·bĀ·=Ā·null,āĀ·Ā·Ā·Ā·cĀ·=Ā·null,āĀ·Ā·Ā·Ā·dĀ·=Ā·null,āĀ·Ā·Ā·Ā·eĀ·=Ā·null,āĀ·Ā·Ā·Ā·fĀ·=Ā·{},āĀ·Ā·Ā·Ā·gĀ·=Ā·Math.ceil(window.devicePixelRatio)Ā·||Ā·1,āĀ·Ā·Ā·Ā·hĀ·=Ā·16Ā·*Ā·g,āĀ·Ā·Ā·Ā·iĀ·=Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·width:Ā·7,āĀ·Ā·Ā·Ā·Ā·Ā·height:Ā·9,āĀ·Ā·Ā·Ā·Ā·Ā·font:Ā·10Ā·*Ā·gĀ·+Ā·'pxĀ·arial',āĀ·Ā·Ā·Ā·Ā·Ā·color:Ā·'#ffffff',āĀ·Ā·Ā·Ā·Ā·Ā·background:Ā·'#F03D25',āĀ·Ā·Ā·Ā·Ā·Ā·fallback:Ā·!0,āĀ·Ā·Ā·Ā·Ā·Ā·crossOrigin:Ā·!0,āĀ·Ā·Ā·Ā·Ā·Ā·abbreviate:Ā·!0,āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·jĀ·=Ā·(functionĀ·()Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·varĀ·aĀ·=Ā·navigator.userAgent.toLowerCase();āĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·functionĀ·(b)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·returnĀ·a.indexOf(b)Ā·!==Ā·-1;āĀ·Ā·Ā·Ā·Ā·Ā·};āĀ·Ā·Ā·Ā·})(),āĀ·Ā·Ā·Ā·kĀ·=Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·ie:Ā·j('trident'),āĀ·Ā·Ā·Ā·Ā·Ā·chrome:Ā·j('chrome'),āĀ·Ā·Ā·Ā·Ā·Ā·webkit:Ā·j('chrome')Ā·||Ā·j('safari'),āĀ·Ā·Ā·Ā·Ā·Ā·safari:Ā·j('safari')Ā·&&Ā·!j('chrome'),āĀ·Ā·Ā·Ā·Ā·Ā·mozilla:Ā·j('mozilla')Ā·&&Ā·!j('chrome')Ā·&&Ā·!j('safari'),āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·lĀ·=Ā·functionĀ·()Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·forĀ·(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·aĀ·=Ā·document.getElementsByTagName('link'),Ā·bĀ·=Ā·0,Ā·cĀ·=Ā·a.length;āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·bĀ·<Ā·c;āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·b++āĀ·Ā·Ā·Ā·Ā·Ā·)āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·ifĀ·((a[b].getAttribute('rel')Ā·||Ā·'').match(/\bicon\b/i))Ā·returnĀ·a[b];āĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·!1;āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·mĀ·=Ā·functionĀ·()Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·forĀ·(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·aĀ·=Ā·document.getElementsByTagName('link'),Ā·bĀ·=Ā·0,Ā·cĀ·=Ā·a.length;āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·bĀ·<Ā·c;āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·b++āĀ·Ā·Ā·Ā·Ā·Ā·)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·voidĀ·0Ā·!==Ā·a[b]Ā·&&āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a[b].getAttribute('rel')Ā·||Ā·'').match(/\bicon\b/i)Ā·&&āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a[b].parentNode.removeChild(a[b]);āĀ·Ā·Ā·Ā·Ā·Ā·}āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·nĀ·=Ā·functionĀ·()Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·ifĀ·(!cĀ·||Ā·!b)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·aĀ·=Ā·l();āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(bĀ·=Ā·aĀ·?Ā·a.getAttribute('href')Ā·:Ā·'/favicon.ico'),Ā·cĀ·||Ā·(cĀ·=Ā·b);āĀ·Ā·Ā·Ā·Ā·Ā·}āĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·b;āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·oĀ·=Ā·functionĀ·()Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·eĀ·||āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·((eĀ·=Ā·document.createElement('canvas')),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(e.widthĀ·=Ā·h),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(e.heightĀ·=Ā·h)),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·eāĀ·Ā·Ā·Ā·Ā·Ā·);āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·pĀ·=Ā·functionĀ·(a)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·ifĀ·(a)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·m();āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·bĀ·=Ā·document.createElement('link');āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(b.typeĀ·=Ā·'image/x-icon'),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(b.relĀ·=Ā·'icon'),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(b.hrefĀ·=Ā·a),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·document.getElementsByTagName('head')[0].appendChild(b);āĀ·Ā·Ā·Ā·Ā·Ā·}āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·qĀ·=Ā·functionĀ·(a,Ā·b)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·ifĀ·(!o().getContextĀ·||Ā·k.ieĀ·||Ā·k.safariĀ·||Ā·'force'Ā·===Ā·f.fallback)āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·returnĀ·r(a);āĀ·Ā·Ā·Ā·Ā·Ā·varĀ·cĀ·=Ā·o().getContext('2d'),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·bĀ·=Ā·bĀ·||Ā·'#000000',āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·eĀ·=Ā·n();āĀ·Ā·Ā·Ā·Ā·Ā·(dĀ·=Ā·document.createElement('img')),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(d.onloadĀ·=Ā·functionĀ·()Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·c.clearRect(0,Ā·0,Ā·h,Ā·h),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·c.drawImage(d,Ā·0,Ā·0,Ā·d.width,Ā·d.height,Ā·0,Ā·0,Ā·h,Ā·h),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(aĀ·+Ā·'').lengthĀ·>Ā·0Ā·&&Ā·s(c,Ā·a,Ā·b),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·t();āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·}),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·!e.match(/^data/)Ā·&&Ā·f.crossOriginĀ·&&Ā·(d.crossOriginĀ·=Ā·'anonymous'),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(d.srcĀ·=Ā·e);āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·rĀ·=Ā·functionĀ·(a)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·ifĀ·(f.fallback)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·bĀ·=Ā·document.title;āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·'('Ā·===Ā·b[0]Ā·&&Ā·(bĀ·=Ā·b.slice(b.indexOf('Ā·'))),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(aĀ·+Ā·'').lengthĀ·>Ā·0āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·?Ā·(document.titleĀ·=Ā·'('Ā·+Ā·aĀ·+Ā·')Ā·'Ā·+Ā·b)āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·:Ā·(document.titleĀ·=Ā·b);āĀ·Ā·Ā·Ā·Ā·Ā·}āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·sĀ·=Ā·functionĀ·(a,Ā·b,Ā·c)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·'number'Ā·==Ā·typeofĀ·bĀ·&&Ā·bĀ·>Ā·99Ā·&&Ā·f.abbreviateĀ·&&Ā·(bĀ·=Ā·u(b));āĀ·Ā·Ā·Ā·Ā·Ā·varĀ·dĀ·=Ā·(bĀ·+Ā·'').lengthĀ·-Ā·1,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·eĀ·=Ā·f.widthĀ·*Ā·gĀ·+Ā·6Ā·*Ā·gĀ·*Ā·d,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·iĀ·=Ā·f.heightĀ·*Ā·g,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·jĀ·=Ā·hĀ·-Ā·i,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·lĀ·=Ā·hĀ·-Ā·eĀ·-Ā·g,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·mĀ·=Ā·16Ā·*Ā·g,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·nĀ·=Ā·16Ā·*Ā·g,āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·oĀ·=Ā·2Ā·*Ā·g;āĀ·Ā·Ā·Ā·Ā·Ā·(a.fontĀ·=Ā·(k.webkitĀ·?Ā·'boldĀ·'Ā·:Ā·'')Ā·+Ā·f.font),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.fillStyleĀ·=Ā·f.background),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.strokeStyleĀ·=Ā·f.background),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.lineWidthĀ·=Ā·g),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.beginPath(),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.moveTo(lĀ·+Ā·o,Ā·j),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.quadraticCurveTo(l,Ā·j,Ā·l,Ā·jĀ·+Ā·o),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.lineTo(l,Ā·mĀ·-Ā·o),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.quadraticCurveTo(l,Ā·m,Ā·lĀ·+Ā·o,Ā·m),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.lineTo(nĀ·-Ā·o,Ā·m),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.quadraticCurveTo(n,Ā·m,Ā·n,Ā·mĀ·-Ā·o),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.lineTo(n,Ā·jĀ·+Ā·o),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.quadraticCurveTo(n,Ā·j,Ā·nĀ·-Ā·o,Ā·j),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.closePath(),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.fill(),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.beginPath(),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.strokeStyleĀ·=Ā·'rgba(0,0,0,0.3)'),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.moveTo(lĀ·+Ā·oĀ·/Ā·2,Ā·m),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.lineTo(nĀ·-Ā·oĀ·/Ā·2,Ā·m),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.stroke(),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.fillStyleĀ·=Ā·f.color),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.textAlignĀ·=Ā·'right'),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·(a.textBaselineĀ·=Ā·'top'),āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·a.fillText(b,Ā·2Ā·===Ā·gĀ·?Ā·29Ā·:Ā·15,Ā·k.mozillaĀ·?Ā·7Ā·*Ā·gĀ·:Ā·6Ā·*Ā·g);āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·tĀ·=Ā·functionĀ·()Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·o().getContextĀ·&&Ā·p(o().toDataURL());āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·uĀ·=Ā·functionĀ·(a)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·forĀ·(āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·varĀ·bĀ·=Ā·[āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·['G',Ā·1e9],āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·['M',Ā·1e6],āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·['k',Ā·1e3],āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·],āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·cĀ·=Ā·0;āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·cĀ·<Ā·b.length;āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·++cāĀ·Ā·Ā·Ā·Ā·Ā·)āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·ifĀ·(aĀ·>=Ā·b[c][1])Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·aĀ·=Ā·v(aĀ·/Ā·b[c][1])Ā·+Ā·b[c][0];āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·Ā·break;āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·}āĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·a;āĀ·Ā·Ā·Ā·},āĀ·Ā·Ā·Ā·vĀ·=Ā·functionĀ·(a,Ā·b)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·newĀ·Number(a).toFixed(b);āĀ·Ā·Ā·Ā·};āĀ·Ā·(a.setOptionsĀ·=Ā·functionĀ·(a)Ā·{āĀ·Ā·Ā·Ā·(fĀ·=Ā·{}),Ā·a.colourĀ·&&Ā·(a.colorĀ·=Ā·a.colour);āĀ·Ā·Ā·Ā·forĀ·(varĀ·bĀ·inĀ·i)Ā·f[b]Ā·=Ā·a.hasOwnProperty(b)Ā·?Ā·a[b]Ā·:Ā·i[b];āĀ·Ā·Ā·Ā·returnĀ·this;āĀ·Ā·}),āĀ·Ā·Ā·Ā·(a.setImageĀ·=Ā·functionĀ·(a)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·(bĀ·=Ā·a),Ā·t(),Ā·this;āĀ·Ā·Ā·Ā·}),āĀ·Ā·Ā·Ā·(a.setBubbleĀ·=Ā·functionĀ·(a,Ā·b)Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·returnĀ·(aĀ·=Ā·aĀ·||Ā·''),Ā·q(a,Ā·b),Ā·this;āĀ·Ā·Ā·Ā·}),āĀ·Ā·Ā·Ā·(a.resetĀ·=Ā·functionĀ·()Ā·{āĀ·Ā·Ā·Ā·Ā·Ā·(bĀ·=Ā·c),Ā·p(c);āĀ·Ā·Ā·Ā·}),āĀ·Ā·Ā·Ā·a.setOptions(i),āĀ·Ā·Ā·Ā·'function'Ā·==Ā·typeofĀ·defineĀ·&&Ā·define.amdāĀ·Ā·Ā·Ā·Ā·Ā·?Ā·define(a)āĀ·Ā·Ā·Ā·Ā·Ā·:Ā·'undefined'Ā·!=Ā·typeofĀ·moduleāĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·?Ā·(module.exportsĀ·=Ā·a)āĀ·Ā·Ā·Ā·Ā·Ā·Ā·Ā·:Ā·(window.TinyconĀ·=Ā·a);ā})` prettier/prettier
7:16 error Split 'var' declarations into multiple statements one-var
7:16 error Unexpected var, use let or const instead no-var
7:166 error Unexpected string concatenation prefer-template
7:295 error Unexpected var, use let or const instead no-var
7:592 error All 'var' declarations must be at the top of the function scope vars-on-top
7:592 error Unexpected var, use let or const instead no-var
7:777 error All 'var' declarations must be at the top of the function scope vars-on-top
7:777 error Unexpected var, use let or const instead no-var
7:859 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:859 error Expected 'undefined' and instead saw 'void' no-void
7:1006 error All 'var' declarations must be at the top of the function scope vars-on-top
7:1006 error Unexpected var, use let or const instead no-var
7:1019 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:1066 error Unexpected use of comma operator no-sequences
7:1113 error Return statement should not contain assignment no-return-assign
7:1113 error Return statement should not contain assignment no-return-assign
7:1113 error Return statement should not contain assignment no-return-assign
7:1190 error Unexpected use of comma operator no-sequences
7:1230 error All 'var' declarations must be at the top of the function scope vars-on-top
7:1230 error Unexpected var, use let or const instead no-var
7:1270 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:1293 error Unexpected use of comma operator no-sequences
7:1449 error Expected literal to be on the right side of === yoda
7:1480 error 'r' was used before it was defined no-use-before-define
7:1486 error Split 'var' declarations into multiple statements one-var
7:1486 error All 'var' declarations must be at the top of the function scope vars-on-top
7:1486 error Unexpected var, use let or const instead no-var
7:1516 error 'b' is already defined no-redeclare
7:1545 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:1578 error Unexpected use of comma operator no-sequences
7:1605 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:1628 error Unexpected use of comma operator no-sequences
7:1684 error Unexpected string concatenation prefer-template
7:1706 error 's' was used before it was defined no-use-before-define
7:1718 error 't' was used before it was defined no-use-before-define
7:1844 error All 'var' declarations must be at the top of the function scope vars-on-top
7:1844 error Unexpected var, use let or const instead no-var
7:1868 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:1868 error Expected literal to be on the right side of === yoda
7:1913 error Unexpected use of comma operator no-sequences
7:1916 error Unexpected string concatenation prefer-template
7:1954 error Unexpected string concatenation prefer-template
7:2024 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:2024 error Expected literal to be on the right side of == yoda
7:2033 error Expected '===' and instead saw '==' eqeqeq
7:2079 error 'u' was used before it was defined no-use-before-define
7:2086 error Split 'var' declarations into multiple statements one-var
7:2086 error All 'var' declarations must be at the top of the function scope vars-on-top
7:2086 error Unexpected var, use let or const instead no-var
7:2095 error Unexpected string concatenation prefer-template
7:2223 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:2266 error Unexpected use of comma operator no-sequences
7:2801 error Expected literal to be on the right side of === yoda
7:2868 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:2932 error All 'var' declarations must be at the top of the function scope vars-on-top
7:2932 error Unexpected var, use let or const instead no-var
7:3027 error 'v' was used before it was defined no-use-before-define
7:3102 error Do not use Number as a constructor no-new-wrappers
7:3130 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:3160 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:3166 error Unexpected use of comma operator no-sequences
7:3202 error for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array no-restricted-syntax
7:3202 error The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype guard-for-in
7:3207 error All 'var' declarations must be at the top of the function scope vars-on-top
7:3207 error Unexpected var, use let or const instead no-var
7:3274 error Unexpected use of comma operator no-sequences
7:3304 error Return statement should not contain assignment no-return-assign
7:3316 error Unexpected use of comma operator no-sequences
7:3363 error Return statement should not contain assignment no-return-assign
7:3381 error Unexpected use of comma operator no-sequences
7:3424 error Expected an assignment or function call and instead saw an expression no-unused-expressions
7:3429 error Unexpected use of comma operator no-sequences
7:3456 error Do not nest ternary expressions no-nested-ternary
7:3456 error Expected literal to be on the right side of == yoda
7:3467 error Expected '===' and instead saw '==' eqeqeq
7:3487 error 'define' is not defined no-undef
7:3500 error 'define' is not defined no-undef
7:3512 error Expected literal to be on the right side of != yoda
7:3524 error Expected '!==' and instead saw '!=' eqeqeq
ā 216 problems (216 errors, 0 warnings)
141 errors and 0 warnings potentially fixable with the `--fix` option.
[32;1m$ printf "$DIVIDER\nNow running ESLINT using the --fix option. Any errors shown below are not fixable automatically.$DIVIDER\n"[0;m
*****************************************************************************************************************************
Now running ESLINT using the --fix option. Any errors shown below are not fixable automatically.
*****************************************************************************************************************************
[32;1m$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml $_ESLINT_EXTRA --fix . || EXIT_CODE_FIX=$?[0;m
/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/color.js
44:32 error Use the rest parameters instead of 'arguments' prefer-rest-params
45:15 error Use the rest parameters instead of 'arguments' prefer-rest-params
47:27 error Use the rest parameters instead of 'arguments' prefer-rest-params
/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/environment_indicator.js
4:7 error Prefer addEventListener to $.bind jquery/no-bind
27:11 error Prefer getComputedStyle to $.css jquery/no-css
31:11 error Prefer getComputedStyle to $.css jquery/no-css
38:11 error Prefer getComputedStyle to $.css jquery/no-css
42:11 error Prefer getComputedStyle to $.css jquery/no-css
51:11 error Prefer getComputedStyle to $.css jquery/no-css
78:11 error 'Tinycon' is not defined no-undef
81:11 error 'Tinycon' is not defined no-undef
/builds/project/environment_indicator/web/modules/custom/environment_indicator/js/tinycon.min.js
7:1 error Expected an assignment or function call and instead saw an expression no-unused-expressions
54:7 error Expected an assignment or function call and instead saw an expression no-unused-expressions
54:7 error Expected 'undefined' and instead saw 'void' no-void
62:7 error Expected an assignment or function call and instead saw an expression no-unused-expressions
62:56 error Unexpected use of comma operator no-sequences
67:5 error Return statement should not contain assignment no-return-assign
67:5 error Return statement should not contain assignment no-return-assign
67:5 error Return statement should not contain assignment no-return-assign
77:7 error Expected an assignment or function call and instead saw an expression no-unused-expressions
77:32 error Unexpected use of comma operator no-sequences
85:14 error 'r' was used before it was defined no-use-before-define
87:5 error All 'var' declarations must be at the top of the function scope vars-on-top
87:5 error Unexpected var, use let or const instead no-var
87:9 error 'b' is already defined no-redeclare
89:5 error Expected an assignment or function call and instead saw an expression no-unused-expressions
89:40 error Unexpected use of comma operator no-sequences
91:9 error Expected an assignment or function call and instead saw an expression no-unused-expressions
91:32 error Unexpected use of comma operator no-sequences
93:32 error 's' was used before it was defined no-use-before-define
94:11 error 't' was used before it was defined no-use-before-define
99:3 error Unexpected var, use let or const instead no-var
102:7 error Expected an assignment or function call and instead saw an expression no-unused-expressions
102:52 error Unexpected use of comma operator no-sequences
108:3 error Unexpected var, use let or const instead no-var
109:5 error Expected an assignment or function call and instead saw an expression no-unused-expressions
109:61 error 'u' was used before it was defined no-use-before-define
118:5 error Expected an assignment or function call and instead saw an expression no-unused-expressions
118:50 error Unexpected use of comma operator no-sequences
143:3 error Unexpected var, use let or const instead no-var
144:5 error Expected an assignment or function call and instead saw an expression no-unused-expressions
146:3 error Unexpected var, use let or const instead no-var
158:13 error 'v' was used before it was defined no-use-before-define
163:3 error Unexpected var, use let or const instead no-var
164:12 error Do not use Number as a constructor no-new-wrappers
166:3 error Expected an assignment or function call and instead saw an expression no-unused-expressions
167:5 error Expected an assignment or function call and instead saw an expression no-unused-expressions
167:13 error Unexpected use of comma operator no-sequences
168:5 error for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array no-restricted-syntax
168:5 error The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype guard-for-in
170:5 error Unexpected use of comma operator no-sequences
172:7 error Return statement should not contain assignment no-return-assign
172:21 error Unexpected use of comma operator no-sequences
175:7 error Return statement should not contain assignment no-return-assign
175:27 error Unexpected use of comma operator no-sequences
178:7 error Expected an assignment or function call and instead saw an expression no-unused-expressions
178:14 error Unexpected use of comma operator no-sequences
181:5 error Do not nest ternary expressions no-nested-ternary
181:37 error 'define' is not defined no-undef
182:9 error 'define' is not defined no-undef
ā 60 problems (60 errors, 0 warnings)
[32;1m$ CHANGED=$(git diff -G"." --name-only . $CI_PROJECT_DIR | grep -E '\.(yml|js)$') || true[0;m
[32;1m$ if [ "$CHANGED" != "" ]; then # collapsed multi-line command[0;m
*****************************************************************************************************************************
The following files have ESLINT errors and warnings, and some of them can be resolved using the --fix argument.
config/schema/environment_indicator.schema.yml
js/color.js
js/environment_indicator.js
js/tinycon.min.js
A patch file _eslint.patch containing the changes has been created as an artifact for download.
*****************************************************************************************************************************
[32;1m$ test -f .eslintignore && echo "=== This is .eslintignore ===" && cat .eslintignore || true[0;m
[32;1m$ test -f .prettierignore && echo "=== This is .prettierignore ===" && cat .prettierignore || true[0;m
=== This is .prettierignore ===
*.yml
[32;1m$ printf "Exiting with EXIT_CODE=$EXIT_CODE_FILE\n"[0;m
Exiting with EXIT_CODE=1
[32;1m$ exit $EXIT_CODE_FILE[0;m
section_end:1728727893:step_script
[0Ksection_start:1728727893:upload_artifacts_on_failure
[0K[0K[36;1mUploading artifacts for failed job[0;m[0;m
[32;1mUploading artifacts...[0;m
junit.xml: found 1 matching artifact files and directories[0;m
_eslint.patch: found 1 matching artifact files and directories[0;m
Uploading artifacts as "archive" to coordinator... 201 Created[0;m id[0;m=3032505 responseStatus[0;m=201 Created token[0;m=glcbt-64
[32;1mUploading artifacts...[0;m
junit.xml: found 1 matching artifact files and directories[0;m
Uploading artifacts as "junit" to coordinator... 201 Created[0;m id[0;m=3032505 responseStatus[0;m=201 Created token[0;m=glcbt-64
section_end:1728727895:upload_artifacts_on_failure
[0Ksection_start:1728727895:cleanup_file_variables
[0K[0K[36;1mCleaning up project directory and file based variables[0;m[0;m
section_end:1728727895:cleanup_file_variables
[0K[31;1mERROR: Job failed: command terminated with exit code 1
[0;m
Proposed resolution
- Update the gitlab-ci.yml file to not allow the eslint job to fail prior to a merge request being merged.
See:
https://www.drupal.org/docs/develop/git/using-gitlab-to-contribute-to-dr... ā
eslint:
allow_failure: false
- Refactor and edit the code until the ESLint job passes.
- Merge so that all future updates to yml and js files are required to pass the linting step.
Remaining tasks
User interface changes
API changes
Data model changes