-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.41 KB
/
checkstyle.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
name: checkstyle
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
checkstyle:
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run java checkstyle
# You may pin to the exact commit or the version.
# uses: nikitasavinov/checkstyle-action@79490c0fdcc3ab5dd2b50a0e82a5bfc4fe63f0a9
uses: nikitasavinov/[email protected]
with:
# GITHUB_TOKEN.
# github_token: # optional, default is ${{ github.token }}
# Report level for reviewdog [info,warning,error]
level: warn
# Reporter of reviewdog command [github-pr-check,github-pr-review]
# reporter: # optional, default is github-pr-check
# Filtering for the reviewdog command [added,diff_context,file,nofilter].
# filter_mode: # optional, default is added
# Exit code for reviewdog when errors are found [true,false]
# fail_on_error: true
# Checkstyle config file
checkstyle_config: google_checks.xml
# Checkstyle version
checkstyle_version: 10.11.0
# Working directory relative to the root directory.
workdir: ./src/main/
# Tool name to use for reviewdog reporter
# tool_name: # optional, default is reviewdog
# Properties file relative to the root directory.
# properties_file: # optional, default is