You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds readerstringconv, which reports strings.NewReader(string(b)) (b is []byte) and bytes.NewReader([]byte(s)) (s is string). These copy the data only to choose a reader type; use bytes.NewReader(b) or strings.NewReader(s) instead.
Evidence: the code scan found existing instances such as strings.NewReader(string(data)) in pkg/cli/experiments_fetch.go and pkg/cli/secret_set_command.go. The discussion miner was not run in this run.
Registered in pkg/linters/registry.go and spec_test.go. Docs updated (README, doc.go count). Added to notYetEnforced pending an enforcement audit. go test passes for pkg/linters and pkg/linters/readerstringconv. The full ./pkg/linters/... run was not confirmed. cmd/linters/main.go is unchanged, because analyzers register through registry.go.
Note
Protected files
This patch modifies protected files, which may affect project dependencies, CI/CD pipelines, or agent behaviour.
Protected files
README.md
To route changes like this to a review issue instead of blocking, configure protected-files: fallback-to-issue in your workflow configuration.
Activity