Fix issues reported by cspell

Created on 3 December 2024, 19 days ago

Problem/Motivation

With 📌 Integration with Gitlab CI Active in place, we can start checking for cspell. There is a report now for the issues we can fix.

config/schema/mask.schema.yml:56:5      - Unknown word (clearifnotmatch) -- clearifnotmatch:
	 Suggestions: []
config/schema/mask.schema.yml:59:5      - Unknown word (selectonfocus)   -- selectonfocus:
	 Suggestions: []
js/mask.js:29:53     - Unknown word (clearifnotmatch) -- element.attr('data-mask-clearifnotmatch') === 'true',
	 Suggestions: []
js/mask.js:30:51     - Unknown word (selectonfocus)   -- element.attr('data-mask-selectonfocus') === 'true',
	 Suggestions: []
README.md:23:9      - Unknown word (Escobar)    -- by Igor Escobar, but it is automatically
	 Suggestions: [Escolar, Eschar, Escolars, Seconal, Secular]
README.md:50:14     - Unknown word (Biscalchin) -- - [Daniel C. Biscalchin (dbiscalchin)](https
	 Suggestions: []
README.md:50:26     - Unknown word (dbiscalchin) -- Daniel C. Biscalchin (dbiscalchin)](https://www.drupal
	 Suggestions: []
README.md:51:8      - Unknown word (Diels)       -- - [Tim Diels (tim-diels)](https:
	 Suggestions: [Dies, Dials, Die's, Diets, Dills]
README.md:51:19     - Unknown word (diels)       -- - [Tim Diels (tim-diels)](https://www.drupal
	 Suggestions: [dies, dials, die's, diets, dills]
src/Form/SettingsForm.php:112:96    - Unknown word (writting)   -- will be available when writting masks. Default patterns
	 Suggestions: [writing, witting, writhing, fritting, gritting]
src/Helper/ElementHelper.php:19:8      - Unknown word (clearifnotmatch) -- 'clearifnotmatch' => FALSE,
	 Suggestions: []
src/Helper/ElementHelper.php:20:8      - Unknown word (selectonfocus)   -- 'selectonfocus' => FALSE,
	 Suggestions: []
src/Helper/ElementHelperInterface.php:23:11     - Unknown word (clearifnotmatch) -- * 'clearifnotmatch' => FALSE,
	 Suggestions: []
src/Helper/ElementHelperInterface.php:24:11     - Unknown word (selectonfocus)   -- * 'selectonfocus' => FALSE,
	 Suggestions: []
src/Plugin/FieldWidgetPlugin.php:103:15    - Unknown word (clearifnotmatch) -- $element['clearifnotmatch'] = [
	 Suggestions: []
src/Plugin/FieldWidgetPlugin.php:107:43    - Unknown word (clearifnotmatch) -- => $mask_settings['clearifnotmatch'],
	 Suggestions: []
src/Plugin/FieldWidgetPlugin.php:109:15    - Unknown word (selectonfocus)   -- $element['selectonfocus'] = [
	 Suggestions: []
src/Plugin/FieldWidgetPlugin.php:113:43    - Unknown word (selectonfocus)   -- => $mask_settings['selectonfocus'],
	 Suggestions: []
src/Plugin/FieldWidgetPlugin.php:130:32    - Unknown word (clearifnotmatch) -- value = $mask_settings['clearifnotmatch'] ? $this->t('Yes')
	 Suggestions: []
src/Plugin/FieldWidgetPlugin.php:133:32    - Unknown word (selectonfocus)   -- value = $mask_settings['selectonfocus'] ? $this->t('Yes')
	 Suggestions: []
src/Plugin/FieldWidgetPluginManager.php:26:8      - Unknown word (clearifnotmatch) -- 'clearifnotmatch' => FALSE,
	 Suggestions: []
src/Plugin/FieldWidgetPluginManager.php:27:8      - Unknown word (selectonfocus)   -- 'selectonfocus' => FALSE,
	 Suggestions: []
tests/src/Unit/ElementHelperTest.php:28:10     - Unknown word (clearifnotmatch) -- 'clearifnotmatch' => FALSE,
	 Suggestions: []
tests/src/Unit/ElementHelperTest.php:29:10     - Unknown word (selectonfocus)   -- 'selectonfocus' => FALSE,
	 Suggestions: []
tests/src/Unit/FieldWidgetPluginTest.php:35:31     - Unknown word (clearifnotmatch) -- >assertArrayHasKey('clearifnotmatch', $element);
	 Suggestions: []
tests/src/Unit/FieldWidgetPluginTest.php:36:31     - Unknown word (selectonfocus)   -- >assertArrayHasKey('selectonfocus', $element);
	 Suggestions: []
tests/src/Unit/FieldWidgetPluginTest.php:52:10     - Unknown word (clearifnotmatch) -- 'clearifnotmatch' => TRUE,
	 Suggestions: []
tests/src/Unit/FieldWidgetPluginTest.php:62:10     - Unknown word (clearifnotmatch) -- 'clearifnotmatch' => TRUE,
	 Suggestions: []
tests/src/Unit/FieldWidgetPluginTest.php:102:10    - Unknown word (clearifnotmatch) -- 'clearifnotmatch' => FALSE,
	 Suggestions: []
tests/src/Unit/FieldWidgetPluginTest.php:103:10    - Unknown word (selectonfocus)   -- 'selectonfocus' => FALSE,
	 Suggestions: []
CSpell: Files checked: 26, Issues found: 30 in 10 files.                                  

Steps to reproduce

See https://git.drupalcode.org/project/mask/-/jobs/3576797

Proposed resolution

-

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

-

📌 Task
Status

Active

Version

2.1

Component

Code

Created by

🇧🇪Belgium tim-diels Belgium 🇧🇪

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