Skip to content

Commit 18ebdb2

Browse files
SONARPY-843 Update dependencies
1 parent e4486a3 commit 18ebdb2

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

pom.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@
8484
<!-- versions -->
8585
<commons.io.version>2.8.0</commons.io.version>
8686
<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>
9090
<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>
9292
<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>
9595
<sonarlint-core.version>4.4.0.2561</sonarlint-core.version>
9696
<sslr.version>1.23</sslr.version>
9797
</properties>

python-checks-testkit/src/main/java/org/sonar/python/checks/utils/PythonCheckVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
package org.sonar.python.checks.utils;
2121

2222
import com.google.common.base.Preconditions;
23-
import com.sonarsource.checks.verifier.MultiFileVerifier;
2423
import java.io.File;
2524
import java.nio.file.Path;
2625
import java.util.Collections;
@@ -38,6 +37,7 @@
3837
import org.sonar.python.TestPythonVisitorRunner;
3938
import org.sonar.python.semantic.ProjectLevelSymbolTable;
4039
import org.sonar.python.tree.TreeUtils;
40+
import org.sonarsource.analyzer.commons.checks.verifier.MultiFileVerifier;
4141

4242
import static java.nio.charset.StandardCharsets.UTF_8;
4343
import static org.sonar.python.semantic.SymbolUtils.pythonPackageName;

sonar-python-plugin/src/main/java/org/sonar/plugins/python/PythonRuleRepository.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ public void define(Context context) {
5252
repository.done();
5353
}
5454

55-
private static List<Class> getCheckClasses() {
55+
private static List<Class<?>> getCheckClasses() {
5656
return StreamSupport.stream(CheckList.getChecks().spliterator(), false)
57+
.map(check -> (Class<?>) check)
5758
.collect(Collectors.toList());
5859
}
5960

sonar-python-plugin/src/test/java/org/sonar/plugins/python/PythonSensorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public void test_issues() {
257257
assertThat(checkedIssues).isEqualTo(3);
258258
assertThat(logTester.logs(LoggerLevel.INFO)).contains("Starting global symbols computation");
259259
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);
261261

262262
assertThat(PythonScanner.getWorkingDirectory(context)).isEqualTo(workDir.toFile());
263263
}

0 commit comments

Comments
 (0)