File tree Expand file tree Collapse file tree
main/java/org/sonar/plugins/python
test/java/org/sonar/plugins/python Expand file tree Collapse file tree Original file line number Diff line number Diff line change 114114 <dependency >
115115 <groupId >org.codehaus.sonar.sslr-squid-bridge</groupId >
116116 <artifactId >sslr-squid-bridge</artifactId >
117- <version >2.5.3 </version >
117+ <version >2.6 </version >
118118 </dependency >
119119 <dependency >
120120 <groupId >junit</groupId >
136136 <artifactId >logback-classic</artifactId >
137137 <version >0.9.15</version >
138138 </dependency >
139- <dependency >
140- <groupId >org.codehaus.sonar.common-rules</groupId >
141- <artifactId >sonar-common-rules</artifactId >
142- <version >1.2</version >
143- </dependency >
144139 <dependency >
145140 <groupId >org.slf4j</groupId >
146141 <artifactId >slf4j-api</artifactId >
Original file line number Diff line number Diff line change 5050 <version >${project.version} </version >
5151 </dependency >
5252
53- <dependency >
54- <groupId >org.codehaus.sonar.common-rules</groupId >
55- <artifactId >sonar-common-rules</artifactId >
56- </dependency >
57-
5853 <dependency >
5954 <groupId >org.codehaus.sonar.sslr</groupId >
6055 <artifactId >sslr-testing-harness</artifactId >
Original file line number Diff line number Diff line change 1919 */
2020package org .sonar .plugins .python ;
2121
22- import org .sonar .commonrules .api .CommonRulesEngine ;
23- import org .sonar .commonrules .api .CommonRulesRepository ;
22+ import org .sonar .squidbridge . commonrules .api .CommonRulesEngine ;
23+ import org .sonar .squidbridge . commonrules .api .CommonRulesRepository ;
2424
2525public class PythonCommonRulesEngine extends CommonRulesEngine {
2626
Original file line number Diff line number Diff line change 2020package org .sonar .plugins .python ;
2121
2222import org .junit .Test ;
23- import org .sonar .commonrules .api .CommonRulesRepository ;
23+ import org .sonar .squidbridge . commonrules .api .CommonRulesRepository ;
2424
2525import static org .fest .assertions .Assertions .assertThat ;
2626
@@ -36,8 +36,8 @@ public void shouldProvideExpectedExtensions() {
3636 public void enable_common_rules () {
3737 PythonCommonRulesEngine engine = new PythonCommonRulesEngine ();
3838 CommonRulesRepository repo = engine .newRepository ();
39- assertThat (repo .rules ()).hasSize (4 );
40- assertThat (repo .rule ( CommonRulesRepository . RULE_INSUFFICIENT_COMMENT_DENSITY )).isNotNull ();
39+ assertThat (repo .enabledRuleKeys ()).hasSize (4 );
40+ assertThat (repo .enableInsufficientCommentDensityRule ( null )).isNotNull ();
4141 }
4242
4343}
Original file line number Diff line number Diff line change 105105 <configuration >
106106 <rules >
107107 <requireFilesSize >
108- <maxsize >3100000 </maxsize >
108+ <maxsize >3200000 </maxsize >
109109 <minsize >1400000</minsize >
110110 <files >
111111 <file >${project.build.directory} /${project.build.finalName} .jar</file >
You can’t perform that action at this time.
0 commit comments