Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Fetch phpmd and phpcs rulesets from develop branch
- Loading branch information
1 parent
8947e3d
commit 33eb43b
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="PSR2R"> | ||
<rule ref="PSR2"> | ||
<exclude name="PSR1.Classes.ClassDeclaration.MissingNamespace" /> | ||
</rule> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<ruleset name="LimeSurvey PHPMD Extension ruleset"> | ||
<rule ref="rulesets/unusedcode.xml" /> | ||
|
||
<!-- TODO: More customization might be necessary to make it usable. --> | ||
<rule ref="rulesets/codesize.xml/CyclomaticComplexity" /> | ||
<rule ref="rulesets/codesize.xml/NPathComplexity" /> | ||
<rule ref="rulesets/codesize.xml/ExcessiveMethodLength" /> | ||
<rule ref="rulesets/codesize.xml/ExcessiveParameterList" /> | ||
<rule ref="rulesets/codesize.xml/ExcessivePublicCount" /> | ||
<rule ref="rulesets/codesize.xml/TooManyFields" /> | ||
<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity" /> | ||
|
||
<rule ref="rulesets/codesize.xml/ExcessiveClassLength"> | ||
<properties> | ||
<!-- Set to 2000 --> | ||
<property name="minimum" description="The class size reporting threshold" value="2000"/> | ||
</properties> | ||
</rule> | ||
</ruleset> |