|
5 | 5 |
|
6 | 6 | <description>PharApp Coding Standard</description>
|
7 | 7 |
|
8 |
| - <!-- Default Standard is PSR2 --> |
9 |
| - <rule ref="PSR2"/> |
| 8 | + <!-- Rule Sets --> |
| 9 | + <!-- Default Standard is PSR12 --> |
| 10 | + <rule ref="PSR12"/> |
10 | 11 |
|
11 |
| - <!-- Include the PEAR Commenting Standard to ensure code is commented --> |
12 |
| - <rule ref="PEAR.Commenting"> |
13 |
| - <exclude name="PEAR.Commenting.FileComment.MissingVersion" /> |
14 |
| - <exclude name="PEAR.Commenting.ClassComment.InvalidAuthors"/> |
15 |
| - <exclude name="PEAR.Commenting.ClassComment.IncompleteLicense"/> |
16 |
| - <exclude name="PEAR.Commenting.ClassComment.MissingCategoryTag"/> |
17 |
| - <exclude name="PEAR.Commenting.ClassComment.MissingLinkTag"/> |
| 12 | + <rule ref="Squiz.Commenting.FunctionComment" /> |
| 13 | + <rule ref="Squiz.Commenting.FunctionCommentThrowTag" /> |
| 14 | + <rule ref="Squiz.Commenting.ClassComment"> |
| 15 | + <exclude name="Squiz.Commenting.ClassComment.TagNotAllowed" /> |
18 | 16 | </rule>
|
| 17 | + <rule ref="Squiz.Commenting.FileComment"> |
| 18 | + <exclude name="Squiz.Commenting.FileComment.IncorrectAuthor" /> |
| 19 | + <exclude name="Squiz.Commenting.FileComment.IncorrectCopyright" /> |
| 20 | + </rule> |
| 21 | + <!--<rule ref="Squiz.Commenting.VariableComment" /> --> |
| 22 | + |
| 23 | + <!-- Rules to exclude --> |
| 24 | + |
| 25 | + <!-- Rules to exclude from Specific files |
| 26 | + <rule ref="Generic.Files.LineLength"> |
| 27 | +
|
| 28 | + </rule>--> |
| 29 | + <rule ref="PSR1.Files.SideEffects"> |
| 30 | + <!-- Exclude from unit tests as autoloader needs to be included --> |
| 31 | + <exclude-pattern>*/tests/*</exclude-pattern> |
| 32 | + </rule> |
| 33 | + |
| 34 | + <!-- Directorys to exclude as they only contain tempory files --> |
| 35 | + <exclude-pattern>*/vendor/*</exclude-pattern> |
19 | 36 | </ruleset>
|
0 commit comments