Skip to content

Bump org.jvnet.hudson.plugins:analysis-pom

b0654c5
Select commit
Loading
Failed to load commit list.
Open

Bump org.jvnet.hudson.plugins:analysis-pom from 11.2934.va_a_d795c46a_7b_ to 11.2958.v63511c4c1160 #580

Bump org.jvnet.hudson.plugins:analysis-pom
b0654c5
Select commit
Loading
Failed to load commit list.
ci.jenkins.io / PMD failed Dec 15, 2025

8 new issues

Total New Outstanding Fixed Trend
8 8 0 0 👎

Reference build: Plugins » coverage-plugin » main #475

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 0 8 0

Annotations

Check warning on line 98 in plugin/src/main/java/io/jenkins/plugins/coverage/metrics/steps/CodeDeltaCalculator.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / PMD

EnumComparison

NORMAL:
Enums should be compared using ==.
Raw output
When comparing enums, `equals()` should be avoided and `==` should be preferred. Using `==` has some advantages: * same semantic as `equals()` * less problematic with possible null pointer exceptions * supports static type check: If you compare two incompatible enum types, the compiler will tell you. When using equals, you'll only get noticed at runtime or not at all. This rule implements SonarSource rule [S4551](https://sonarsource.github.io/rspec/#/rspec/S4551). Note, that only primitive types and enums should be compared using `==`. To compare other objects, `equals()` is the correct way. See {%rule java/errorprone/CompareObjectsWithEquals %} and {%rule java/errorprone/UseEqualsToCompareStrings %}. <pre> <code> enum Color { RED, GREEN, BLUE } class ColorTester { boolean isRed(Color color) { return color.equals(Color.RED); // violation } boolean isGreen(Color color) { return color == Color.GREEN; // preferred } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_rules_java_bestpractices.html#enumcomparison"> See PMD documentation. </a>

Check warning on line 99 in plugin/src/main/java/io/jenkins/plugins/coverage/metrics/steps/CodeDeltaCalculator.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / PMD

EnumComparison

NORMAL:
Enums should be compared using ==.
Raw output
When comparing enums, `equals()` should be avoided and `==` should be preferred. Using `==` has some advantages: * same semantic as `equals()` * less problematic with possible null pointer exceptions * supports static type check: If you compare two incompatible enum types, the compiler will tell you. When using equals, you'll only get noticed at runtime or not at all. This rule implements SonarSource rule [S4551](https://sonarsource.github.io/rspec/#/rspec/S4551). Note, that only primitive types and enums should be compared using `==`. To compare other objects, `equals()` is the correct way. See {%rule java/errorprone/CompareObjectsWithEquals %} and {%rule java/errorprone/UseEqualsToCompareStrings %}. <pre> <code> enum Color { RED, GREEN, BLUE } class ColorTester { boolean isRed(Color color) { return color.equals(Color.RED); // violation } boolean isGreen(Color color) { return color == Color.GREEN; // preferred } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_rules_java_bestpractices.html#enumcomparison"> See PMD documentation. </a>

Check warning on line 100 in plugin/src/main/java/io/jenkins/plugins/coverage/metrics/steps/CodeDeltaCalculator.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / PMD

EnumComparison

NORMAL:
Enums should be compared using ==.
Raw output
When comparing enums, `equals()` should be avoided and `==` should be preferred. Using `==` has some advantages: * same semantic as `equals()` * less problematic with possible null pointer exceptions * supports static type check: If you compare two incompatible enum types, the compiler will tell you. When using equals, you'll only get noticed at runtime or not at all. This rule implements SonarSource rule [S4551](https://sonarsource.github.io/rspec/#/rspec/S4551). Note, that only primitive types and enums should be compared using `==`. To compare other objects, `equals()` is the correct way. See {%rule java/errorprone/CompareObjectsWithEquals %} and {%rule java/errorprone/UseEqualsToCompareStrings %}. <pre> <code> enum Color { RED, GREEN, BLUE } class ColorTester { boolean isRed(Color color) { return color.equals(Color.RED); // violation } boolean isGreen(Color color) { return color == Color.GREEN; // preferred } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_rules_java_bestpractices.html#enumcomparison"> See PMD documentation. </a>

Check warning on line 159 in plugin/src/main/java/io/jenkins/plugins/coverage/metrics/steps/CodeDeltaCalculator.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / PMD

EnumComparison

NORMAL:
Enums should be compared using ==.
Raw output
When comparing enums, `equals()` should be avoided and `==` should be preferred. Using `==` has some advantages: * same semantic as `equals()` * less problematic with possible null pointer exceptions * supports static type check: If you compare two incompatible enum types, the compiler will tell you. When using equals, you'll only get noticed at runtime or not at all. This rule implements SonarSource rule [S4551](https://sonarsource.github.io/rspec/#/rspec/S4551). Note, that only primitive types and enums should be compared using `==`. To compare other objects, `equals()` is the correct way. See {%rule java/errorprone/CompareObjectsWithEquals %} and {%rule java/errorprone/UseEqualsToCompareStrings %}. <pre> <code> enum Color { RED, GREEN, BLUE } class ColorTester { boolean isRed(Color color) { return color.equals(Color.RED); // violation } boolean isGreen(Color color) { return color == Color.GREEN; // preferred } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_rules_java_bestpractices.html#enumcomparison"> See PMD documentation. </a>

