Skip to content
Snippets Groups Projects
Commit cb0d1519 authored by Jonathan Smith's avatar Jonathan Smith Committed by Fran Garcia-Linares
Browse files

Issue #3494834 by jonathan1055, fjgarlin, tr, drunken monkey: Add common words...

Issue #3494834 by jonathan1055, fjgarlin, tr, drunken monkey: Add common words not in core dictionaries
parent 075e6096
Branches
Tags
1 merge request!313#3494834 Add more internal dictionaries
Pipeline #394457 passed
......@@ -4,11 +4,6 @@
"globRoot": ".",
"minWordLength": 4,
"dictionaries": [
"companies",
"fonts",
"html",
"php",
"softwareTerms",
"allowed-words"
],
"ignorePaths": [
......
......@@ -110,12 +110,20 @@ $cspell_json['words'] = array_values(array_filter(array_unique(array_merge(
$cspell_json['words'] ?? [],
array_filter(explode(',', $words ?? '')),
$module_name_parts,
// Add lando and ddev which appear in the original version of phpcs.xml.dist
// See https://www.drupal.org/project/gitlab_templates/issues/3427357#comment-15487034
// Add lando and ddev to cater for references to local docker integrations.
['lando', 'ddev'],
// Add some common words that were dropped from core dictionary in Drupal 11.1
// Add some common words that were dropped from core dictionaries.
// See https://www.drupal.org/project/gitlab_templates/issues/3494834
['endapply', 'nightwatchjs', 'testgroups'],
['endapply', 'nightwatchjs', 'testgroup', 'testgroups', 'backlinks', 'mdhash', 'uploaders', 'vocabs'],
// Add Curl options and constants dropped from core dictionaries.
['curlopt', 'returntransfer', 'curle', 'customrequest', 'failonerror', 'postfields', 'followlocation'],
// Add six phpcs sniff names/error codes that cannot be corrected.
// This can be removed if/when the core issue is resolved.
// See https://www.drupal.org/project/drupal/issues/3418190
[
'colourdefinitionsniff', 'seletorsingleline', 'teamplatespacingaftercomment', 'tforvalue', 'trhowscommentindentation',
'unecessaryfiledeclaration',
],
))));
$quiet ?: print '$cspell_json[\'words\']=' . print_r($cspell_json['words'], TRUE) . PHP_EOL;
......@@ -213,6 +221,8 @@ $built_in_dictionaries = [
'filetypes',
'npm',
'lorem-ipsum',
'sql',
'fullstack',
];
$cspell_json['dictionaries'] = array_values(array_unique(array_merge(
$cspell_json['dictionaries'] ?? [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment