Cspell and eslint issues on pipelines.

Created on 11 October 2024, 2 months ago

Problem/Motivation

We have the following cspell issues:

./composer.json:2:19      - Unknown word (countup)    -- "name": "drupal/countup_formatter",
	 Suggestions: [count, cutup, counts, county, count's]
./composer.json:8:22      - Unknown word (Schmitz)    -- "name": "Guido Schmitz",
	 Suggestions: [schlitz, Schlitz, Schmalz, schmidt, Schmidt]
./composer.json:24:18     - Unknown word (inorganik)  -- "name": "inorganik/countup-js",
	 Suggestions: [inorganic]
./composer.json:24:28     - Unknown word (countup)    -- "name": "inorganik/countup-js",
	 Suggestions: [count, cutup, counts, county, count's]
./composer.libraries.json:2:19      - Unknown word (countup)    -- "name": "drupal/countup_formatter",
	 Suggestions: [count, cutup, counts, county, count's]
./composer.libraries.json:8:22      - Unknown word (Schmitz)    -- "name": "Guido Schmitz",
	 Suggestions: [schlitz, Schlitz, Schmalz, schmidt, Schmidt]
./composer.libraries.json:24:18     - Unknown word (inorganik)  -- "name": "inorganik/countup-js",
	 Suggestions: [inorganic]
./composer.libraries.json:24:28     - Unknown word (countup)    -- "name": "inorganik/countup-js",
	 Suggestions: [count, cutup, counts, county, count's]
./composer.libraries.json:35:6      - Unknown word (inorganik)  -- "inorganik/countup-js": "2.4.2
	 Suggestions: [inorganic]
./composer.libraries.json:35:16     - Unknown word (countup)    -- "inorganik/countup-js": "2.4.2"
	 Suggestions: [count, cutup, counts, county, count's]
./countup_formatter.libraries.yml:1:1       - Unknown word (countup)    -- countup:
	 Suggestions: [count, cutup, counts, county, count's]
./countup_formatter.libraries.yml:4:8       - Unknown word (countup)    -- js/countup.js: {}
	 Suggestions: [count, cutup, counts, county, count's]
./countup_formatter.libraries.yml:10:7      - Unknown word (countup)    -- - countup_formatter/countup-lib
	 Suggestions: [count, cutup, counts, county, count's]
./countup_formatter.libraries.yml:10:25     - Unknown word (countup)    -- - countup_formatter/countup-lib
	 Suggestions: [count, cutup, counts, county, count's]
./countup_formatter.libraries.yml:12:1      - Unknown word (countup)    -- countup-lib:
	 Suggestions: [count, cutup, counts, county, count's]
./js/countup.js:5:28      - Unknown word (behaviour)  -- Attach the countUp.js behaviour to the expected elements
	 Suggestions: [behavior, behaviors, behaver, behaving, belabour]
./js/countup.js:9:20      - Unknown word (countupformatter) -- Drupal.behaviors.countupformatter = {
	 Suggestions: []
./js/countup.js:16:21     - Unknown word (countup)          -- stepSelector: '.countup-formatter',
	 Suggestions: [count, cutup, counts, county, count's]
./js/countup.js:22:27     - Unknown word (countup)          -- if ($('body').once('countup').length) {
	 Suggestions: [count, cutup, counts, county, count's]
./js/countup.js:29:50     - Unknown word (countup)          -- stepSelector + ':not(.countup-processed)');
	 Suggestions: [count, cutup, counts, county, count's]
./js/countup.js:41:32     - Unknown word (countup)          -- (element).addClass('countup-processed');
	 Suggestions: [count, cutup, counts, county, count's]
./js/countup.js:42:13     - Unknown word (countup)          -- o.countup(element);
	 Suggestions: [count, cutup, counts, county, count's]
./src/Plugin/Field/FieldFormatter/CountUpFormatter.php:3:18      - Unknown word (countup)    -- namespace Drupal\countup_formatter\Plugin\Field
	 Suggestions: [count, cutup, counts, county, count's]
./src/Plugin/Field/FieldFormatter/CountUpFormatter.php:13:12     - Unknown word (countup)    -- * id = "countup_formatter_countupformatter
	 Suggestions: [count, cutup, counts, county, count's]
./src/Plugin/Field/FieldFormatter/CountUpFormatter.php:13:30     - Unknown word (countupformatter) -- "countup_formatter_countupformatter",
	 Suggestions: []
./src/Plugin/Field/FieldFormatter/CountUpFormatter.php:144:14    - Unknown word (countup)          -- 'countup-formatter',
	 Suggestions: [count, cutup, counts, county, count's]
./src/Plugin/Field/FieldFormatter/CountUpFormatter.php:159:14    - Unknown word (countup)          -- 'countup_formatter/countup',
	 Suggestions: [count, cutup, counts, county, count's]
./src/Plugin/Field/FieldFormatter/CountUpFormatter.php:159:32    - Unknown word (countup)          -- 'countup_formatter/countup',
	 Suggestions: [count, cutup, counts, county, count's]
CSpell: Files checked: 7, Issues found: 28 in 5 files

Eslint issues:

/builds/project/countup_formatter/web/modules/custom/countup_formatter/js/countup.js
   1:2   warning  Unexpected unnamed function                                                                                                                                                                                                func-names
   1:50  error    Delete `·`                                                                                                                                                                                                                 prettier/prettier
   2:3   error    'use strict' is unnecessary inside of modules                                                                                                                                                                              strict
   9:40  error    Delete `⏎`                                                                                                                                                                                                                 prettier/prettier
  23:22  error    Replace `'DOMContentLoaded·load·resize·scroll',·debounce(this.checkVisibility.bind(this),·50)` with `⏎··········'DOMContentLoaded·load·resize·scroll',⏎··········debounce(this.checkVisibility.bind(this),·50),⏎········`  prettier/prettier
  28:7   error    Split 'var' declarations into multiple statements                                                                                                                                                                          one-var
  28:7   error    Unexpected var, use let or const instead                                                                                                                                                                                   no-var
  29:23  error    Unexpected string concatenation                                                                                                                                                                                            prefer-template
  31:22  warning  Unexpected unnamed function                                                                                                                                                                                                func-names
  31:30  error    Insert `·`                                                                                                                                                                                                                 prettier/prettier
  32:9   error    Unexpected var, use let or const instead                                                                                                                                                                                   no-var
  34:13  error    Insert `⏎··········`                                                                                                                                                                                                       prettier/prettier
  38:25  error    Insert `⏎···········`                                                                                                                                                                                                      prettier/prettier
  39:24  error    Insert `⏎···········`                                                                                                                                                                                                      prettier/prettier
  50:8   warning  Missing JSDoc parameter type for 'element'                                                                                                                                                                                 valid-jsdoc
  50:8   warning  Missing JSDoc parameter description for 'element'                                                                                                                                                                          valid-jsdoc
  52:5   warning  Unexpected unnamed method 'countup'                                                                                                                                                                                        func-names
  52:5   error    Expected method shorthand                                                                                                                                                                                                  object-shorthand
  52:22  error    Insert `·`                                                                                                                                                                                                                 prettier/prettier
  57:7   error    Split 'var' declarations into multiple statements                                                                                                                                                                          one-var
  57:7   error    All 'var' declarations must be at the top of the function scope                                                                                                                                                            vars-on-top
  57:7   error    Unexpected var, use let or const instead                                                                                                                                                                                   no-var
  58:8   error    Replace `options·=·$.extend({·start:·0,·duration:·2.5,·decimalPlaces:·0},·$element.data()` with `·options·=·$.extend(⏎··········{·start:·0,·duration:·2.5,·decimalPlaces:·0·},⏎··········$element.data(),⏎········`        prettier/prettier
  60:34  error    Replace `"undefined"` with `'undefined'`                                                                                                                                                                                   prettier/prettier
  64:10  error    Delete `⏎·······`                                                                                                                                                                                                          prettier/prettier
  72:7   error    All 'var' declarations must be at the top of the function scope                                                                                                                                                            vars-on-top
  72:7   error    Unexpected var, use let or const instead                                                                                                                                                                                   no-var
  75:8   error    Delete `⏎·····`                                                                                                                                                                                                            prettier/prettier
  79:6   error    Replace `⏎` with `,`                                                                                                                                                                                                       prettier/prettier
  81:5   error    Delete `⏎`                                                                                                                                                                                                                 prettier/prettier
✖ 30 problems (25 errors, 5 warnings)
  23 errors and 0 warnings potentially fixable with the `--fix` option.
📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇺🇦Ukraine _shy Ukraine, Lutsk 🇺🇦

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024