Fix issue reported by gitlab ci.

Created on 31 October 2023, about 1 year ago

eslint

/builds/issue/acquia_cms_component-3397085/web/modules/custom/acquia_cms_component-3397085/components/block/react_component_block/react_node_block.js
  44:16  error  Parsing error: Unexpected token <
/builds/issue/acquia_cms_component-3397085/web/modules/custom/acquia_cms_component-3397085/components/libraries/api_library/drupal-api.js
   1:1   error    'use strict' is unnecessary inside of modules                                                            strict
   3:20  warning  Unexpected unnamed function                                                                              func-names
   3:28  error    Insert `·`                                                                                               prettier/prettier
   5:1   error    'DrupalApi' is not defined                                                                               no-undef
   6:12  error    Replace `"/jsonapi/"` with `'/jsonapi/'`                                                                 prettier/prettier
   7:3   warning  Unexpected unnamed method 'setBaseUrl'                                                                   func-names
   7:3   error    Expected method shorthand                                                                                object-shorthand
   7:23  error    Insert `·`                                                                                               prettier/prettier
  10:3   warning  Unexpected unnamed method 'setEndpoint'                                                                  func-names
  10:3   error    Expected method shorthand                                                                                object-shorthand
  11:15  error    Replace `(endpoint)·==·"string"` with `·endpoint·==·'string'`                                            prettier/prettier
  11:26  error    Expected '===' and instead saw '=='                                                                      eqeqeq
  15:3   warning  Unexpected unnamed method 'getApiUrl'                                                                    func-names
  15:3   error    Expected method shorthand                                                                                object-shorthand
  15:22  error    Insert `·`                                                                                               prettier/prettier
  18:3   warning  Unexpected unnamed method 'setParams'                                                                    func-names
  18:3   error    Expected method shorthand                                                                                object-shorthand
  19:15  error    Replace `(params)·==·"object"` with `·params·==·'object'`                                                prettier/prettier
  19:24  error    Expected '===' and instead saw '=='                                                                      eqeqeq
  20:22  error    Replace `"?"` with `'?'`                                                                                 prettier/prettier
  20:22  error    Unexpected string concatenation                                                                          prefer-template
  23:3   warning  Unexpected unnamed method 'parseParams'                                                                  func-names
  23:3   error    Expected method shorthand                                                                                object-shorthand
  23:24  error    Insert `·`                                                                                               prettier/prettier
  24:9   error    'parseParamsObject' is never reassigned. Use 'const' instead                                             prefer-const
  24:29  warning  Unexpected unnamed function                                                                              func-names
  24:37  error    Insert `·`                                                                                               prettier/prettier
  25:20  error    Replace `""` with `''`                                                                                   prettier/prettier
  26:35  error    Replace `key` with `(key)`                                                                               prettier/prettier
  28:19  error    Replace `(value)·==·"object"` with `·value·==·'object'`                                                  prettier/prettier
  28:27  error    Expected '===' and instead saw '=='                                                                      eqeqeq
  29:22  error    Expected '===' and instead saw '=='                                                                      eqeqeq
  29:25  error    Replace `""` with `''`                                                                                   prettier/prettier
  32:47  error    Insert `·`                                                                                               prettier/prettier
  32:47  error    Unexpected string concatenation                                                                          prefer-template
  35:22  error    Expected '!==' and instead saw '!='                                                                      eqeqeq
  35:25  error    Replace `""` with `''`                                                                                   prettier/prettier
  36:23  error    Unexpected string concatenation                                                                          prefer-template
  38:23  error    Unexpected string concatenation                                                                          prefer-template
  46:34  error    Insert `·`                                                                                               prettier/prettier
  49:3   warning  Unexpected unnamed method 'callApi'                                                                      func-names
  49:3   error    Expected method shorthand                                                                                object-shorthand
  49:20  error    Insert `·`                                                                                               prettier/prettier
  52:24  error    Insert `,`                                                                                               prettier/prettier
  57:21  error    Replace `.then(response` with `⏎······.then((response)`                                                  prettier/prettier
  58:1   error    Replace `······` with `········`                                                                         prettier/prettier
  59:9   error    Insert `··`                                                                                              prettier/prettier
  60:7   error    Insert `··`                                                                                              prettier/prettier
  61:1   error    Insert `··`                                                                                              prettier/prettier
  62:5   error    Replace `}).then(data` with `··})⏎······.then((data)`                                                    prettier/prettier
  62:13  error    'data' is already declared in the upper scope on line 50 column 9                                        no-shadow
  63:1   error    Replace `······if·(typeof(_callback)·!=·"undefined"` with `········if·(typeof·_callback·!=·'undefined'`  prettier/prettier
  63:29  error    Expected '!==' and instead saw '!='                                                                      eqeqeq
  64:9   error    Insert `··`                                                                                              prettier/prettier
  65:7   error    Insert `··`                                                                                              prettier/prettier
  66:1   error    Replace `····}).catch(error` with `······})⏎······.catch((error)`                                        prettier/prettier
  67:1   error    Insert `··`                                                                                              prettier/prettier
  67:7   warning  Unexpected console statement                                                                             no-console
  68:5   error    Insert `··`                                                                                              prettier/prettier
  69:4   error    Insert `,`                                                                                               prettier/prettier
✖ 61 problems (52 errors, 9 warnings)
  47 errors and 0 warnings potentially fixable with the `--fix` option.

phpstan

WARNING: Uploading artifacts as "codequality" to coordinator... 500 Internal Server Error  id=233603 responseStatus=500 Internal Server Error status=500 token=64_Njw74
WARNING: Retrying...                                context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "codequality" to coordinator... 500 Internal Server Error  id=233603 responseStatus=500 Internal Server Error status=500 token=64_Njw74
WARNING: Retrying...                                context=artifacts-uploader error=invalid argument
WARNING: Uploading artifacts as "codequality" to coordinator... 500 Internal Server Error  id=233603 responseStatus=500 Internal Server Error status=500 token=64_Njw74
FATAL: invalid argument 

stylelint

./modules/custom/acquia_cms_component-3397085/components/block/react_component_block/react_node_block.css
  5:3   ✖  Expected "width" to come before "border-radius"      order/properties-order
 17:3   ✖  Expected "font-weight" to come before "line-height"  order/properties-order
 26:19  ✖  Unexpected unit                                      length-zero-no-unit
 41:5   ✖  Expected "transform" to come before "opacity"        order/properties-order
 45:5   ✖  Expected "transform" to come before "opacity"        order/properties-order
 52:5   ✖  Expected "transform" to come before "opacity"        order/properties-order
 56:5   ✖  Expected "transform" to come before "opacity"        order/properties-order
7 problems (7 errors, 0 warnings)
1 source checked
 /builds/issue/acquia_cms_component-3397085/web/modules/custom/acquia_cms_component-3397085/components/block/react_component_block/react_node_block.css
7 errors found
 order/properties-order: 6
 length-zero-no-unit: 1 (maybe fixable)

Note:

Fix in parent issue use this fork: https://git.drupalcode.org/issue/acquia_cms_component-3397085/-/tree/339... so pipeline will run.

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India rajeshreeputra Pune

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024