File tree Expand file tree Collapse file tree 4 files changed +28
-10
lines changed Expand file tree Collapse file tree 4 files changed +28
-10
lines changed Original file line number Diff line number Diff line change 17
17
- name : Set up Go
18
18
uses : actions/setup-go@v4
19
19
with :
20
- go-version : 1.19 .x
20
+ go-version : 1.20 .x
21
21
22
22
- name : golangci-lint
23
23
24
24
with :
25
- version : v1.52
25
+ version : v1.53
Original file line number Diff line number Diff line change 17
17
- name : Set up Go
18
18
uses : actions/setup-go@v4
19
19
with :
20
- go-version : 1.19 .x
20
+ go-version : 1.20 .x
21
21
- name : go test
22
22
run : go test -v ./...
23
23
core-test :
Original file line number Diff line number Diff line change 1
1
linters-settings :
2
+ depguard :
3
+ rules :
4
+ main :
5
+ files :
6
+ - " !**/internal/**/*.go"
7
+ - " !$test"
8
+ allow :
9
+ - $gostd
10
+ - " github.com/editorconfig/editorconfig-core-go/v2"
11
+ - " github.com/hashicorp/go-multierror"
12
+ deny : []
13
+ internal :
14
+ files :
15
+ - " **/internal/**/*.go"
16
+ - " !$test"
17
+ allow :
18
+ - $gostd
19
+ - " github.com/google/go-cmp"
2
20
gci :
3
21
sections :
4
22
- standard
Original file line number Diff line number Diff line change @@ -17,14 +17,14 @@ import (
17
17
type Definition struct {
18
18
Selector string `ini:"-" json:"-"`
19
19
20
- Charset string `ini:"charset" json:"charset,omitempty"`
20
+ Charset string `ini:"charset" json:"charset,omitempty"`
21
21
IndentStyle string `ini:"indent_style" json:"indent_style,omitempty"`
22
- IndentSize string `ini:"indent_size" json:"indent_size,omitempty"`
23
- TabWidth int `ini:"-" json:"-"`
24
- EndOfLine string `ini:"end_of_line" json:"end_of_line,omitempty"`
25
- TrimTrailingWhitespace * bool `ini:"-" json:"-"`
26
- InsertFinalNewline * bool `ini:"-" json:"-"`
27
- Raw map [string ]string `ini:"-" json:"-"`
22
+ IndentSize string `ini:"indent_size" json:"indent_size,omitempty"`
23
+ TabWidth int `ini:"-" json:"-"`
24
+ EndOfLine string `ini:"end_of_line" json:"end_of_line,omitempty"`
25
+ TrimTrailingWhitespace * bool `ini:"-" json:"-"`
26
+ InsertFinalNewline * bool `ini:"-" json:"-"`
27
+ Raw map [string ]string `ini:"-" json:"-"`
28
28
version string
29
29
}
30
30
You can’t perform that action at this time.
0 commit comments