File tree Expand file tree Collapse file tree 5 files changed +16
-98
lines changed Expand file tree Collapse file tree 5 files changed +16
-98
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.18
20
-
21
- - uses : actions/checkout@v4
22
- - name : golangci-lint
23
- uses : golangci/golangci-lint-action@v6
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 @@ -15,7 +15,6 @@ issues:
15
15
linters :
16
16
enable :
17
17
- bodyclose
18
- - copyloopvar
19
18
- gofumpt
20
19
- goimports
21
20
- gosec
@@ -27,6 +26,3 @@ linters:
27
26
- unconvert
28
27
- unparam
29
28
- whitespace
30
- # We're disabling predeclared because the linter is running a newer version
31
- # of Go than then Go module.
32
- # - predeclared
You can’t perform that action at this time.
0 commit comments