|
1 | 1 | <?xml version="1.0"?> |
2 | | -<ruleset name="php-qrcode-cs" |
| 2 | +<ruleset name="chillerlan-cs" |
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | 4 | xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd"> |
5 | | - <description>php-qrcode rules for phpcs</description> |
| 5 | + <description>chillerlan rules for phpcs</description> |
6 | 6 |
|
7 | | - <!--<file>examples</file>--> |
| 7 | + <file>examples</file> |
8 | 8 | <file>src</file> |
9 | 9 | <file>tests</file> |
10 | 10 |
|
|
108 | 108 |
|
109 | 109 | <rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable"> |
110 | 110 | <exclude-pattern>examples</exclude-pattern> |
111 | | - <exclude-pattern>src/Storage/SessionStorage.php</exclude-pattern> |
112 | | - <exclude-pattern>tests/Storage/SessionStorageTest.php</exclude-pattern> |
113 | 111 | </rule> |
114 | 112 |
|
115 | | - <rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat"> |
| 113 | + <rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat"> |
116 | 114 | <properties> |
117 | | - <property name="withSpaces" value="no"/> |
118 | 115 | <property name="shortNullable" value="no"/> |
119 | 116 | <property name="nullPosition" value="last"/> |
120 | 117 | </properties> |
|
147 | 144 | <rule ref="Generic.ControlStructures.InlineControlStructure"/> |
148 | 145 | <rule ref="Generic.Formatting.DisallowMultipleStatements"/> |
149 | 146 | <!--<rule ref="Generic.Formatting.MultipleStatementAlignment"/>--> |
150 | | - <rule ref="Generic.Formatting.NoSpaceAfterCast"/> |
151 | | - <rule ref="Generic.Functions.CallTimePassByReference"/> |
152 | | - <!--<rule ref="Generic.NamingConventions.InterfaceNameSuffix"/>--> |
| 147 | + <rule ref="Generic.NamingConventions.InterfaceNameSuffix"/> |
153 | 148 | <rule ref="Generic.NamingConventions.TraitNameSuffix"/> |
154 | 149 | <rule ref="Generic.PHP.BacktickOperator"/> |
155 | 150 | <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag"/> |
|
183 | 178 |
|
184 | 179 |
|
185 | 180 | <rule ref="Squiz.Arrays.ArrayBracketSpacing"/> |
186 | | - <rule ref="Squiz.Classes.DuplicateProperty"/> |
187 | 181 | <rule ref="Squiz.Classes.LowercaseClassKeywords"/> |
188 | 182 | <rule ref="Squiz.Classes.SelfMemberReference"/> |
189 | 183 | <rule ref="Squiz.Commenting.DocCommentAlignment"/> |
|
241 | 235 | <exclude-pattern>examples</exclude-pattern> |
242 | 236 | </rule> |
243 | 237 |
|
| 238 | + <rule ref="Generic.Formatting.SpaceAfterCast"> |
| 239 | + <properties> |
| 240 | + <property name="spacing" value="0"/> |
| 241 | + </properties> |
| 242 | + </rule> |
| 243 | + |
244 | 244 | <rule ref="Generic.Formatting.SpaceAfterNot"> |
245 | 245 | <properties> |
246 | 246 | <property name="spacing" value="0" /> |
|
0 commit comments