GSOC 2025 - AutoFix - June

39 views
Skip to first unread message

Anmol Sharma

unread,
Jun 5, 2025, 1:56:46 PMJun 5
to checkstyle-devel
Thursday, 5th June report

What i did on 5th June:

1)  Implemented the UpperEll check fix along with GitHub Actions: PR LINK 2) Created a draft PR to implement test using inputFiles 3) Opened issues for deploying the project at maven central and implementing checkstyle to project. what i'll be doing this week: 1) Create a list of checks that can be autofixed. 2) deploy the project at maven central and implement checkstyle to project.

Anmol Sharma

unread,
Jun 9, 2025, 2:32:31 PMJun 9
to checkstyle-devel
Monday, 9th June report

What i did:
1) Created issue to implement fixes on the project source: Issue
2) Raised PR to implement fixes on the project source: PR
3) Rebased previous PRS.

What will i do in this week:
1) Create a report of checks that can be autofixed.
2) investigate integration with OpenRewrite ecosystem.

Anmol Sharma

unread,
Jun 12, 2025, 11:40:03 PMJun 12
to checkstyle-devel
Thursday 12th June report

What I did:

As discussed in Discussion

Implemented the above suggested approach in PR
  • Since openrewrite chaining can only be used to change the input code.
    I created a test ClassRenameRecipe which will rename InputXxx.java to OutputXxx.java to have the same class name.

  • Renamed RecipeTestUtil to AbstractTestUtil and make it implement RewriteTest.

  • Updated UpperEllRecipeTest to extend renamed AbstractTestUtil and test each recipe.

  • Now the test example are Java compilable files rather than .txt files

What I will do this week:
  • Parse Checkstyle XML report and extract UpperEll violations with file/line/column info.

  • Parse Checkstyle configuration and load enabled checks and their parameters from checkstyle.xml.

  • Map violations to recipes by groupping UpperEll violations and matching to UpperEll recipe class.

  • Execute targeted recipe by passing violation locations and config parameters to recipe and running it.


Anmol Sharma

unread,
Jun 19, 2025, 2:47:32 PMJun 19
to checkstyle-devel
Thursday 19th June report

       What I did:

       Implemented the suggested approach in PR.

  • Added Checkstyle report parser.
  • Removed complex logic for parser.
  • Added tests for report parser.


  • What I will do this week:
  • Update recipes to apply fixes based on violation report.
  • Update the CheckstyleautoFix class to implement recipes according to check violations.

Anmol Sharma

unread,
Jun 26, 2025, 3:04:08 PMJun 26
to checkstyle-devel
Thursday 26th June report

What I did:

Raised PR to implement violation based fixes in upperEll recipe
  • Implemented logic for row and column detection.

  • Updated testing logic to test based on checkstyle-report

What I will do this week:
  • Implement a fix for teab based column detection.

  • Create a new recipe for HEADER check.

Anmol Sharma

unread,
Jul 3, 2025, 2:44:21 PMJul 3
to checkstyle-devel
Thursday 3th July report

What I did:

  • Update README.md

  • created header recipe.

  • update checkstyleAutoFix to load configrations
What I will do this week:
  • implement FinalLocalVariable recipe

  • Update implementation of recipe registry.

Anmol Sharma

unread,
Jul 21, 2025, 2:58:01 PMJul 21
to checkstyle-devel
Monday 21th July report

What I did:

  • completed end to end implementation of header recipe

  • Integrated testing pipeline.

  • Initiated implementation of FinalLocalVariable recipe
What I will do this week:
  • Complete End to end impl. of FinalLocalVariable.

  • Add more recipes to readME.

Reply all
Reply to author
Forward
0 new messages