Skip to content

Commit

Permalink
chore(cli): update golangci and fix new issues
Browse files Browse the repository at this point in the history
  • Loading branch information
dudustri authored and jfeodor committed Jun 6, 2024
1 parent 7366888 commit 5599f57
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- name: Lint (golangci-lint)
uses: golangci/golangci-lint-action@v4
with:
version: v1.56.2
version: v1.59.0
working-directory: cli
args: --config=../.golangci.yml --verbose
- name: Install gofumpt
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linters-settings:
linters:
enable:
- gocritic
- gomnd
- mnd
- misspell
- nlreturn
- perfsprint
Expand Down
2 changes: 1 addition & 1 deletion cli/cmd/log/log_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func printVerbose(out io.Writer, entry LogEntry, timestamps, verbose bool) {
}

if _, err := out.Write([]byte(logMsg)); err != nil {
slog.Error("Error writing message", err)
slog.Error("Error writing message", slog.String("error", err.Error()))
}
}

Expand Down
4 changes: 2 additions & 2 deletions cli/dotenv/dotenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func parse(content []byte) map[string]string {
envLine = envLine[:commentIdx]
}

keyvalue := strings.SplitN(envLine, "=", 2) // nolint: gomnd
if len(keyvalue) != 2 { // nolint: gomnd
keyvalue := strings.SplitN(envLine, "=", 2) // nolint: mnd
if len(keyvalue) != 2 { // nolint: mnd
continue
}

Expand Down

0 comments on commit 5599f57

Please sign in to comment.