Skip to content

Commit

Permalink
chore(ci): bump golangci-lint to 1.53 (#166)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoan Blanc <[email protected]>
  • Loading branch information
greut authored Aug 9, 2023
1 parent d17d599 commit 83a3feb
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x

- name: golangci-lint
uses: golangci/[email protected]
with:
version: v1.52
version: v1.53
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19.x
go-version: 1.20.x
- name: go test
run: go test -v ./...
core-test:
Expand Down
18 changes: 18 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
linters-settings:
depguard:
rules:
main:
files:
- "!**/internal/**/*.go"
- "!$test"
allow:
- $gostd
- "github.com/editorconfig/editorconfig-core-go/v2"
- "github.com/hashicorp/go-multierror"
deny: []
internal:
files:
- "**/internal/**/*.go"
- "!$test"
allow:
- $gostd
- "github.com/google/go-cmp"
gci:
sections:
- standard
Expand Down
14 changes: 7 additions & 7 deletions definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ import (
type Definition struct {
Selector string `ini:"-" json:"-"`

Charset string `ini:"charset" json:"charset,omitempty"`
Charset string `ini:"charset" json:"charset,omitempty"`
IndentStyle string `ini:"indent_style" json:"indent_style,omitempty"`
IndentSize string `ini:"indent_size" json:"indent_size,omitempty"`
TabWidth int `ini:"-" json:"-"`
EndOfLine string `ini:"end_of_line" json:"end_of_line,omitempty"`
TrimTrailingWhitespace *bool `ini:"-" json:"-"`
InsertFinalNewline *bool `ini:"-" json:"-"`
Raw map[string]string `ini:"-" json:"-"`
IndentSize string `ini:"indent_size" json:"indent_size,omitempty"`
TabWidth int `ini:"-" json:"-"`
EndOfLine string `ini:"end_of_line" json:"end_of_line,omitempty"`
TrimTrailingWhitespace *bool `ini:"-" json:"-"`
InsertFinalNewline *bool `ini:"-" json:"-"`
Raw map[string]string `ini:"-" json:"-"`
version string
}

Expand Down

0 comments on commit 83a3feb

Please sign in to comment.