All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.plugins.php.profile.psr2-profile.xml Maven / Gradle / Ivy

There is a newer version: 3.39.0.12526
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<rules>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1808</key>  <!-- formatting rule -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1757</key>  <!-- opening PHP tag -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S101</key>  <!-- class name -->
    <parameters>
      <parameter>
        <key>format</key>
        <value><![CDATA[^[A-Z][a-zA-Z]*$]]></value>
      </parameter>
    </parameters>
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S115</key>  <!-- constant name -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S100</key>  <!-- function name -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S105</key>  <!-- tabulation character -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S103</key>  <!-- line length -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1784</key>  <!-- method visibility presence -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1124</key>  <!-- property modifier order -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1779</key>  <!-- non LF character as EOL -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S113</key>  <!-- new line at EOF -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1780</key> <!-- closing tag in full PHP file-->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1131</key>  <!-- trailing whitespaces -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S122</key> <!-- one statement per line -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1781</key>  <!-- keywords and constants in lower case -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1765</key>  <!-- var keyword usage -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1766</key>  <!-- one property declaration per statement -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1793</key>  <!-- "else if" usage instead of "elseif" -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S128</key>  <!-- no "break" in non empty case -->
  </rule>
  <rule>
    <repositoryKey>php</repositoryKey>
    <key>S1788</key>  <!-- Method arguments with default value should be last -->
    <priority>CRITICAL</priority>
  </rule>
</rules>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy