Repository navigation
Add MIG-018: detect ExtentReports usage in code (#37) - #43
Closed
Contributerr27 wants to merge 3 commits into
Closed
Contributerr27 wants to merge 3 commits into
Contributerr27 wants to merge 3 commits into
Conversation
The analyzer flagged ExtentReports in build files but not in code. Detect creations and declarations of ExtentReports, ExtentTest and ExtentSparkReporter as MANUAL findings, each once, following the MIG-014 pattern. Closes seleniumboot#37
Contributor
|
Thanks @Contributerr27. #37 was already assigned to @Jennydou517 and her PR #39 has now merged, so I'm closing this one as a duplicate. Please comment on an issue and wait to be assigned before opening a PR, so work doesn't overlap. |
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.
What & why
Closes #37.
The analyzer already flagged ExtentReports when it appears in build files, but not when a project uses it in code. This adds MIG-018: creations and declarations of
ExtentReports,ExtentTestandExtentSparkReporterare now detected and reported as MANUAL findings (ExtentReports setup needs manual migration). Each class is reported at most once per file, following the MIG-014 pattern.How tested
detectsExtentReportsUsagetest inAnalyzerTest: a source file using all three Extent classes (with both an object creation and a plain declaration of the same class, to cover dedup) yields exactly 3 findings with ruleId MIG-018, and a TestNG-only file yields none.mvn test: all 70 tests pass.