-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from bearsunday/update-ci-setting
Update QA
- Loading branch information
Showing
12 changed files
with
106 additions
and
130 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
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
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
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 |
---|---|---|
@@ -1,38 +1,23 @@ | ||
<ruleset | ||
name="PHPMD rule sets" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns="http://pmd.sf.net/ruleset/1.0.0" | ||
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd" | ||
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd"> | ||
<!--codesize--> | ||
<rule ref="rulesets/codesize.xml/CyclomaticComplexity"> | ||
<properties> | ||
<property name="reportLevel" description="The Cyclomatic Complexity reporting threshold" value="10"/> | ||
</properties> | ||
</rule> | ||
<rule ref="rulesets/codesize.xml/NPathComplexity" /> | ||
<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity"/> | ||
<rule ref="rulesets/codesize.xml/ExcessiveClassLength"/> | ||
<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/TooManyMethods"/> | ||
<description>PHPMD rule sets</description> | ||
|
||
<!-- clean code --> | ||
<rule ref="rulesets/cleancode.xml" externalInfoUrl="https://phpmd.org/rules/cleancode.html"/> | ||
<!-- codesize --> | ||
<rule ref="rulesets/codesize.xml" externalInfoUrl="https://phpmd.org/rules/codesize.html"/> | ||
<!--controversial --> | ||
<rule ref="rulesets/controversial.xml" externalInfoUrl="https://phpmd.org/rules/controversial.html"/> | ||
<!--design--> | ||
<rule ref="rulesets/design.xml/NumberOfChildren"/> | ||
<rule ref="rulesets/design.xml/DepthOfInheritance"/> | ||
<rule ref="rulesets/design.xml/CouplingBetweenObjects" /> | ||
<rule ref="rulesets/design.xml/CountInLoopExpression" /> | ||
<rule ref="rulesets/design.xml" externalInfoUrl="https://phpmd.org/rules/design.html"/> | ||
<!--naming--> | ||
<rule ref="rulesets/naming.xml/ConstantNamingConventions"/> | ||
<rule ref="rulesets/naming.xml/BooleanGetMethodName"/> | ||
<rule ref="rulesets/naming.xml" externalInfoUrl="https://phpmd.org/rules/naming.html"> | ||
<exclude name="ShortVariable"/> | ||
</rule> | ||
<!--unusedcode--> | ||
<rule ref="rulesets/unusedcode.xml/UnusedFormalParameter"/> | ||
<rule ref="rulesets/unusedcode.xml/UnusedLocalVariable"/> | ||
<rule ref="rulesets/unusedcode.xml/UnusedPrivateField"/> | ||
<rule ref="rulesets/unusedcode.xml/UnusedPrivateMethod"/> | ||
<!--cleancode--> | ||
<rule ref="rulesets/cleancode.xml/BooleanArgumentFlag"/> | ||
<rule ref="rulesets/cleancode.xml/ElseExpression" /> | ||
<rule ref="rulesets/cleancode.xml/IfStatementAssignment" /> | ||
<rule ref="rulesets/cleancode.xml/DuplicatedArrayKey" /> | ||
<rule ref="rulesets/unusedcode.xml" externalInfoUrl="https://phpmd.org/rules/unusedcode.html"/> | ||
</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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
parameters: | ||
level: max | ||
level: 6 | ||
paths: | ||
- src | ||
- tests |
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
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
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
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
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
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 |
---|---|---|
@@ -1,11 +1,14 @@ | ||
{ | ||
"name": "bear/qatools", | ||
"description": "QA tools", | ||
"require": { | ||
"doctrine/coding-standard": "^9.0", | ||
"phpmd/phpmd": "^2.9", | ||
"phpmd/phpmd": "^2.10", | ||
"phpmetrics/phpmetrics": "^2.7", | ||
"phpstan/phpstan": "^0.12", | ||
"psalm/plugin-phpunit": "^0.15", | ||
"squizlabs/php_codesniffer": "^3.5", | ||
"slevomat/coding-standard": "^7.0", | ||
"squizlabs/php_codesniffer": "^3.6", | ||
"vimeo/psalm": "^4.7" | ||
} | ||
} |
Oops, something went wrong.