Skip to content

Commit aa5ad5e

Browse files
stronk7jrchamp
andcommitted
Exclude the PSR1.Classes.ClassDeclaration.MissingNamespace error
Moodle doesn't mandate (or support) namespaces for all classes, so this PSR1, included by PSR12, included by moodle-extra, needs to be excluded. Soon we'll have proper/custom namespace sniffs. Fixes #65 Co-authored-by: Jonathan Champ <[email protected]>
1 parent f6290f6 commit aa5ad5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

moodle-extra/ruleset.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
<!-- Moodle already defines its own line length, so remove this from the PSR-12 standard -->
2424
<exclude name="Generic.Files.LineLength.TooLong"/>
2525

26+
<!-- Moodle doesn't mandate (nor support) namespaces everywhere, so remove this for now -->
27+
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" />
28+
2629
<!-- Moodle has its own custom sniff for side effects -->
2730
<exclude name="PSR1.Files.SideEffects.FoundWithSymbols"/>
2831

0 commit comments

Comments
 (0)