Skip to content

Commit 83a3feb

Browse files
authored
chore(ci): bump golangci-lint to 1.53 (#166)
Signed-off-by: Yoan Blanc <[email protected]>
1 parent d17d599 commit 83a3feb

File tree

4 files changed

+28
-10
lines changed

4 files changed

+28
-10
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: 1.19.x
20+
go-version: 1.20.x
2121

2222
- name: golangci-lint
2323
uses: golangci/[email protected]
2424
with:
25-
version: v1.52
25+
version: v1.53

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v4
1919
with:
20-
go-version: 1.19.x
20+
go-version: 1.20.x
2121
- name: go test
2222
run: go test -v ./...
2323
core-test:

.golangci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
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"
220
gci:
321
sections:
422
- standard

definition.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ import (
1717
type Definition struct {
1818
Selector string `ini:"-" json:"-"`
1919

20-
Charset string `ini:"charset" json:"charset,omitempty"`
20+
Charset string `ini:"charset" json:"charset,omitempty"`
2121
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:"-"`
2828
version string
2929
}
3030

0 commit comments

Comments
 (0)