-
Notifications
You must be signed in to change notification settings - Fork 24
/
action.yml
81 lines (80 loc) · 2.54 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: 'Run detekt with reviewdog'
description: '🐶 Run detekt with reviewdog on pull requests to enforce best practices'
author: 'Alexey Egin (alaegin)'
inputs:
github_token:
description: 'GITHUB_TOKEN'
required: true
reviewdog_level:
description: 'Report level for reviewdog [info,warning,error]'
required: false
default: 'error'
reviewdog_filter:
description: 'Filter mode for reviewdog [added,diff_context,file,nofilter]'
required: false
default: 'added'
reviewdog_reporter:
description: |
Reporter of reviewdog command [github-pr-check,github-pr-review].
Default is github-pr-check.
required: false
default: 'github-pr-check'
detekt_config:
description: 'yml detekt config'
required: false
default: 'default-detekt-config.yml'
detekt_excludes:
description: 'Globing patterns describing paths to exclude from the analysis.'
required: false
default: '**/build/**,**/.idea/**'
fail_on_error:
description: |
Fails the current check if any error was found [true/false]
Default is false.
required: false
default: 'true'
detekt_plugins:
description: |
Additional plugins for detekt.
Should be defined with comma separation
Example: 'path/1.jar,path/2.jar'
required: false
detekt_baseline:
description: 'Provides baseline.xml file to detekt'
required: false
detekt_parallel:
description: 'Executes detekt in parallel'
required: false
detekt_build_upon_default_config:
description: 'Preconfigures detekt with a bunch of rules and some opinionated defaults
for you. Allows additional provided configurations to override the
defaults.'
required: false
detekt_all_rules:
description: 'Activates all available (even unstable) rules.'
required: false
detekt_input:
description: |
'Specific inputs for detekt (the --input argument for detekt-cli)'
Example: 'path/to/dir1,path/to/dir2'
required: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.github_token }}
- ${{ inputs.reviewdog_level }}
- ${{ inputs.reviewdog_filter }}
- ${{ inputs.reviewdog_reporter }}
- ${{ inputs.detekt_config }}
- ${{ inputs.detekt_excludes }}
- ${{ inputs.fail_on_error }}
- ${{ inputs.detekt_plugins }}
- ${{ inputs.detekt_baseline }}
- ${{ inputs.detekt_parallel }}
- ${{ inputs.detekt_build_upon_default_config }}
- ${{ inputs.detekt_all_rules }}
- ${{ inputs.detekt_input }}
branding:
icon: 'check-square'
color: 'orange'