Repository navigation
Detect ExtentReports usage in Java source - #39
Merged
shossain786 merged 3 commits intoNov 25, 2026
Merged
Conversation
shossain786
requested changes
Nov 22, 2026
Contributor
There was a problem hiding this comment.
Thanks @Jennydou517, this is solid work. I checked out the branch: mvn clean verify passes, and the new tests fail on main and pass with your change. Handling same-named types from other packages was a nice extra.
One change before merge:
- README: please add a
MIG-018row to the rule table (afterMIG-017, around line 245), e.g.| MIG-018 | ExtentReports usage (\ExtentReports`, `ExtentTest`, `ExtentSparkReporter`) | Manual review; Selenium Boot generates an HTML report |`.
Optional, fine as a follow-up:
ThreadLocal<ExtentTest>(a common Extent pattern) isn't flagged, because types inside generic arguments are skipped.- With a wildcard import from another package (
import example.*;), a same-named type would still match.
CI is green too.
shossain786
approved these changes
Nov 25, 2026
shossain786
left a comment
Contributor
There was a problem hiding this comment.
Thanks @Jennydou517, the README row is in and mvn clean verify passes. Merging.
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #37.
MIG-018to flag declarations and object creation forExtentReports,ExtentTest, andExtentSparkReporterfor manual migration.All 72 tests passed with
mvn test.