Continuous integration/PHP CodeSniffer/initial run
From MediaWiki.org
first run, using https://gerrit.wikimedia.org/r/45131 ps1
Using something like:
phpcsmw -v -s --report-summary includes/
I have only kept the per Sniff report:
PHP CODE SNIFFER VIOLATION SOURCE SUMMARY -------------------------------------------------------------------------------- SOURCE COUNT -------------------------------------------------------------------------------- Generic.Formatting.MultipleStatementAlignment.NotSameWarning 7447 PSR2.Classes.PropertyDeclaration.ScopeMissing 751 PSR2.Classes.PropertyDeclaration.VarUsed 696 Generic.CodeAnalysis.UnusedFunctionParameter.Found 590 Generic.Formatting.SpaceAfterCast.NoSpace 356 Generic.Classes.DuplicateClassName.Found 345 Generic.Strings.UnnecessaryStringConcat.Found 341 Generic.WhiteSpace.DisallowSpaceIndent.TabsUsed 307 PSR2.Classes.PropertyDeclaration.Multiple 243 Generic.Functions.OpeningFunctionBraceKernighanRitchie.SpaceAfterBracket 168 Generic.Functions.FunctionCallArgumentSpacing.TooMuchSpaceAfterComma 101 Generic.Functions.FunctionCallArgumentSpacing.SpaceBeforeComma 92 Squiz.Classes.ValidClassName.NotCamelCaps 89 Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine 86 Generic.CodeAnalysis.UselessOverridingMethod.Found 83 PSR2.Methods.MethodDeclaration.Underscore 65 Generic.CodeAnalysis.EmptyStatement.NotAllowedWarning 61 Generic.Formatting.MultipleStatementAlignment.IncorrectWarning 59 Generic.Formatting.NoSpaceAfterCast.SpaceFound 58 Generic.Formatting.DisallowMultipleStatements.SameLine 56 Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma 47 Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed 41 PSR2.Methods.MethodDeclaration.AbstractAfterVisibility 38 Generic.CodeAnalysis.EmptyStatement.NotAllowed 33 PSR2.Files.EndFileNewline.TooMany 31 Generic.PHP.ForbiddenFunctions.FoundWithAlternative 29 PSR2.Classes.PropertyDeclaration.Underscore 18 PSR2.Methods.MethodDeclaration.FinalAfterVisibility 17 Pear.Functions.ValidDefaultValue.NotAtEnd 13 Generic.PHP.LowerCaseConstant.Found 12 Generic.PHP.NoSilencedErrors.Discouraged 11 PSR2.Methods.MethodDeclaration.StaticBeforeVisibility 9 PSR2.Files.EndFileNewline.NoneFound 6 MediaWiki.NamingConventions.ValidGlobalName.wgPrefix 5 Generic.NamingConventions.UpperCaseConstantName.ConstantNotUpperCase 4 Generic.NamingConventions.ConstructorName.OldStyle 3 Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase 2 Generic.CodeAnalysis.JumbledIncrementer.Found 1 Generic.NamingConventions.ConstructorName.OldStyleCall 1 Generic.Functions.CallTimePassByReference.NotAllowed 1 -------------------------------------------------------------------------------- A TOTAL OF 12316 SNIFF VIOLATION(S) WERE FOUND IN 40 SOURCE(S) -------------------------------------------------------------------------------- Time: 09:08, Memory: 322.25Mb