Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
d2b221cf
Commit
d2b221cf
authored
9 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Upgrade PHPCS rules
parent
e72f4cb0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dev/codesniffer/ruleset.xml
+66
-82
66 additions, 82 deletions
dev/codesniffer/ruleset.xml
with
66 additions
and
82 deletions
dev/codesniffer/ruleset.xml
+
66
−
82
View file @
d2b221cf
...
...
@@ -12,10 +12,16 @@
<!-- List of all tests -->
<!-- Rules from Internal Standard -->
<rule
ref=
"Internal.NoCodeFound"
>
<severity>
0
</severity>
</rule>
<!-- Rules from Generic Standard -->
<rule
ref=
"Generic.CodeAnalysis.EmptyStatement"
/>
<rule
ref=
"Generic.CodeAnalysis.EmptyStatement.DetectedCATCH"
>
...
...
@@ -41,9 +47,6 @@
<severity>
0
</severity>
</rule>
<!-- The closing ?> tag MUST be omitted from files containing only PHP. -->
<!-- <rule ref="Zend.Files.ClosingTag"/> -->
<!-- <rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop" /> -->
<rule
ref=
"Generic.CodeAnalysis.ForLoopWithTestFunctionCall"
/>
...
...
@@ -161,8 +164,6 @@
<severity>
0
</severity>
</rule>
<rule
ref=
"Generic.VersionControl.SubversionProperties"
/>
<!-- Disallow usage of tab -->
<!-- <rule ref="Generic.WhiteSpace.DisallowTabIndent" /> -->
...
...
@@ -170,123 +171,92 @@
<!-- Disabled as this does not support tab -->
<!-- <rule ref="Generic.WhiteSpace.ScopeIndent" /> -->
<rule
ref=
"PEAR.Classes.ClassDeclaration"
/>
<!-- Rules from PEAR Standard -->
<rule
ref=
"PEAR.Classes.ClassDeclaration"
/>
<!-- Check for duplicate class names -->
<!-- <rule ref="Generic.Classes.DuplicateClassName" /> -->
<rule
ref=
"PEAR.Commenting.ClassComment"
/>
<rule
ref=
"PEAR.Commenting.ClassComment.MissingTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@authorTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@categoryTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@licenseTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@linkTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@packageTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.SpacingAfterParamType"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.SpacingAfterParamName"
>
<severity>
0
</severity>
</rule>
<!-- TODO Remove this and fix reported errors -->
<rule
ref=
"PEAR.Commenting.ClassComment.Missing"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.MissingReturn"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.ReturnNotRequired"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.Missing"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@authorTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@categoryTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@licenseTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@linkTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.Missing@packageTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.MissingTag"
/>
<rule
ref=
"PEAR.Commenting.ClassComment.MissingAuthorTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.MissingCategoryTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.MissingLicenseTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.MissingLinkTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.ClassComment.MissingPackageTag"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.SpacingAfterParamType"
>
<!--
<rule ref="PEAR.Commenting.FileComment" />
<rule ref="PEAR.Commenting.FileComment.WrongStyle">
<severity>0</severity>
</rule>
<rule
ref=
"PEAR.Commenting.F
unction
Comment.
SpacingAfterParamName
"
>
<rule ref="PEAR.Commenting.F
ile
Comment.
MissingVersion
">
<severity>0</severity>
</rule>
<!-- TODO Remove this and fix reported errors -->
<rule
ref=
"PEAR.Commenting.ClassComment.Missing"
>
<rule ref="PEAR.Commenting.FileComment.MissingTag">
<severity>0</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.MissingReturn"
>
<severity>
0
</severity>
-->
<rule
ref=
"PEAR.Commenting.FunctionComment"
/>
<rule
ref=
"PEAR.Commenting.FunctionComment.Empty"
>
<severity>
5
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.ReturnNotRequired"
>
<rule
ref=
"PEAR.Commenting.FunctionComment.MissingReturn"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.Missing"
>
<severity>
0
</severity>
</rule>
<
!--
<rule ref="PEAR.Commenting.FileComment" />
<rule ref="PEAR.Commenting.F
ile
Comment.
WrongStyl
e">
<
rule
ref=
"PEAR.Commenting.FunctionComment.SpacingAfterParamType"
/>
<rule
ref=
"PEAR.Commenting.F
unction
Comment.
SpacingAfterParamNam
e"
>
<severity>
0
</severity>
</rule>
<rule ref="PEAR.Commenting.FileComment.MissingVersion">
<rule
ref=
"PEAR.Commenting.FunctionComment.SpacingAfterParamType"
>
<severity>
0
</severity>
</rule>
<rule ref="PEAR.Commenting.FileComment.MissingTag">
<rule
ref=
"PEAR.Commenting.FunctionComment.SpacingAfterParamName"
/>
<rule
ref=
"PEAR.Commenting.FunctionComment.ReturnNotRequired"
>
<severity>
0
</severity>
</rule>
-->
<rule
ref=
"PEAR.Commenting.FunctionComment.WrongStyle"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment.Empty"
>
<severity>
5
</severity>
</rule>
<rule
ref=
"PEAR.Commenting.FunctionComment"
/>
<rule
ref=
"PEAR.Commenting.FunctionComment.SpacingBeforeParamType"
>
<severity>
0
</severity>
</rule>
...
...
@@ -319,6 +289,15 @@
<rule
ref=
"PEAR.Functions.FunctionCallSignature"
/>
<rule
ref=
"PEAR.Functions.FunctionCallSignature.CloseBracketLine"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Functions.FunctionCallSignature.EmptyLine"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Functions.FunctionCallSignature.Indent"
>
<severity>
0
</severity>
</rule>
...
...
@@ -334,12 +313,6 @@
<rule
ref=
"PEAR.Functions.FunctionCallSignature.SpaceAfterCloseBracket"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Functions.FunctionCallSignature.CloseBracketLine"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.Functions.ValidDefaultValue"
/>
...
...
@@ -371,15 +344,20 @@
<rule
ref=
"PEAR.NamingConventions.ValidFunctionName.FunctionNoCaptial"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.NamingConventions.ValidFunctionName.NotCamelCaps"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.NamingConventions.ValidFunctionName.PrivateNoUnderscore"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.NamingConventions.ValidVariableName"
/>
<!-- This is not in PSR2 -->
<rule
ref=
"PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore"
>
<severity>
0
</severity>
</rule>
<rule
ref=
"PEAR.WhiteSpace.ObjectOperatorIndent"
/>
<!-- Need to be commented to be disabled
...
...
@@ -395,4 +373,10 @@
<!-- Already found as a Generic rule -->
<!-- <rule ref="PEAR.WhiteSpace.ScopeIndent" /> -->
<!-- Rules from Zend Standard-->
<!-- The closing ?> tag MUST be omitted from files containing only PHP. -->
<rule
ref=
"Zend.Files.ClosingTag"
/>
</ruleset>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment