Skip to content

Commit 6f0505a

Browse files
author
Nic Wortel
committed
Merged in force-imports (pull request #9)
Force importing classes, functions and constants Approved-by: Viktor Slokker <[email protected]>
2 parents a02c7d0 + c36346f commit 6f0505a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/LEVIY/ruleset.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@
4040

4141
<!-- Add our own rules -->
4242

43+
<!-- Enforce importing of all classes, functions and constants from other namespaces
44+
(including the global namespace) -->
45+
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly" >
46+
<properties>
47+
<property name="searchAnnotations" value="true"/>
48+
<property name="allowFallbackGlobalFunctions" value="false"/>
49+
<property name="allowFallbackGlobalConstants" value="false"/>
50+
</properties>
51+
</rule>
52+
4353
<!-- Sort use statements and report unused ones -->
4454
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
4555
<properties>

0 commit comments

Comments
 (0)