Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
begarco committed Dec 18, 2018
1 parent 71c6e2c commit 1909b61
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 70 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>fr.cnes.sonar.plugins.python</groupId>
<artifactId>sonar-cnes-python-plugin</artifactId>
<packaging>sonar-plugin</packaging>
<version>1.1</version>
<version>1.2</version>

<name>SonarQube CNES Python Plugin</name>
<description>CNES plugin for SonarQube that provides further rules to check to Pylint using Pylint CNES Checker Plugin.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,63 +16,6 @@
along with cnespython. If not, see <http://www.gnu.org/licenses/>.
-->
<rules>
<rule>
<key>C0411</key>
<name><![CDATA[Wrong import order]]></name>
<configKey>C0411</configKey>
<description>
<![CDATA[Wrong import order.
<p>%s comes before %s Used when PEP8 import order is not respected
(standard imports first, then third-party libraries, then local imports).</p>]]>
</description>
<priority>CRITICAL</priority>
</rule>
<rule>
<key>C0413</key>
<name><![CDATA[Wrong import position]]></name>
<configKey>C0413</configKey>
<description>
<![CDATA[Wrong import position.
<p>Import “%s” should be placed at the top of the module.
Used when code and imports are mixed.</p>]]>
</description>
<priority>CRITICAL</priority>
</rule>
<rule>
<key>C0113</key>
<name><![CDATA[Unneeded not]]></name>
<configKey>C0113</configKey>
<description>
<![CDATA[Unneeded not.
<p>Consider changing “%s” to “%s”.
Used when a boolean expression contains an unneeded negation.</p>]]>
</description>
<priority>CRITICAL</priority>
</rule>
<rule>
<key>C0122</key>
<name><![CDATA[Misplaced constant in comparison]]></name>
<configKey>C0122</configKey>
<description>
<![CDATA[Misplaced constant in comparison.
<p>Comparison should be %s.
Used when the constant is placed on the left side
of a comparison. It is usually clearer in intent
to place it in the right hand side of the comparison.</p>]]>
</description>
<priority>CRITICAL</priority>
</rule>
<rule>
<key>R0203</key>
<name><![CDATA[No static method decorator]]></name>
<configKey>R0203</configKey>
<description>
<![CDATA[No static method decorator.
<p>Consider using a decorator instead of calling static method.
Used when a static method is defined without using the decorator syntax.</p>]]>
</description>
<priority>CRITICAL</priority>
</rule>
<rule>
<key>R0204</key>
<name><![CDATA[Redefinition of the type of a variable]]></name>
Expand All @@ -85,15 +28,4 @@
</description>
<priority>CRITICAL</priority>
</rule>
<rule>
<key>C0412</key>
<name><![CDATA[Ungrouped imports]]></name>
<configKey>C0412</configKey>
<description>
<![CDATA[Redefinition of the type of a variable.
<p>Imports from package %s are not grouped.
Used when imports are not grouped by packages.</p>]]>
</description>
<priority>CRITICAL</priority>
</rule>
</rules>
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class CnesPythonRulesDefinitionTest {
/**
* Rules' number expected to be added by the plugin
*/
private static final int PLUGIN_RULES_NUMBER = 22;
private static final int PLUGIN_RULES_NUMBER = 16;
/**
* RulesDefinition for testing
*/
Expand Down

0 comments on commit 1909b61

Please sign in to comment.