Skip to content

style: fix styling and checkstyle warnings

Check Run Reporter / code-analysis failed Nov 27, 2023 in 3s

5 tests / 4 failures / 6 warnings

Rule NameConclusionCount
/home/runner/work/TerasologyLauncher/TerasologyLauncher/src/main/java/org/terasology/launcher/repositories/GithubRepository.java
com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck⚠️2
/home/runner/work/TerasologyLauncher/TerasologyLauncher/src/main/java/org/terasology/launcher/platform/Platform.java
com.puppycrawl.tools.checkstyle.checks.coding.DeclarationOrderCheck⚠️1
com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck2

Annotations

Check warning on line 45 in src/main/java/org/terasology/launcher/repositories/GithubRepository.java

See this annotation in the file changed.

@check-run-reporter check-run-reporter / code-analysis

com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck

com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck: Must have at least one statement.

Check warning on line 95 in src/main/java/org/terasology/launcher/repositories/GithubRepository.java

See this annotation in the file changed.

@check-run-reporter check-run-reporter / code-analysis

com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck

com.puppycrawl.tools.checkstyle.checks.blocks.EmptyBlockCheck: Must have at least one statement.

Check failure on line 17 in src/main/java/org/terasology/launcher/platform/Platform.java

See this annotation in the file changed.

@check-run-reporter check-run-reporter / code-analysis

com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck

com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck: 'private' modifier out of order with the JLS suggestions.

Check failure on line 18 in src/main/java/org/terasology/launcher/platform/Platform.java

See this annotation in the file changed.

@check-run-reporter check-run-reporter / code-analysis

com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck

com.puppycrawl.tools.checkstyle.checks.modifier.ModifierOrderCheck: 'private' modifier out of order with the JLS suggestions.

Check warning on line 34 in src/main/java/org/terasology/launcher/platform/Platform.java

See this annotation in the file changed.

@check-run-reporter check-run-reporter / code-analysis

com.puppycrawl.tools.checkstyle.checks.coding.DeclarationOrderCheck

com.puppycrawl.tools.checkstyle.checks.coding.DeclarationOrderCheck: Static variable definition in wrong order.