Skip to content

Commit

Permalink
Remove NamespaceDeclaration sniff in favour of similar from PHPCSExtra
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Nov 3, 2023
1 parent 06485bf commit 20014bd
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 243 deletions.
65 changes: 0 additions & 65 deletions Yoast/Docs/Namespaces/NamespaceDeclarationStandard.xml

This file was deleted.

110 changes: 0 additions & 110 deletions Yoast/Sniffs/Namespaces/NamespaceDeclarationSniff.php

This file was deleted.

8 changes: 0 additions & 8 deletions Yoast/Tests/Namespaces/NamespaceDeclarationUnitTest.1.inc

This file was deleted.

11 changes: 0 additions & 11 deletions Yoast/Tests/Namespaces/NamespaceDeclarationUnitTest.2.inc

This file was deleted.

49 changes: 0 additions & 49 deletions Yoast/Tests/Namespaces/NamespaceDeclarationUnitTest.php

This file was deleted.

9 changes: 9 additions & 0 deletions Yoast/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,15 @@
<!-- Demand that "else(if)" is on a new line after the scope closer of the preceding if. -->
<rule ref="Universal.ControlStructures.IfElseDeclaration"/>

<!-- Disallow namespace declarations without a namespace name. -->
<rule ref="Universal.Namespaces.DisallowDeclarationWithoutName"/>

<!-- Disallow namespace declarations using the curly brace syntax. -->
<rule ref="Universal.Namespaces.DisallowCurlyBraceSyntax"/>

<!-- Disallow declaring multiple namespaces within one file. -->
<rule ref="Universal.Namespaces.OneDeclarationPerFile"/>

<!-- Error prevention: Make sure the condition in a inline if declaration is bracketed. -->
<rule ref="Squiz.ControlStructures.InlineIfDeclaration"/>

Expand Down

0 comments on commit 20014bd

Please sign in to comment.