Skip to content

Commit

Permalink
Bump golangci-lint to version 1.36.0
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Feb 4, 2021
1 parent 06047be commit 940b563
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.35.2
version: v1.36.0
- name: ShellCheck
uses: ludeeus/action-shellcheck@1.0.0
with:
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ linters:
- gosec
- gosimple
- govet
- ifshort
- ineffassign
- interfacer
- makezero
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GOLANGCI_LINT_VERSION=1.35.2
GOLANGCI_LINT_VERSION=1.36.0

.PHONY: default
default: generate build run test lint format
Expand Down
1 change: 1 addition & 0 deletions chezmoi2/cmd/doctorcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ func (c *Config) runDoctorCmd(cmd *cobra.Command, args []string) error {
},
}

//nolint:ifshort
worstResult := checkOK
resultWriter := tabwriter.NewWriter(c.stdout, 3, 0, 3, ' ', 0)
fmt.Fprint(resultWriter, "RESULT\tCHECK\tMESSAGE\n")
Expand Down
3 changes: 1 addition & 2 deletions cmd/secretkeepassxc.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,7 @@ func (c *Config) keePassXCAttributeFunc(entry, attribute string) string {
}

func readPassword(prompt string) (pw []byte, err error) {
fd := int(os.Stdin.Fd())
if term.IsTerminal(fd) {
if fd := int(os.Stdin.Fd()); term.IsTerminal(fd) {
fmt.Print(prompt)
pw, err = term.ReadPassword(fd)
fmt.Println()
Expand Down

0 comments on commit 940b563

Please sign in to comment.