Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

5 changes: 5 additions & 0 deletions coder_sniffer/Drupal/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@
<!-- Already covered by Drupal.Classes.PropertyDeclaration.VarUsed. -->
<exclude name="PSR2.Classes.PropertyDeclaration.VarUsed"/>
</rule>
<rule ref="PSR2.ControlStructures.SwitchDeclaration">
<!-- Disable some error messages that we do not want. -->
<exclude name="PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineCASE"/>
<exclude name="PSR2.ControlStructures.SwitchDeclaration.BreakIndent"/>
</rule>
<rule ref="PSR2.Methods.MethodDeclaration"/>
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/>
<rule ref="PSR2.Namespaces.UseDeclaration"/>
Expand Down
48 changes: 0 additions & 48 deletions tests/Drupal/ControlStructures/CaseSemicolonUnitTest.php

This file was deleted.

6 changes: 6 additions & 0 deletions tests/Drupal/bad/BadUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,12 @@ protected function getErrorList(string $testFile): array
872 => 1,
876 => 2,
];
case 'CaseSemicolonUnitTest.inc':
return [
1 => 1,
13 => 1,
17 => 1,
];
case 'ClassCreateInstanceUnitTest.inc':
return [
3 => 1,
Expand Down