coding_standard.xml 923 B

1234567891011121314151617181920212223
  1. <?xml version="1.0"?>
  2. <ruleset name="MathPHP">
  3. <description>The coding standard for Math PHP.</description>
  4. <config name="php_version" value="70000"/>
  5. <rule ref="PSR12">
  6. <!-- MathPHP supports PHP 7.0 which does not have constant visibility declarations yet -->
  7. <exclude name="PSR12.Properties.ConstantVisibility.NotFound"/>
  8. <!-- Math functions may start with Greek letters which wont be CamelCase -->
  9. <exclude name="PSR1.Methods.CamelCapsMethodName.NotCamelCaps"/>
  10. <exclude name="Generic.NamingConventions.UpperCaseConstantName.ClassConstantNotUpperCase"/>
  11. <!-- Sometimes it is nice to write math operations like this: 3/2 -->
  12. <exclude name="PSR12.Operators.OperatorSpacing.NoSpaceBefore"/>
  13. <exclude name="PSR12.Operators.OperatorSpacing.NoSpaceAfter"/>
  14. <!-- Welcome to the future where we have HD wide-screen monitors -->
  15. <exclude name="Generic.Files.LineLength.TooLong"/>
  16. </rule>
  17. </ruleset>