|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <ruleset name="FreshRSS Ruleset"> |
3 | 3 | <description>Created with the PHP Coding Standard Generator. https://edorian.github.com/php-coding-standard-generator/</description> |
| 4 | + <arg name="extensions" value="php,phtml,css,js"/> |
4 | 5 | <arg name="tab-width" value="4"/> |
5 | 6 | <exclude-pattern>./lib/SimplePie/</exclude-pattern> |
6 | 7 | <exclude-pattern>./lib/PHPMailer/</exclude-pattern> |
|
10 | 11 | <exclude-pattern>./data/config.php</exclude-pattern> |
11 | 12 | <exclude-pattern>./data/users/*/config.php</exclude-pattern> |
12 | 13 | <exclude-pattern>./extensions/</exclude-pattern> |
| 14 | + <exclude-pattern>*.min.js$</exclude-pattern> |
13 | 15 | <!-- Duplicate class names are not allowed --> |
14 | 16 | <rule ref="Generic.Classes.DuplicateClassName"/> |
15 | 17 | <!-- Statements must not be empty --> |
|
25 | 27 | <!-- For language strings maximum line lengths make little sense. --> |
26 | 28 | <exclude-pattern>./app/i18n/</exclude-pattern> |
27 | 29 | <!-- Don't enforce line length on the HTML; the point is to improve legibility, not reduce it --> |
28 | | - <exclude-pattern>*.phtml</exclude-pattern> |
| 30 | + <exclude-pattern>*.phtml$</exclude-pattern> |
29 | 31 | <properties> |
30 | 32 | <property name="lineLimit" value="165"/> |
31 | 33 | <property name="absoluteLineLimit" value="190"/> |
|
88 | 90 | <!-- Do not add spaces when casting --> |
89 | 91 | <rule ref="Squiz.WhiteSpace.CastSpacing"/> |
90 | 92 | <!-- Operators must have a space around them --> |
91 | | - <rule ref="Squiz.WhiteSpace.OperatorSpacing"/> |
| 93 | + <rule ref="Squiz.WhiteSpace.OperatorSpacing"> |
| 94 | + <properties> |
| 95 | + <property name="ignoreNewlines" value="true" /> |
| 96 | + </properties> |
| 97 | + </rule> |
92 | 98 | <!-- Do not add a whitespace before a semicolon --> |
93 | 99 | <rule ref="Squiz.WhiteSpace.SemicolonSpacing"/> |
94 | 100 | <!-- Do not add whitespace at start or end of a file or end of a line --> |
95 | 101 | <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/> |
96 | 102 | <!-- Expected space after closing parenthesis --> |
97 | 103 | <rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis"> |
98 | | - <exclude-pattern>.phtml</exclude-pattern> |
| 104 | + <exclude-pattern>.phtml$</exclude-pattern> |
99 | 105 | </rule> |
100 | 106 | <!-- Newline required after opening brace --> |
101 | 107 | <rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace"> |
102 | | - <exclude-pattern>.phtml</exclude-pattern> |
| 108 | + <exclude-pattern>.phtml$</exclude-pattern> |
| 109 | + <exclude-pattern>.js$</exclude-pattern> |
103 | 110 | </rule> |
104 | 111 | <!-- No PHP code was found in this file --> |
105 | 112 | <rule ref="Internal.NoCodeFound"> |
106 | | - <exclude-pattern>.css</exclude-pattern> |
107 | | - <exclude-pattern>.phtml</exclude-pattern> |
| 113 | + <exclude-pattern>.phtml$</exclude-pattern> |
108 | 114 | </rule> |
109 | 115 | </ruleset> |
0 commit comments