forked from PHPCompatibility/PHPCompatibility
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruleset.xml
23 lines (20 loc) · 1.36 KB
/
ruleset.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0"?>
<ruleset name="PHPCompatibility">
<description>Coding Standard that checks for PHP version compatibility.</description>
<!-- This rule covers checking for non-magic methods using __ prefix. -->
<!-- Covers part 2 of issue 64: https://github.com/wimg/PHPCompatibility/issues/64 -->
<rule ref="Generic.NamingConventions.CamelCapsFunctionName">
<exclude name="Generic.NamingConventions.CamelCapsFunctionName.NotCamelCaps" />
<exclude name="Generic.NamingConventions.CamelCapsFunctionName.ScopeNotCamelCaps" />
</rule>
<rule ref="Generic.NamingConventions.CamelCapsFunctionName.MethodDoubleUnderscore">
<type>warning</type>
<!-- Original message: Method name "%s" is invalid; only PHP magic methods should be prefixed with a double underscore -->
<message>Method name "%s" is discouraged; PHP has reserved all method names with a double underscore prefix for future use</message>
</rule>
<rule ref="Generic.NamingConventions.CamelCapsFunctionName.FunctionDoubleUnderscore">
<type>warning</type>
<!-- Original message: Function name "%s" is invalid; only PHP magic methods should be prefixed with a double underscore -->
<message>Function name "%s" is discouraged; PHP has reserved all method names with a double underscore prefix for future use</message>
</rule>
</ruleset>