This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
generated from agilepathway/agilepathway-template
-
Notifications
You must be signed in to change notification settings - Fork 1
107 lines (99 loc) · 3.24 KB
/
reviewdog.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
---
name: reviewdog
on: # yamllint disable-line rule:truthy
push:
jobs:
yamllint:
name: runner / yamllint
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: yamllint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
markdownlint:
name: runner / markdownlint ${{ matrix.pattern }}
runs-on: ubuntu-latest
strategy:
matrix:
# Make sure we lint all markdown files including in hidden directories
pattern: ["**/*.md", ".**/*.md"]
steps:
- uses: actions/[email protected]
- name: markdownlint ${{ matrix.pattern }}
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-check
markdownlint_flags: ${{ matrix.pattern }}
reviewdog_flags: -name=markdownlint:${{ matrix.pattern }}
shellcheck:
name: runner / shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: shellcheck
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
path: "."
pattern: "*.sh"
exclude: "./.git/*"
hadolint:
name: runner / hadolint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/[email protected]
- name: hadolint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
misspell:
name: runner / misspell
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
languagetool:
name: runner / languagetool
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
reporter: github-check
patterns: |
**/*.md
**/*.spec
**/*.txt
language: en
disabled_rules: "DOUBLE_PUNCTUATION,WHITESPACE_RULE,EN_QUOTES,DASH_RULE,WORD_CONTAINS_UNDERSCORE,UPPERCASE_SENTENCE_START,ARROWS,COMMA_PARENTHESIS_WHITESPACE,UNLIKELY_OPENING_PUNCTUATION,SENTENCE_WHITESPACE,CURRENCY,EN_UNPAIRED_BRACKETS,PHRASE_REPETITION,PUNCTUATION_PARAGRAPH_END,METRIC_UNITS_EN_US,ENGLISH_WORD_REPEAT_BEGINNING_RULE,GITHUB" # yamllint disable-line
black: # Black is an opinionated Python linter
name: runner / black formatter
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: reviewdog/action-black@v2
with:
github_token: ${{ secrets.github_token }}
level: error
reporter: github-check
pyflakes: # Python code analysis
name: runner / pyflakes
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: pyflakes
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
reporter: github-check