File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
python-checks-testkit/src/main/java/org/sonar/python/checks/utils
main/java/org/sonar/plugins/python
test/java/org/sonar/plugins/python Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 84
84
<!-- versions -->
85
85
<commons .io.version>2.8.0</commons .io.version>
86
86
<commons .lang.version>2.6</commons .lang.version>
87
- <assertj-core .version>3.6.1 </assertj-core .version>
88
- <junit .version>4.13.1 </junit .version>
89
- <logback .version>1.1.7 </logback .version>
87
+ <assertj-core .version>3.19.0 </assertj-core .version>
88
+ <junit .version>4.13.2 </junit .version>
89
+ <logback .version>1.2.3 </logback .version>
90
90
<maven .project.version>2.2.1</maven .project.version>
91
- <mockito .version>2.21 .0</mockito .version>
91
+ <mockito .version>3.9 .0</mockito .version>
92
92
<sonar .version>7.9</sonar .version>
93
- <sonar .orchestrator.version>3.35.0.2707 </sonar .orchestrator.version>
94
- <sonar-analyzer-commons .version>1.11.0.541 </sonar-analyzer-commons .version>
93
+ <sonar .orchestrator.version>3.35.1.2719 </sonar .orchestrator.version>
94
+ <sonar-analyzer-commons .version>1.14.1.690 </sonar-analyzer-commons .version>
95
95
<sonarlint-core .version>4.4.0.2561</sonarlint-core .version>
96
96
<sslr .version>1.23</sslr .version>
97
97
</properties >
Original file line number Diff line number Diff line change 20
20
package org .sonar .python .checks .utils ;
21
21
22
22
import com .google .common .base .Preconditions ;
23
- import com .sonarsource .checks .verifier .MultiFileVerifier ;
24
23
import java .io .File ;
25
24
import java .nio .file .Path ;
26
25
import java .util .Collections ;
38
37
import org .sonar .python .TestPythonVisitorRunner ;
39
38
import org .sonar .python .semantic .ProjectLevelSymbolTable ;
40
39
import org .sonar .python .tree .TreeUtils ;
40
+ import org .sonarsource .analyzer .commons .checks .verifier .MultiFileVerifier ;
41
41
42
42
import static java .nio .charset .StandardCharsets .UTF_8 ;
43
43
import static org .sonar .python .semantic .SymbolUtils .pythonPackageName ;
Original file line number Diff line number Diff line change @@ -52,8 +52,9 @@ public void define(Context context) {
52
52
repository .done ();
53
53
}
54
54
55
- private static List <Class > getCheckClasses () {
55
+ private static List <Class <?> > getCheckClasses () {
56
56
return StreamSupport .stream (CheckList .getChecks ().spliterator (), false )
57
+ .map (check -> (Class <?>) check )
57
58
.collect (Collectors .toList ());
58
59
}
59
60
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ public void test_issues() {
257
257
assertThat (checkedIssues ).isEqualTo (3 );
258
258
assertThat (logTester .logs (LoggerLevel .INFO )).contains ("Starting global symbols computation" );
259
259
assertThat (logTester .logs (LoggerLevel .INFO )).contains ("Starting rules execution" );
260
- assertThat (logTester .logs (LoggerLevel .INFO ).stream ().filter (line -> line .equals ("1 source files to be analyzed" )).count ()).isEqualTo (2 );
260
+ assertThat (logTester .logs (LoggerLevel .INFO ).stream ().filter (line -> line .equals ("1 source file to be analyzed" )).count ()).isEqualTo (2 );
261
261
262
262
assertThat (PythonScanner .getWorkingDirectory (context )).isEqualTo (workDir .toFile ());
263
263
}
You can’t perform that action at this time.
0 commit comments