Repository navigation
feat(analyzer): add MIG-019 rule for .properties config detection - #41
Merged
shossain786 merged 1 commit intoNov 25, 2026
Merged
Conversation
Contributor
|
Thanks @Contributerr27. This looks good and
I've assigned #38 to you. |
Flag Properties.load(...) calls and FileInputStream/getResourceAsStream literals ending in .properties as MANUAL findings, with a label in Report.ruleLabel. Closes seleniumboot#38.
Contributerr27
force-pushed
the
mig-019-properties-config
branch
from
November 25, 2026 13:02
53eea4b to
cd0c4e6
Compare
Contributor
Author
|
Thanks @shossain786. I rebased on main after #39 and kept both labels in Report.java (MIG-018 and MIG-019). I also added a MIG-019 row to the README rule table after MIG-018. mvn clean verify passes locally. |
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
Adds rule MIG-019 (MANUAL) to Analyzer.java: flags Properties.load(...) calls and .properties config loading via new FileInputStream("....properties") / getResourceAsStream("....properties"), with a label in Report.ruleLabel. New fixture src/test/resources/properties-config/Config.java and tests cover the acceptance criteria: the fixture gives a MIG-019 finding, a plain test class gives none. Analysis only; migrate does not touch these.
Closes #38
Type of change
MIG-xxx)Checklist
mvn testpassesNotes for reviewers
MIG-019 adds a finding only (MANUAL); no code mapping was added, so no mapping needed checking against the docs. The README rule table is not updated; happy to add it in a follow-up commit if you'd like.