Skip to content

checkProperty and checkExplicitVersion#2

Merged
lithium147 merged 12 commits into
mainfrom
feature/refactor-version-property-rule
Mar 7, 2026
Merged

checkProperty and checkExplicitVersion#2
lithium147 merged 12 commits into
mainfrom
feature/refactor-version-property-rule

Conversation

@lithium147

@lithium147 lithium147 commented Mar 4, 2026

Copy link
Copy Markdown
Collaborator

devin-ai-integration[bot]

This comment was marked as resolved.

…-rule

# Conflicts:
#	README.md
#	pom.xml
#	src/main/java/com/solubris/enforcer/ModelScanner.java
#	src/main/java/com/solubris/enforcer/UnusedPropertyRule.java
#	src/test/java/com/solubris/enforcer/VersionPropertyRuleTest.java
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View 13 additional findings in Devin Review.

Open in Devin Review

Comment thread pom.xml
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-commons</artifactId>
<version>${junit.version}</version>
<version>6.0.3</version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 junit-platform-commons uses hardcoded version instead of ${junit.version} property

The PR changed junit-platform-commons version from ${junit.version} to the hardcoded literal 6.0.3, while junit-jupiter still uses ${junit.version} (which resolves to 6.0.3). This introduces inconsistency: two related JUnit dependencies now have mixed property/literal version references. This is precisely the pattern that the project's own VersionPropertyRule is designed to catch (unusedPropertyViolation - a property exists but is not used everywhere). Additionally, if junit.version is ever updated, junit-platform-commons will be left behind at the old version.

Suggested change
<version>6.0.3</version>
<version>${junit.version}</version>
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 new potential issue.

View 11 additional findings in Devin Review.

Open in Devin Review

Comment thread pom.xml
Comment on lines +90 to +94
<dependency>
<groupId>io.projectreactor</groupId>
<artifactId>reactor-core</artifactId>
<version>3.6.0</version>
</dependency>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 reactor-core added as compile-scope dependency with no usage in the codebase

A new dependency io.projectreactor:reactor-core:3.6.0 was added without any <scope> element (defaulting to compile), but no code in the src/ directory references any Reactor classes (no imports of Flux, Mono, or any reactor.* package). This means reactor-core and all its transitive dependencies will be bundled into the published artifact unnecessarily, increasing its size and potentially causing classpath conflicts for consumers.

Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

devin-ai-integration[bot]

This comment was marked as resolved.

@lithium147
lithium147 merged commit 6f44327 into main Mar 7, 2026
1 check passed
@lithium147
lithium147 deleted the feature/refactor-version-property-rule branch March 7, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant