Skip to content

添加代码样式检查 action #3

添加代码样式检查 action

添加代码样式检查 action #3

Triggered via pull request April 12, 2024 14:39
Status Failure
Total duration 31s
Artifacts

style_check.yml

on: pull_request
checkstyle
21s
checkstyle
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 11 warnings
checkstyle
reviewdog: Too many results (annotations) in diff. You may miss some annotations due to GitHub limitation for annotation created by logging command. Please check GitHub Actions log console to see all results. Limitation: - 10 warning annotations and 10 error annotations per step - 50 annotations per job (sum of annotations from all the steps) - 50 annotations per run (separate from the job annotations, these annotations aren't created by users) Source: https://github.community/t5/GitHub-Actions/Maximum-number-of-annotations-that-can-be-created-using-GitHub/m-p/39085
checkstyle
Process completed with exit code 1.
checkstyle
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/[email protected], actions/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L22
[Checkstyle] reported by reviewdog 🐶 Extra separation in import group before 'java.util.Map' Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:22:1: warning: Extra separation in import group before 'java.util.Map' (com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L22
[Checkstyle] reported by reviewdog 🐶 Wrong lexicographical order for 'java.util.Map' import. Should be before 'org.jetbrains.annotations.NotNull'. Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:22:1: warning: Wrong lexicographical order for 'java.util.Map' import. Should be before 'org.jetbrains.annotations.NotNull'. (com.puppycrawl.tools.checkstyle.checks.imports.CustomImportOrderCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L24
[Checkstyle] reported by reviewdog 🐶 Missing a Javadoc comment. Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:24:1: warning: Missing a Javadoc comment. (com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocTypeCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L42
[Checkstyle] reported by reviewdog 🐶 Distance between variable 'i' declaration and its first usage is 4, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value). Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:42:9: warning: Distance between variable 'i' declaration and its first usage is 4, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value). (com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L44
[Checkstyle] reported by reviewdog 🐶 Distance between variable 'k' declaration and its first usage is 5, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value). Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:44:9: warning: Distance between variable 'k' declaration and its first usage is 5, but allowed 3. Consider making that variable final if you still need to store its value in advance (before method calls that might have side effects on the original value). (com.puppycrawl.tools.checkstyle.checks.coding.VariableDeclarationUsageDistanceCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L53
[Checkstyle] reported by reviewdog 🐶 Line is longer than 100 characters (found 105). Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:53:0: warning: Line is longer than 100 characters (found 105). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L57
[Checkstyle] reported by reviewdog 🐶 Line is longer than 100 characters (found 113). Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:57:0: warning: Line is longer than 100 characters (found 113). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L58
[Checkstyle] reported by reviewdog 🐶 Line is longer than 100 characters (found 113). Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:58:0: warning: Line is longer than 100 characters (found 113). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L98
[Checkstyle] reported by reviewdog 🐶 'if' construct must use '{}'s. Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:98:21: warning: 'if' construct must use '{}'s. (com.puppycrawl.tools.checkstyle.checks.blocks.NeedBracesCheck)
checkstyle: common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java#L103
[Checkstyle] reported by reviewdog 🐶 Line is longer than 100 characters (found 112). Raw Output: /home/runner/work/AnvilCraftMod/AnvilCraftMod/common/src/main/java/dev/dubhe/anvilcraft/inventory/RoyalAnvilMenu.java:103:0: warning: Line is longer than 100 characters (found 112). (com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck)