Skip to content

Commit 446bce3

Browse files
committed
remove scanning CSS/JS with phpcs (deprecated and support will be removed in PHP_CodeSniffer 4.0)
1 parent 2faf20a commit 446bce3

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
### Fixed
1313
- fix tests following Drupal changes on date time medium format
1414

15+
### Changed
16+
- remove scanning CSS/JS with phpcs (deprecated and support will be removed in PHP_CodeSniffer 4.0)
17+
1518
## [6.0.2] - 2024-08-09
1619
### Added
1720
- add phpstan.neon file

phpcs.xml.dist

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,26 @@
66
<arg name="basepath" value="."/>
77
<arg name="cache" value=".phpcs-cache"/>
88
<arg name="colors"/>
9-
<arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt"/>
9+
<arg name="extensions" value="php,inc,module,install,info,test,profile,theme"/>
1010

1111
<exclude-pattern>*\.(md|info\.yml)$</exclude-pattern>>
1212
<exclude-pattern>*/vendor/*</exclude-pattern>>
1313

14-
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal"/>
14+
<rule ref="./vendor/drupal/coder/coder_sniffer/Drupal">
15+
<!-- Disable scanning CSS files will be removed completely in v4.0.0 -->
16+
<exclude name="MySource.Debug.DebugCode"/>
17+
<exclude name="Squiz.CSS.ClassDefinitionClosingBraceSpace"/>
18+
<exclude name="Squiz.CSS.ClassDefinitionClosingBraceSpace.SpacingAfterClose"/>
19+
<exclude name="Squiz.CSS.ClassDefinitionOpeningBraceSpace"/>
20+
<exclude name="Squiz.CSS.ClassDefinitionOpeningBraceSpace.AfterNesting"/>
21+
<exclude name="Squiz.CSS.ColonSpacing"/>
22+
<exclude name="Squiz.CSS.DisallowMultipleStyleDefinitions"/>
23+
<exclude name="Squiz.CSS.EmptyClassDefinition"/>
24+
<exclude name="Squiz.CSS.EmptyStyleDefinition"/>
25+
<exclude name="Squiz.CSS.Indentation"/>
26+
<exclude name="Squiz.CSS.MissingColon"/>
27+
<exclude name="Squiz.CSS.SemicolonSpacing"/>
28+
<exclude name="Squiz.WhiteSpace.LanguageConstructSpacing"/>
29+
</rule>
1530
<rule ref="./vendor/drupal/coder/coder_sniffer/DrupalPractice"/>
1631
</ruleset>
17-

0 commit comments

Comments
 (0)