checkstyle / checkstyle/patch-filters

test should be updated to reuse inlined to input violation messages

Open Beginner friendly
#416 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
4
Forks
11
Avg merge
5h 55m
Merged PRs (30d)
2

Description

https://github.com/checkstyle/checkstyle-openrewrite-recipes/blob/main/src/test/resources/org/checkstyle/autofix/recipe/finalclass/annotationinnerclass/InputAnnotationInnerClass.java

https://github.com/checkstyle/checkstyle/blob/c8a31c2190c106cb34610ce2b96963b068f2ca33/src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/filters/suppressionsinglefilter/Example4.java#L17

in this case we can avoid usage of output files in each Input bundle, it will be more clean code

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/test/resources/org/checkstyle/autofix/recipe/finalclass/annotationinnerclass/InputAnnotationInnerClass.java and compare it with Checkstyle's Example4.java linked in the issue. Inspect how the test bundles input and output files, then update the test to reuse inlined input violation messages. Done means the input bundles no longer require separate output files and the tests still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.