Check warning on line 36 in plugin/src/test/java/io/jenkins/plugins/coverage/metrics/color/ColorProviderFactoryTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / PMD

EnumComparison

NORMAL:
Enums should be compared using ==.
Raw output
When comparing enums, `equals()` should be avoided and `==` should be preferred. Using `==` has some advantages: * same semantic as `equals()` * less problematic with possible null pointer exceptions * supports static type check: If you compare two incompatible enum types, the compiler will tell you. When using equals, you'll only get noticed at runtime or not at all. This rule implements SonarSource rule [S4551](https://sonarsource.github.io/rspec/#/rspec/S4551). Note, that only primitive types and enums should be compared using `==`. To compare other objects, `equals()` is the correct way. See {%rule java/errorprone/CompareObjectsWithEquals %} and {%rule java/errorprone/UseEqualsToCompareStrings %}. <pre> <code> enum Color { RED, GREEN, BLUE } class ColorTester { boolean isRed(Color color) { return color.equals(Color.RED); // violation } boolean isGreen(Color color) { return color == Color.GREEN; // preferred } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_rules_java_bestpractices.html#enumcomparison"> See PMD documentation. </a>

Check warning on line 37 in plugin/src/test/java/io/jenkins/plugins/coverage/metrics/color/ColorProviderFactoryTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / PMD

EnumComparison

NORMAL:
Enums should be compared using ==.
Raw output
When comparing enums, `equals()` should be avoided and `==` should be preferred. Using `==` has some advantages: * same semantic as `equals()` * less problematic with possible null pointer exceptions * supports static type check: If you compare two incompatible enum types, the compiler will tell you. When using equals, you'll only get noticed at runtime or not at all. This rule implements SonarSource rule [S4551](https://sonarsource.github.io/rspec/#/rspec/S4551). Note, that only primitive types and enums should be compared using `==`. To compare other objects, `equals()` is the correct way. See {%rule java/errorprone/CompareObjectsWithEquals %} and {%rule java/errorprone/UseEqualsToCompareStrings %}. <pre> <code> enum Color { RED, GREEN, BLUE } class ColorTester { boolean isRed(Color color) { return color.equals(Color.RED); // violation } boolean isGreen(Color color) { return color == Color.GREEN; // preferred } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_rules_java_bestpractices.html#enumcomparison"> See PMD documentation. </a>

Check warning on line 244 in plugin/src/test/java/io/jenkins/plugins/coverage/metrics/steps/GitForensicsITest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / PMD

EnumComparison

NORMAL:
Enums should be compared using ==.
Raw output
When comparing enums, `equals()` should be avoided and `==` should be preferred. Using `==` has some advantages: * same semantic as `equals()` * less problematic with possible null pointer exceptions * supports static type check: If you compare two incompatible enum types, the compiler will tell you. When using equals, you'll only get noticed at runtime or not at all. This rule implements SonarSource rule [S4551](https://sonarsource.github.io/rspec/#/rspec/S4551). Note, that only primitive types and enums should be compared using `==`. To compare other objects, `equals()` is the correct way. See {%rule java/errorprone/CompareObjectsWithEquals %} and {%rule java/errorprone/UseEqualsToCompareStrings %}. <pre> <code> enum Color { RED, GREEN, BLUE } class ColorTester { boolean isRed(Color color) { return color.equals(Color.RED); // violation } boolean isGreen(Color color) { return color == Color.GREEN; // preferred } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_rules_java_bestpractices.html#enumcomparison"> See PMD documentation. </a>

Check warning on line 251 in plugin/src/test/java/io/jenkins/plugins/coverage/metrics/steps/GitForensicsITest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / PMD

EnumComparison

NORMAL:
Enums should be compared using ==.
Raw output
When comparing enums, `equals()` should be avoided and `==` should be preferred. Using `==` has some advantages: * same semantic as `equals()` * less problematic with possible null pointer exceptions * supports static type check: If you compare two incompatible enum types, the compiler will tell you. When using equals, you'll only get noticed at runtime or not at all. This rule implements SonarSource rule [S4551](https://sonarsource.github.io/rspec/#/rspec/S4551). Note, that only primitive types and enums should be compared using `==`. To compare other objects, `equals()` is the correct way. See {%rule java/errorprone/CompareObjectsWithEquals %} and {%rule java/errorprone/UseEqualsToCompareStrings %}. <pre> <code> enum Color { RED, GREEN, BLUE } class ColorTester { boolean isRed(Color color) { return color.equals(Color.RED); // violation } boolean isGreen(Color color) { return color == Color.GREEN; // preferred } } </code> </pre> <a href="https://docs.pmd-code.org/pmd-doc-7.19.0/pmd_rules_java_bestpractices.html#enumcomparison"> See PMD documentation. </a>