forked from dbelyaev/action-checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
56 lines (55 loc) · 2.27 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Checkstyle for Java"
# description should be no more than 125 characters!
description: "🐶 Run checkstyle analysis on Java code and report results directly to pull request with the help of reviewdog."
author: "Dmitriy Belyaev"
inputs:
github_token:
description: "GITHUB_TOKEN"
default: "${{ github.token }}"
workdir:
description: "Working directory relative to the root directory."
default: "."
### Flags for reviewdog ###
level:
description: "Report level for reviewdog [info, warning, error]"
default: "info"
reporter:
description: "Reporter of reviewdog command [github-pr-check, github-pr-review]."
default: "github-pr-check"
filter_mode:
description: |
Filtering mode for the reviewdog command [added, diff_context, file, nofilter].
Default is added.
default: "added"
fail_on_error:
description: |
Exit code for reviewdog when errors are found [true, false]
Default is `false`.
default: "false"
reviewdog_flags:
description: "Additional reviewdog flags"
default: ""
### Flags for checkstyle ###
checkstyle_config:
description: |
Checkstyle configuration specifies which ruleset to apply during scan.
There are two built-in configurations in checkstyle: [google_checks.xml, sun_checks.xml].
google_checks.xml configures Checkstyle for the Google coding conventions (https://google.github.io/styleguide/javaguide.html)
sun_checks.xml configures Checkstyle for the Sun coding conventions (https://www.oracle.com/java/technologies/javase/codeconventions-contents.html)
required: true
default: "google_checks.xml"
checkstyle_version:
description: |
Checkstyle version to be used during analysis.
For a list of available version numbers go to [Checkstyle release page](https://github.com/checkstyle/checkstyle/releases/).
**IMPORTANT NOTE**
This field will always try to follow Checkstyle releases as close as possible and will use the latest available by default.
If it is not a default preference for your project, please, pin the needed version using this property.
default: "10.9.3"
runs:
using: "docker"
image: "Dockerfile"
# Ref: https://haya14busa.github.io/github-action-brandings/
branding:
icon: "check"
color: "green"