File tree Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Expand file tree Collapse file tree 5 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 40
40
github_token : ${{ secrets.github_token }}
41
41
reporter : github-pr-review
42
42
level : error
43
- haml_lint_config : ' ./testdata/.haml-lint.yml'
43
+ haml_lint_config : -c ./testdata/.haml-lint.yml
44
44
reviewdog_flags : -filter-mode=file -fail-on-error
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ inputs:
51
51
reviewdog_flags :
52
52
description : ' Additional reviewdog flags'
53
53
default : ' '
54
- # ## Flags for haml-lint ###
55
- haml_lint_config :
56
- description : ' Path to config file '
57
- default : ' .haml-lint.yml '
54
+ # ## Flags for haml-lint
55
+ haml_lint_flags :
56
+ description : ' Additional haml-lint flags '
57
+ default : ' '
58
58
` ` `
59
59
60
60
## Usage
76
76
# Change reporter level if you need.
77
77
# GitHub Status Check won't become failure with warning.
78
78
level : warning
79
- haml_lint_config : .haml-config.yml # defaults to .haml-lint .yml
79
+ haml_lint_flags : -c .haml-config .yml
80
80
` ` `
81
81
82
82
## Development
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ inputs:
29
29
description : ' Additional reviewdog flags'
30
30
default : ' '
31
31
# ## Flags for haml-lint
32
- haml_lint_config :
33
- description : ' Path to config file '
34
- default : ' .haml-lint.yml '
32
+ haml_lint_flags :
33
+ description : ' Additional haml-lint flags '
34
+ default : ' '
35
35
runs :
36
36
using : ' docker'
37
37
image : ' Dockerfile'
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
set -e
3
3
4
- config () {
4
+ haml_lint_flags () {
5
5
if [ -n " $1 " ]; then
6
- echo " -c $1 "
6
+ echo " $1 "
7
7
fi
8
8
}
9
9
13
13
14
14
export REVIEWDOG_GITHUB_API_TOKEN=" ${INPUT_GITHUB_TOKEN} "
15
15
16
- haml-lint " $( config " $INPUT_HAML_LINT_CONFIG " ) " . \
17
- | reviewdog -efm=" %f:%l [%t] %m" \
16
+ # shellcheck disable=SC2046
17
+ # shellcheck disable=SC2086
18
+ haml-lint $( haml_lint_flags " $INPUT_HAML_LINT_FLAGS " ) . | reviewdog -efm=" %f:%l [%t] %m" \
18
19
-name=" haml-lint" \
19
20
-reporter=" ${INPUT_REPORTER:- github-pr-check} " \
20
21
-filter-mode=" ${INPUT_FILTER_MODE} " \
Original file line number Diff line number Diff line change 1
1
%h1
2
- it works
2
+ maybe it works
You can’t perform that action at this time.
0 commit comments