Bram-Hub / LEGUP

Logic Engine for Grid-Using Puzzles - a better way to learn formal logic
GNU General Public License v3.0
29 stars 78 forks source link

[BUG] Build requires CheckStyle to pass, which causes issues with the autoformatter #817

Open charlestian23 opened 4 months ago

charlestian23 commented 4 months ago

Description

For this action run: https://github.com/Bram-Hub/LEGUP/actions/runs/8712645184/job/23899374282?pr=812

We can see that build fails, which makes the GitHub Action for the autoformatter fail. This obviously is problematic, since the autoformatter is supposed to fix these CheckStyle issues.

Steps to Reproduce

N/A

Expected Behavior

The autoformatter should run. In this case, we should change the expected behavior of CheckStyle to not require braces when there is only 1 line inside of a code block. For example, this code should be allowed:

if (true)
     System.out.println("Hello World");

Screenshots

No response

Puzzle Files

No response

Additional Context

No response