Skip to content

Commit cf16071

Browse files
committed
Fix spellings
1 parent d50b20f commit cf16071

36 files changed

+79
-138
lines changed

.cspell.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,39 @@
1919
],
2020
// words - list of words to be always considered correct
2121
"words": [
22+
"addtogroup",
2223
"autoloader",
2324
"codesniffer",
25+
"ColourDefinitionSniff",
26+
"CURLOPT_SSL_VERIFYPEER",
27+
"datestamp",
28+
"defgroup",
29+
"drush",
30+
"endcode",
31+
"endlink",
32+
"heredocs",
33+
"Kernighan",
2434
"Komodo",
35+
"multibyte",
2536
"Netbeans",
2637
"phpcbf",
38+
"Ritchie",
2739
"ruleset",
40+
"sirbrillig",
2841
"squizlabs",
29-
"Squiz"
42+
"Squiz",
43+
"startOfLine",
44+
"Superglobal",
45+
"T_ASPERAND",
46+
"T_COLOUR",
47+
"T_CONSTANT_ENCAPSED_STRING",
48+
"T_DNUMBER",
49+
"T_LNUMBER",
50+
"T_NULLSAFE_OBJECT_OPERATOR",
51+
"tableselect",
52+
"ungreedy",
53+
"unserialized",
54+
"webform"
3055
],
3156
// flagWords - list of words to be always considered incorrect
3257
// This is useful for offensive words and common spelling errors.

coder_sniffer/Drupal/Docs/Functions/FunctionCallArgumentSpacingStandard.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

coder_sniffer/Drupal/Docs/Functions/FunctionCallSignatureStandard.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

coder_sniffer/Drupal/Docs/Functions/ValidDefaultValueStandard.xml

Lines changed: 0 additions & 25 deletions
This file was deleted.

coder_sniffer/Drupal/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public function process(File $phpcsFile, $stackPtr)
9898
&& in_array($tokens[($i - 1)]['code'], [T_WHITESPACE, T_COMMA]) === false
9999
) {
100100
$error = 'Selectors must be on a single line';
101+
// cspell:ignore SeletorSingleLine
101102
$fix = $phpcsFile->addFixableError($error, $i, 'SeletorSingleLine');
102103
if ($fix === true) {
103104
$phpcsFile->fixer->replaceToken($i, str_replace($phpcsFile->eolChar, ' ', $tokens[$i]['content']));

coder_sniffer/Drupal/Sniffs/CSS/ColourDefinitionSniff.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/**
1616
* \Drupal\Sniffs\CSS\ColourDefinitionSniff.
1717
*
18-
* Ensure colours are defined in lower-case.
18+
* Ensure colors are defined in lower-case.
1919
*
2020
* @category PHP
2121
* @package PHP_CodeSniffer
@@ -56,14 +56,14 @@ public function register()
5656
public function process(File $phpcsFile, $stackPtr)
5757
{
5858
$tokens = $phpcsFile->getTokens();
59-
$colour = $tokens[$stackPtr]['content'];
59+
$color = $tokens[$stackPtr]['content'];
6060

61-
$expected = strtolower($colour);
62-
if ($colour !== $expected) {
63-
$error = 'CSS colours must be defined in lowercase; expected %s but found %s';
61+
$expected = strtolower($color);
62+
if ($color !== $expected) {
63+
$error = 'CSS colors must be defined in lowercase; expected %s but found %s';
6464
$data = [
6565
$expected,
66-
$colour,
66+
$color,
6767
];
6868
$fix = $phpcsFile->addFixableError($error, $stackPtr, 'NotLower', $data);
6969
if ($fix === true) {

coder_sniffer/Drupal/Sniffs/Classes/ClassDeclarationSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ public function process(File $phpcsFile, $stackPtr)
8282
}
8383

8484
$previous = $phpcsFile->findPrevious(T_WHITESPACE, ($openingBrace - 1), null, true);
85-
$decalrationLine = $tokens[$previous]['line'];
85+
$declarationLine = $tokens[$previous]['line'];
8686
$braceLine = $tokens[$openingBrace]['line'];
8787

88-
$lineDifference = ($braceLine - $decalrationLine);
88+
$lineDifference = ($braceLine - $declarationLine);
8989

9090
if ($lineDifference > 0) {
9191
$error = 'Opening brace should be on the same line as the declaration';

coder_sniffer/Drupal/Sniffs/Classes/PropertyDeclarationSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use PHP_CodeSniffer\Util\Tokens;
1515

1616
/**
17-
* Laregely copied from
17+
* Largely copied from
1818
* \PHP_CodeSniffer\Standards\PSR2\Sniffs\Classes\PropertyDeclarationSniff to have a fixer
1919
* for the var keyword.
2020
*

coder_sniffer/Drupal/Sniffs/Commenting/ClassCommentSniff.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
*
2020
* @category PHP
2121
* @package PHP_CodeSniffer
22-
* @author Greg Sherwood <[email protected]>
23-
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
24-
* @license https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt BSD Licence
25-
* @version Release: @package_version@
2622
* @link http://pear.php.net/package/PHP_CodeSniffer
2723
*/
2824
class ClassCommentSniff implements Sniff

coder_sniffer/Drupal/Sniffs/Commenting/DeprecatedSniff.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ public function process(File $phpcsFile, $stackPtr)
124124
// automatic fixes for Drupal core, and if the project is missing we are
125125
// assuming it is Drupal core. Deprecations for contrib projects are much
126126
// less frequent and faults can be corrected manually.
127+
// cspell:ignore xdev
127128
preg_match('/^(.*)(as of|in) (drupal|)( |:|)+([\d\.\-xdev\?]+)(,| |. |)(.*)(removed|removal)([ |from|before|in|the]*) (drupal|)( |:|)([\d\-\.xdev]+)( |,|$)+(?:release|)(?:[\.,])*(.*)$/i', $text1, $matchesFix);
128129

129130
if (count($matchesFix) >= 12) {

0 commit comments

Comments
 (0)