org.sonar.plugins.php.profile.drupal-profile.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sonar-php-plugin Show documentation
Show all versions of sonar-php-plugin Show documentation
Enables analysis of PHP projects.
<?xml version="1.0" encoding="UTF-8"?> <rules> <rule> <repositoryKey>php</repositoryKey> <key>S1808</key> <!-- formatting rule --> <parameters> <parameter> <key>closing_curly_brace</key> <value>false</value> </parameter> <parameter> <key>closure_format</key> <value>false</value> </parameter> <parameter> <key>extends_implements_line</key> <value>false</value> </parameter> <parameter> <key>foreach_space</key> <value>true</value> </parameter> <parameter> <key>function_calls_arguments_indentation</key> <value>false</value> </parameter> <parameter> <key>function_declaration_arguments_indentation</key> <value>false</value> </parameter> <parameter> <key>interfaces_indentation</key> <value>false</value> </parameter> <parameter> <key>namespace_blank_line</key> <value>false</value> </parameter> <parameter> <key>no_space</key> <value>true</value> </parameter> <parameter> <key>no_space_method_name</key> <value>true</value> </parameter> <parameter> <key>one_space_after</key> <value>true</value> </parameter> <parameter> <key>one_space_before</key> <value>true</value> </parameter> <parameter> <key>one_space_for</key> <value>false</value> </parameter> <parameter> <key>open_curly_brace_classes_functions</key> <value>false</value> </parameter> <parameter> <key>open_curly_brace_control_structures</key> <value>false</value> </parameter> <parameter> <key>space_comma</key> <value>true</value> </parameter> <parameter> <key>use_after_namespace</key> <value>false</value> </parameter> <parameter> <key>use_blank_line</key> <value>false</value> </parameter> </parameters> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S101</key> <!-- class name --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S103</key> <!-- line length; Drupal has a soft limit of 80 chars --> <parameters> <parameter> <key>maximumLineLength</key> <value>140</value> </parameter> </parameters> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S105</key> <!-- tabulation character --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S113</key> <!-- new line at EOF --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S115</key> <!-- constant name --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S116</key> <!-- field name --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S117</key> <!-- local variable and function parameter name --> <parameters> <parameter> <key>format</key> <value><![CDATA[^[a-z0-9_]*$]]></value> </parameter> </parameters> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S121</key> <!-- always use curly braces --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1105</key> <!-- An open curly brace should be located at the end of a line --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1109</key> <!-- A close curly brace should be located at the beginning of a line --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1131</key> <!-- trailing whitespaces --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1757</key> <!-- opening PHP tag --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1765</key> <!-- var keyword usage --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1779</key> <!-- non LF character as EOL --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1780</key> <!-- closing tag in full PHP file --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1784</key> <!-- method visibility presence --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1788</key> <!-- Method arguments with default value should be last --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S1793</key> <!-- "else if" usage instead of "elseif" --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S2003</key> <!-- "require_once" and "include_once" should be used instead of "require" and "include" --> </rule> <rule> <repositoryKey>php</repositoryKey> <key>S4833</key> <!-- "use of namespaces should be preferred to "include" or "require" functions" --> </rule> </rules>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy