Last active
October 23, 2020 14:11
-
-
Save azibom/4f37207c421d3f18410179d03ded80f2 to your computer and use it in GitHub Desktop.
That is my custom phpcs.xml file
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
<?xml version="1.0" encoding="UTF-8"?> | |
<ruleset name="Azibom Phpcs"> | |
<description> | |
I am Azibom and that is my custom phpcs.xml file | |
</description> | |
<file>./src</file> | |
<rule ref="Generic.Classes.DuplicateClassName"/> | |
<rule ref="Generic.CodeAnalysis.EmptyStatement"/> | |
<rule ref="Generic.CodeAnalysis.ForLoopShouldBeWhileLoop"/> | |
<rule ref="Generic.CodeAnalysis.ForLoopWithTestFunctionCall"/> | |
<rule ref="Generic.CodeAnalysis.JumbledIncrementer"/> | |
<rule ref="Generic.CodeAnalysis.UnconditionalIfStatement"/> | |
<rule ref="Generic.CodeAnalysis.UnnecessaryFinalModifier"/> | |
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/> | |
<rule ref="Generic.CodeAnalysis.UselessOverridingMethod"/> | |
<rule ref="Generic.Commenting.Todo"/> | |
<rule ref="Generic.Commenting.Fixme"/> | |
<rule ref="Generic.ControlStructures.InlineControlStructure"/> | |
<rule ref="Generic.Debug.ClosureLinter"/> | |
<rule ref="Generic.Debug.JSHint"/> | |
<rule ref="Generic.Debug.CSSLint"/> | |
<rule ref="Generic.Files.ByteOrderMark"/> | |
<rule ref="Generic.Files.LineEndings"/> | |
<rule ref="Generic.Files.LineLength"/> | |
<rule ref="Generic.Formatting.DisallowMultipleStatements"/> | |
<rule ref="Generic.Formatting.MultipleStatementAlignment"/> | |
<rule ref="Generic.Formatting.SpaceAfterCast"/> | |
<rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"/> | |
<rule ref="Generic.Metrics.CyclomaticComplexity"/> | |
<rule ref="Generic.Metrics.NestingLevel"/> | |
<rule ref="Generic.NamingConventions.ConstructorName"/> | |
<rule ref="Generic.NamingConventions.UpperCaseConstantName"/> | |
<rule ref="Generic.NamingConventions.CamelCapsFunctionName"/> | |
<rule ref="Generic.PHP.DeprecatedFunctions"/> | |
<rule ref="Generic.PHP.DisallowShortOpenTag"/> | |
<rule ref="Generic.PHP.ForbiddenFunctions"/> | |
<rule ref="Generic.PHP.LowerCaseConstant"/> | |
<rule ref="Generic.PHP.NoSilencedErrors"/> | |
<rule ref="Generic.Strings.UnnecessaryStringConcat"/> | |
<rule ref="Generic.VersionControl.SubversionProperties"/> | |
<rule ref="Generic.WhiteSpace.ScopeIndent"/> | |
<rule ref="MySource.PHP.EvalObjectFactory"/> | |
<rule ref="MySource.PHP.GetRequestData"/> | |
<!-- <rule ref="MySource.PHP.ReturnFunctionValue"/> --> | |
<rule ref="PEAR.Classes.ClassDeclaration"/> | |
<!-- <rule ref="PEAR.Commenting.ClassComment"/> --> | |
<!-- <rule ref="PEAR.Commenting.FileComment"/> --> | |
<rule ref="PEAR.Commenting.FunctionComment"/> | |
<rule ref="PEAR.Commenting.InlineComment"/> | |
<rule ref="PEAR.ControlStructures.ControlSignature"/> | |
<rule ref="PEAR.ControlStructures.MultiLineCondition"/> | |
<rule ref="PEAR.Files.IncludingFile"/> | |
<rule ref="PEAR.Formatting.MultiLineAssignment"/> | |
<rule ref="PEAR.Functions.FunctionCallSignature"/> | |
<rule ref="PEAR.Functions.ValidDefaultValue"/> | |
<rule ref="PEAR.NamingConventions.ValidClassName"/> | |
<rule ref="PEAR.WhiteSpace.ObjectOperatorIndent"/> | |
<rule ref="PEAR.WhiteSpace.ScopeClosingBrace"/> | |
<rule ref="PEAR.WhiteSpace.ScopeIndent"/> | |
<rule ref="PSR1.Classes.ClassDeclaration"/> | |
<rule ref="PSR1.Files.SideEffects"/> | |
<rule ref="PSR2.Classes.ClassDeclaration"/> | |
<rule ref="PSR2.Classes.PropertyDeclaration"/> | |
<rule ref="PSR2.ControlStructures.ControlStructureSpacing"/> | |
<rule ref="PSR2.ControlStructures.ElseIfDeclaration"/> | |
<rule ref="PSR2.ControlStructures.SwitchDeclaration"/> | |
<rule ref="PSR2.Files.EndFileNewline"/> | |
<rule ref="PSR2.Methods.MethodDeclaration"/> | |
<rule ref="PSR2.Namespaces.NamespaceDeclaration"/> | |
<rule ref="PSR2.Namespaces.UseDeclaration"/> | |
<rule ref="Squiz.PHP.CommentedOutCode"/> | |
<rule ref="Squiz.PHP.DisallowComparisonAssignment"/> | |
<rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops"/> | |
<rule ref="Squiz.PHP.DiscouragedFunctions"/> | |
<rule ref="Squiz.PHP.EmbeddedPhp"/> | |
<rule ref="Squiz.PHP.Eval"/> | |
<rule ref="Squiz.PHP.GlobalKeyword"/> | |
<rule ref="Squiz.PHP.Heredoc"/> | |
<rule ref="Squiz.PHP.InnerFunctions"/> | |
<rule ref="Squiz.PHP.LowercasePHPFunctions"/> | |
<rule ref="Squiz.PHP.NonExecutableCode"/> | |
<rule ref="Squiz.Scope.MemberVarScope"/> | |
<rule ref="Squiz.Scope.MethodScope"/> | |
<rule ref="Squiz.Scope.StaticThisUsage"/> | |
<rule ref="Squiz.WhiteSpace.ControlStructureSpacing"/> | |
<rule ref="Squiz.WhiteSpace.LanguageConstructSpacing"/> | |
<rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/> | |
<rule ref="Squiz.WhiteSpace.ObjectOperatorSpacing"/> | |
<rule ref="Squiz.WhiteSpace.OperatorSpacing"/> | |
<rule ref="Squiz.WhiteSpace.ScopeClosingBrace"/> | |
<rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing"/> | |
<rule ref="Squiz.WhiteSpace.SemicolonSpacing"/> | |
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace"/> | |
<rule ref="Zend.Debug.CodeAnalyzer"/> | |
<rule ref="Zend.Files.ClosingTag"/> | |
<rule ref="Zend.NamingConventions.ValidVariableName"/> | |
</ruleset> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment