Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ linters:
- misspell # detect commonly misspelled words
- nlreturn # check for missing return statements in functions
- whitespace # check for whitespace issues
settings:
errcheck:
exclude-functions:
- fmt.Fprint
- fmt.Fprintf
- fmt.Fprintln
Comment on lines +14 to +18
Copy link

Copilot AI Mar 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

linters.settings.errcheck.exclude-functions excludes all fmt.Fprint/Fprintf/Fprintln calls from errcheck across the entire codebase, which can hide real write errors (e.g., writing to files, network connections, or custom io.Writers). Prefer keeping errcheck enabled for fmt.* and either handle the returned error or add targeted //nolint:errcheck on the specific CLI-output calls where ignoring the error is intentional; alternatively, scope the exclusion to specific files/packages if golangci-lint v2 supports that.

Suggested change
errcheck:
exclude-functions:
- fmt.Fprint
- fmt.Fprintf
- fmt.Fprintln
errcheck: {}

Copilot uses AI. Check for mistakes.

issues:
fix: false # use `golangci-lint run --fix` to automatically fix some of the issues
1 change: 1 addition & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,4 @@ The CLI exposes everything as `transfer`. Do not rename backend routes.
- `.retyc/` in CWD is gitignored (dev token/config should not be committed)
- `SilenceUsage: true` + `SilenceErrors: true` on rootCmd — errors printed once by `RunE`, not by cobra
- No auto-commit
- Always perform linting with `make lint-fix` after editing code (uses `golangci-lint` with `--fix` to auto-apply simple fixes)
1 change: 0 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"github.com/spf13/viper"
)


var (
cfgFile string
debug bool
Expand Down
Loading
Loading