alibaba/java-dns-cache-manipulator

View on GitHub
tool/pom.xml

Summary

Maintainability
Test Coverage

Update this scope and remove the "systemPath".
Open

                    <scope>system</scope>
Severity: Critical
Found in tool/pom.xml by sonar-java

system dependencies are sought at a specific, specified path. This drastically reduces portability because if you deploy your artifact in an environment that's not configured just like yours is, your code won't work.

Noncompliant Code Example

<dependency>
  <groupId>javax.sql</groupId>
  <artifactId>jdbc-stdext</artifactId>
  <version>2.0</version>
  <scope>system</scope>  <!-- Noncompliant -->
  <systemPath>/usr/bin/lib/rt.jar</systemPath>  <!-- remove this -->
</dependency>

Update this scope and remove the "systemPath".
Open

                    <scope>system</scope>
Severity: Critical
Found in tool/pom.xml by sonar-java

system dependencies are sought at a specific, specified path. This drastically reduces portability because if you deploy your artifact in an environment that's not configured just like yours is, your code won't work.

Noncompliant Code Example

<dependency>
  <groupId>javax.sql</groupId>
  <artifactId>jdbc-stdext</artifactId>
  <version>2.0</version>
  <scope>system</scope>  <!-- Noncompliant -->
  <systemPath>/usr/bin/lib/rt.jar</systemPath>  <!-- remove this -->
</dependency>

Unexpected spaces found.
Open

         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Severity: Minor
Found in tool/pom.xml by editorconfig

There are no issues that match your filters.

Category
Status