-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.12 KB
/
linting.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
name: Linting
on:
pull_request:
push:
branches:
- main
tags:
- v*
jobs:
golint:
name: golint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golint
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--disable-all -E golint"
level: warning # GitHub Status Check won't become failure with this level.
errcheck:
name: errcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: errcheck
uses: reviewdog/[email protected]
with:
github_token: ${{ secrets.github_token }}
golangci_lint_flags: "--disable-all -E errcheck"
misspell:
name: misspell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: misspell
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.github_token }}
locale: "US"
# ignore the chat handlers file cause it has many typos
exclude: pkg/chatbot/handlers.go