forked from alaegin/Detekt-Action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
65 lines (64 loc) · 1.96 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
name: 'Run detekt with reviewdog (Git fix)'
description: '🐶 Run detekt with reviewdog on pull requests to enforce best practices'
author: 'Original author: (alaegin). Fixed version: KChernenko'
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
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 }}
branding:
icon: 'check-square'
color: 'orange'