Skip to content

Fix: Invert assertions in InternalStatusPolicyEvaluatorTest

d7b0e16
Select commit
Loading
Failed to load commit list.
Open

feat(policy): add Latest Version Status condition support #5575

Fix: Invert assertions in InternalStatusPolicyEvaluatorTest
d7b0e16
Select commit
Loading
Failed to load commit list.
Codacy Production / Codacy Static Code Analysis succeeded Nov 25, 2025 in 0s

Your pull request is up to standards!

Codacy found no issues in your code

Annotations

Check notice on line 55 in src/main/java/org/dependencytrack/policy/LatestVersionPolicyEvaluator.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/main/java/org/dependencytrack/policy/LatestVersionPolicyEvaluator.java#L55

Deeply nested if..then statements are hard to read

Check warning on line 30 in src/test/java/org/dependencytrack/policy/InternalStatusPolicyEvaluatorTest.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/test/java/org/dependencytrack/policy/InternalStatusPolicyEvaluatorTest.java#L30

Using the '.*' form of import should be avoided - org.junit.jupiter.api.Assertions.*.

Check warning on line 32 in src/test/java/org/dependencytrack/policy/LatestVersionPolicyEvaluatorTest.java

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

src/test/java/org/dependencytrack/policy/LatestVersionPolicyEvaluatorTest.java#L32

Using the '.*' form of import should be avoided - org.junit.jupiter.api.Assertions.*.