Skip to content

Commit 0b3f216

Browse files
authored
refactor(Namespace): Remove sniff already covered by Generic.WhiteSpace.LanguageConstructSpacing (#3556857)
1 parent ddd57bf commit 0b3f216

File tree

6 files changed

+6
-107
lines changed

6 files changed

+6
-107
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ jobs:
9898
sed -i 's/DrupalPractice.CodeAnalysis.VariableAnalysis/VariableAnalysis.CodeAnalysis.VariableAnalysis/g' phpcs.xml.dist
9999
find .. -type f -name "*.php" -exec sed -i 's#// phpcs:ignore DrupalPractice.CodeAnalysis.VariableAnalysis#// phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis#g' {} +
100100
sed -i 's/Drupal.Methods.MethodDeclaration/PSR2.Methods.MethodDeclaration/g' phpcs.xml.dist
101+
sed -i '/<rule ref="Drupal.WhiteSpace.Namespace"\/>/d' phpcs.xml.dist
101102
../../vendor/bin/phpcs -p -s --parallel=$(nproc) --ignore=lib/Drupal/Core/Command/GenerateTheme.php,modules/mysql/tests/src/Kernel/mysql/Console/DbDumpCommandTest.php,modules/big_pipe/tests/modules/big_pipe_test/src/BigPipePlaceholderTestCases.php,tests/fixtures/plugins/CustomPlugin.php,modules/package_manager/tests/modules/package_manager_test_api/src/ApiController.php

coder_sniffer/Drupal/Sniffs/WhiteSpace/NamespaceSniff.php

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

tests/Drupal/WhiteSpace/NamespaceUnitTest.php

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

tests/Drupal/bad/BadUnitTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@ protected function getErrorList(string $testFile): array
383383
16 => 1,
384384
31 => 1,
385385
];
386+
case 'NamespaceUnitTest.inc':
387+
return [
388+
1 => 1,
389+
3 => 1,
390+
];
386391
case 'UnusedUseStatementUnitTest.inc':
387392
return [
388393
5 => 1,

0 commit comments

Comments
 (0)