embedded-php/sensors

View on GitHub
ruleset.xml.dist

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="flavioheleno">
  <description>An opinionated PHP-CS-Fixer Ruleset v0.1</description>
  <arg name="tab-width" value="2" />
  <arg name="extensions" value="php" />
  <arg name="colors" />
  <arg value="sp" />
  <rule ref="Generic.Arrays.ArrayIndent">
    <properties>
      <property name="indent" value="2" />
    </properties>
  </rule>
  <rule ref="Generic.Arrays.DisallowLongArraySyntax" />
  <rule ref="Generic.Classes.DuplicateClassName" />
  <rule ref="Generic.Classes.OpeningBraceSameLine" />
  <rule ref="Generic.CodeAnalysis.AssignmentInCondition" />
  <rule ref="Generic.CodeAnalysis.EmptyPHPStatement" />
  <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.Fixme" />
  <rule ref="Generic.Commenting.Todo" />
  <rule ref="Generic.ControlStructures.DisallowYodaConditions" />
  <rule ref="Generic.ControlStructures.InlineControlStructure" />
  <rule ref="Generic.Files.ByteOrderMark" />
  <rule ref="Generic.Files.EndFileNewline" />
  <rule ref="Generic.Files.ExecutableFile" />
  <rule ref="Generic.Files.InlineHTML" />
  <rule ref="Generic.Files.LineEndings">
    <properties>
      <property name="eolChar" value="\n" />
    </properties>
  </rule>
  <rule ref="Generic.Files.LineLength">
    <properties>
      <property name="lineLimit" value="120" />
      <property name="absoluteLineLimit" value="0" />
    </properties>
  </rule>
  <rule ref="Generic.Files.OneClassPerFile" />
  <rule ref="Generic.Files.OneInterfacePerFile" />
  <rule ref="Generic.Files.OneTraitPerFile" />
  <rule ref="Generic.Formatting.DisallowMultipleStatements" />
  <rule ref="Generic.Formatting.MultipleStatementAlignment" />
  <rule ref="Generic.Formatting.MultipleStatementAlignment.NotSameWarning">
    <severity>0</severity>
  </rule>
  <rule ref="Generic.Formatting.NoSpaceAfterCast" />
  <rule ref="Generic.Formatting.SpaceAfterNot" />
  <rule ref="Generic.Functions.CallTimePassByReference" />
  <rule ref="Generic.Functions.FunctionCallArgumentSpacing" />
  <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
  <rule ref="Generic.NamingConventions.CamelCapsFunctionName" />
  <rule ref="Generic.NamingConventions.ConstructorName" />
  <rule ref="Generic.NamingConventions.UpperCaseConstantName" />
  <rule ref="Generic.PHP.BacktickOperator" />
  <rule ref="Generic.PHP.CharacterBeforePHPOpeningTag" />
  <rule ref="Generic.PHP.DeprecatedFunctions" />
  <rule ref="Generic.PHP.DisallowAlternativePHPTags" />
  <rule ref="Generic.PHP.DisallowRequestSuperglobal" />
  <rule ref="Generic.PHP.DiscourageGoto" />
  <rule ref="Generic.PHP.ForbiddenFunctions">
    <properties>
      <property name="forbiddenFunctions" type="array" extend="true">
        <element key="create_function" value="null" />
        <element key="delete" value="unset" />
        <element key="print" value="echo" />
        <element key="sizeof" value="count" />
      </property>
    </properties>
  </rule>
  <rule ref="Generic.PHP.LowerCaseConstant" />
  <rule ref="Generic.PHP.LowerCaseKeyword" />
  <rule ref="Generic.PHP.LowerCaseType" />
  <rule ref="Generic.PHP.NoSilencedErrors" />
  <rule ref="Generic.PHP.RequireStrictTypes" />
  <rule ref="Generic.PHP.SAPIUsage" />
  <rule ref="Generic.PHP.Syntax" />
  <rule ref="Generic.Strings.UnnecessaryStringConcat" />
  <rule ref="Generic.VersionControl.GitMergeConflict" />
  <rule ref="Generic.WhiteSpace.ArbitraryParenthesesSpacing" />
  <rule ref="Generic.WhiteSpace.DisallowTabIndent" />
  <rule ref="Generic.WhiteSpace.IncrementDecrementSpacing" />
  <rule ref="Generic.WhiteSpace.LanguageConstructSpacing" />
  <rule ref="Generic.WhiteSpace.ScopeIndent">
    <properties>
      <property name="indent" value="2" />
      <property name="ignoreIndentationTokens" type="array">
        <element value="T_COMMENT" />
        <element value="T_DOC_COMMENT_OPEN_TAG" />
      </property>
    </properties>
  </rule>
  <rule ref="Generic.WhiteSpace.SpreadOperatorSpacingAfter" />
  <rule ref="MySource.Channels.DisallowSelfActions" />
  <rule ref="MySource.PHP.EvalObjectFactory" />
  <rule ref="PEAR.ControlStructures.ControlSignature" />
  <rule ref="PEAR.ControlStructures.MultiLineCondition">
    <properties>
      <property name="indent" value="2" />
    </properties>
  </rule>
  <rule ref="PEAR.Files.IncludingFile" />
  <rule ref="PEAR.Formatting.MultiLineAssignment">
    <properties>
      <property name="indent" value="2" />
    </properties>
  </rule>
  <rule ref="PEAR.Functions.FunctionCallSignature">
    <properties>
      <property name="indent" value="2" />
    </properties>
  </rule>
  <rule ref="PEAR.Functions.ValidDefaultValue" />
  <rule ref="PEAR.WhiteSpace.ObjectOperatorIndent">
    <properties>
      <property name="indent" value="2" />
    </properties>
  </rule>
  <rule ref="PEAR.WhiteSpace.ScopeClosingBrace">
    <properties>
      <property name="indent" value="2" />
    </properties>
  </rule>
  <rule ref="PSR1.Classes.ClassDeclaration" />
  <rule ref="PSR1.Files.SideEffects" />
  <rule ref="PSR1.Methods.CamelCapsMethodName" />
  <rule ref="PSR12.Classes.AnonClassDeclaration" />
  <rule ref="PSR12.Classes.ClassInstantiation" />
  <rule ref="PSR12.Classes.ClosingBrace" />
  <rule ref="PSR12.Functions.NullableTypeDeclaration" />
  <rule ref="PSR12.Functions.ReturnTypeDeclaration" />
  <rule ref="PSR12.Keywords.ShortFormTypeKeywords" />
  <rule ref="PSR12.Namespaces.CompoundNamespaceDepth" />
  <rule ref="PSR12.Operators.OperatorSpacing" />
  <rule ref="PSR12.Properties.ConstantVisibility" />
  <rule ref="PSR12.Traits.UseDeclaration" />
  <rule ref="PSR2.Classes.ClassDeclaration">
    <properties>
      <property name="indent" value="2" />
    </properties>
  </rule>
  <rule ref="PSR2.Classes.ClassDeclaration.OpenBraceNewLine">
    <severity>0</severity>
  </rule>
  <rule ref="PSR2.Classes.PropertyDeclaration" />
  <rule ref="PSR2.ControlStructures.SwitchDeclaration">
    <properties>
      <property name="indent" value="2" />
    </properties>
  </rule>
  <rule ref="PSR2.Files.ClosingTag" />
  <rule ref="Squiz.Arrays.ArrayBracketSpacing" />
  <rule ref="Squiz.Classes.ClassFileName" />
  <rule ref="Squiz.Classes.LowercaseClassKeywords" />
  <rule ref="Squiz.Classes.SelfMemberReference" />
  <rule ref="Squiz.Classes.ValidClassName" />
  <rule ref="Squiz.ControlStructures.ControlSignature" />
  <rule ref="Squiz.ControlStructures.ElseIfDeclaration" />
  <rule ref="Squiz.ControlStructures.ForEachLoopDeclaration" />
  <rule ref="Squiz.ControlStructures.ForLoopDeclaration" />
  <rule ref="Squiz.ControlStructures.LowercaseDeclaration" />
  <rule ref="Squiz.Functions.FunctionDuplicateArgument" />
  <rule ref="Squiz.Functions.GlobalFunction" />
  <rule ref="Squiz.NamingConventions.ValidVariableName" />
  <rule ref="Squiz.NamingConventions.ValidVariableName.PrivateNoUnderscore">
    <severity>0</severity>
  </rule>
  <rule ref="Squiz.PHP.DisallowBooleanStatement" />
  <rule ref="Squiz.PHP.DisallowSizeFunctionsInLoops" />
  <rule ref="Squiz.PHP.DiscouragedFunctions" />
  <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.Strings.DoubleQuoteUsage" />
  <rule ref="Squiz.Strings.EchoedStrings" />
  <rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace" />
  <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing" />
  <rule ref="Squiz.WhiteSpace.ScopeClosingBrace" />
  <rule ref="Squiz.WhiteSpace.ScopeKeywordSpacing" />
  <rule ref="Squiz.WhiteSpace.SemicolonSpacing" />
  <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" />
  <rule ref="Zend.Files.ClosingTag" />
</ruleset>