File tree Expand file tree Collapse file tree 5 files changed +58
-0
lines changed Expand file tree Collapse file tree 5 files changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ version : v2.6.1
2+ name : custom-golangci-lint
3+ # destination: ./zzz/path/
4+
5+ plugins :
6+ - module : ' github.com/golangci/example-plugin-module-linter'
7+ version : v0.1.0
Original file line number Diff line number Diff line change 1+ /custom-golangci-lint
Original file line number Diff line number Diff line change 1+ version : " 2"
2+
3+ linters :
4+ default : none
5+ enable :
6+ - example
7+
8+ settings :
9+ custom :
10+ example :
11+ type : module
12+ # Description is optional
13+ description : The description of the linter. This is optional, but shows up when running `golangci-lint linters`.
14+ # Original-url is optional, and is only used for documentation purposes.
15+ original-url : github.com/golangci/example-plugin-module-linter
16+ settings :
17+ one : Foo
18+ two :
19+ - name : Bar
20+ three :
21+ name : Bar
22+
23+ issues :
24+ max-issues-per-linter : 0
25+ max-same-issues : 0
Original file line number Diff line number Diff line change 1+ module github.com/golangci/sample
2+
3+ go 1.24.0
Original file line number Diff line number Diff line change 1+ // Package sample is used as test input for golangci action.
2+ package sample
3+
4+ // comment without a to do
5+ func SomeFunc1 () {
6+ _ = 1 + 1
7+ }
8+
9+ // TODO: do something // want "TODO comment has no author"
10+ func SomeFunc2 () {
11+ _ = 1 + 2
12+ }
13+
14+ // TODO(): do something // want "TODO comment has no author"
15+ func SomeFunc3 () {
16+ _ = 1 + 3
17+ }
18+
19+ // TODO(dbraley): Do something with the value
20+ func SomeFunc4 () {
21+ _ = 1 + 4
22+ }
You can’t perform that action at this time.
0 commit comments