Skip to content

Commit f2d483c

Browse files
authored
Merge pull request #70 from stronk7/remove_missing_namespace_controversial
Exclude the PSR1.Classes.ClassDeclaration.MissingNamespace error
2 parents f6290f6 + aa5ad5e commit f2d483c

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)