Skip to content

Commit

Permalink
chore: Bump golangci-lint to v1.44.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Jan 26, 2022
1 parent f0de321 commit bb6e061
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
AGE_VERSION: 1.0.0
GO_VERSION: 1.17.6
GOFUMPT_VERSION: 0.2.1
GOLANGCI_LINT_VERSION: 1.43.0
GOLANGCI_LINT_VERSION: 1.44.0
jobs:
changes:
runs-on: ubuntu-20.04
Expand Down
18 changes: 18 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ linters:
- bodyclose
- contextcheck
- deadcode
- decorder
- depguard
- dogsled
- dupl
- durationcheck
- errcheck
- errchkjson
- errname
- errorlint
- exportloopref
Expand All @@ -31,6 +33,7 @@ linters:
- ifshort
- importas
- ineffassign
- ireturn
- lll
- makezero
- misspell
Expand Down Expand Up @@ -69,6 +72,7 @@ linters:
- godox
- goheader
- gomnd
- maintidx
- maligned
- nakedret
- nestif
Expand All @@ -91,6 +95,20 @@ linters-settings:
extra-rules: true
goimports:
local-prefixes: github.com/twpayne/chezmoi
ireturn:
allow:
- anon
- empty
- error
- github.com/go-git/go-git/v5/plumbing/format/diff\.File
- github.com/go-git/go-git/v5/plumbing/format/diff\.Patch
- github.com/mitchellh/mapstructure\.DecodeHookFunc
- github.com/twpayne/chezmoi/v2/pkg/chezmoi\.ActualStateEntry
- github.com/twpayne/chezmoi/v2/pkg/chezmoi\.Encryption
- github.com/twpayne/chezmoi/v2/pkg/chezmoi\.SourceStateEntry
- github.com/twpayne/chezmoi/v2/pkg/chezmoi\.TargetStateEntry
- github.com/twpayne/go-vfs/v4\.FS
- stdlib
misspell:
locale: US

Expand Down
1 change: 1 addition & 0 deletions pkg/cmd/util_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ func enableVirtualTerminalProcessing(w io.Writer) error {
}

func fileInfoUID(info fs.FileInfo) int {
//nolint:forcetypeassert
return int(info.Sys().(*syscall.Stat_t).Uid)
}

0 comments on commit bb6e061

Please sign in to comment.