Skip to content

Add human-readable labels for all migration rules - #40

Merged
shossain786 merged 2 commits into
seleniumboot:mainfrom
avantikaab1507:fix/human-readable-rule-labels
Nov 26, 2026
Merged

shossain786 merged 2 commits into
seleniumboot:mainfrom
avantikaab1507:fix/human-readable-rule-labels

Conversation

@avantikaab1507

Copy link
Copy Markdown
Contributor

What & why

Adds human-readable labels for all Analyzer-emitted migration rule IDs in console reports while preserving raw rule IDs in JSON output.

Closes #36

Type of change

  • New rule (MIG-xxx)
  • Bug fix
  • Documentation
  • Internal refactor / test coverage

Checklist

  • mvn test passes
  • New behaviour is covered by a test
  • Nothing here modifies the user's original project (read-only by default)
  • Rules are AST-based and deterministic, not AI-generated transformations
  • Any new mapping was checked against the Selenium Boot docs first
  • If a new rule was added, the table in README.md was updated

Notes for reviewers

  • Added human-readable labels for MIG-001, MIG-002, MIG-003, MIG-004, MIG-005, MIG-010, MIG-011, MIG-012, MIG-014, MIG-015, MIG-016 and MIG-017.
  • Added a test for the MIG-001 human-readable label.
  • JSON output continues to use raw rule IDs.
  • Maven is not installed locally, so the test suite has not been run locally. CI verification is requested.

@shossain786 shossain786 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.

Thanks @avantikaab1507, labels for every rule are a good addition and the tests pass. A few changes:

  • The ruleLabel switch lost its indentation. Please restore it so it matches the rest of Report.java.
  • Please drop the // NEW TEST ADDED FOR ISSUE #36 comment. The PR links the issue already.
  • MIG-017 is emitted in two places: the Analyzer uses it for driver setup/teardown in lifecycle methods, and the Migrator uses it for references to removed classes (as the README says). The label should cover both, for example MIG-017 (Driver lifecycle code / references to removed classes).
  • #39 has merged and adds MIG-018 to the same switch, so please rebase on main and keep that label.

I've assigned #36 to you.

@avantikaab1507
avantikaab1507 force-pushed the fix/human-readable-rule-labels branch from d37c858 to f5e073f Compare November 25, 2026 19:21

@shossain786 shossain786 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.

Thanks @avantikaab1507, all four points are addressed and the full suite passes locally (77 tests). Merging.

@shossain786
shossain786 merged commit f54fec5 into seleniumboot:main Nov 26, 2026
@avantikaab1507
avantikaab1507 deleted the fix/human-readable-rule-labels branch November 26, 2026 06:07
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.

Report: human-readable labels for every rule id

2 participants