File tree Expand file tree Collapse file tree 5 files changed +43
-103
lines changed Expand file tree Collapse file tree 5 files changed +43
-103
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : lint-sync
2
+ on :
3
+ schedule :
4
+ # every Sunday at midnight
5
+ - cron : " 0 0 * * 0"
6
+ workflow_dispatch : # allows manual triggering
7
+
8
+ permissions :
9
+ contents : write
10
+ pull-requests : write
11
+
12
+ jobs :
13
+ lint :
14
+ uses : charmbracelet/meta/.github/workflows/lint-sync.yml@main
Original file line number Diff line number Diff line change 3
3
push :
4
4
pull_request :
5
5
6
- permissions :
7
- contents : read
8
- # Optional: allow read access to pull request. Use with `only-new-issues` option.
9
- pull-requests : read
10
-
11
6
jobs :
12
- golangci :
13
- name : lint
14
- runs-on : ubuntu-latest
15
- steps :
16
- - name : Install Go
17
- uses : actions/setup-go@v5
18
- with :
19
- go-version : ^1
20
-
21
- - uses : actions/checkout@v4
22
- - name : golangci-lint
23
- uses : golangci/golangci-lint-action@v8
24
- with :
25
- # Optional: golangci-lint command line arguments.
26
- # args:
27
- # Optional: show only new issues if it's a pull request. The default value is `false`.
28
- only-new-issues : true
7
+ lint :
8
+ uses : charmbracelet/meta/.github/workflows/lint.yml@main
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ version : " 2"
1
2
run :
2
3
tests : false
3
-
4
- issues :
5
- include :
6
- - EXC0001
7
- - EXC0005
8
- - EXC0011
9
- - EXC0012
10
- - EXC0013
11
-
12
- max-issues-per-linter : 0
13
- max-same-issues : 0
14
-
15
4
linters :
16
5
enable :
17
6
- bodyclose
18
- - goimports
7
+ - exhaustive
8
+ - goconst
9
+ - godot
10
+ - godox
11
+ - gomoddirectives
12
+ - goprintffuncname
19
13
- gosec
14
+ - misspell
15
+ - nakedret
16
+ - nestif
20
17
- nilerr
21
- - predeclared
18
+ - noctx
19
+ - nolintlint
20
+ - prealloc
22
21
- revive
23
22
- rowserrcheck
24
23
- sqlclosecheck
25
24
- tparallel
26
25
- unconvert
27
26
- unparam
28
27
- whitespace
28
+ - wrapcheck
29
+ exclusions :
30
+ generated : lax
31
+ presets :
32
+ - common-false-positives
33
+ issues :
34
+ max-issues-per-linter : 0
35
+ max-same-issues : 0
36
+ formatters :
37
+ enable :
38
+ - gofumpt
39
+ - goimports
40
+ exclusions :
41
+ generated : lax
You can’t perform that action at this time.
0 commit comments