Skip to content

Conversation

@suzuki-shunsuke
Copy link
Owner

@suzuki-shunsuke suzuki-shunsuke commented Dec 7, 2025

Summary

  • Use strings.Cut instead of strings.Index in parseVarOpts
  • Use strings.CutPrefix instead of TrimPrefix in parseVarEnvs
  • Disable omitzero check in modernize linter (jsonschema library needs omitempty)
  • Use slices.Contains instead of manual loop in config_test.go
  • Remove unused //nolint:gosec directives in comment.go
  • Use maps.Copy instead of manual loop in template.go
  • Use strings.Builder instead of string concatenation in loop

Note

The omitzero lint check is disabled because invopop/jsonschema doesn't support omitzero yet. See invopop/jsonschema#161

🤖 Generated with Claude Code

suzuki-shunsuke and others added 2 commits December 7, 2025 10:18
- Use strings.Cut instead of strings.Index in parseVarOpts
- Use strings.CutPrefix instead of TrimPrefix in parseVarEnvs
- Add omitzero to nested struct fields in config.go
- Use slices.Contains instead of manual loop in config_test.go
- Remove unused //nolint:gosec directives in comment.go
- Use maps.Copy instead of manual loop in template.go
- Use strings.Builder instead of string concatenation in loop

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Use strings.Cut instead of strings.Index in parseVarOpts
- Use strings.CutPrefix instead of TrimPrefix in parseVarEnvs
- Disable omitzero check in modernize linter (jsonschema library needs omitempty)
- Use slices.Contains instead of manual loop in config_test.go
- Remove unused //nolint:gosec directives in comment.go
- Use maps.Copy instead of manual loop in template.go
- Use strings.Builder instead of string concatenation in loop

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@suzuki-shunsuke suzuki-shunsuke merged commit 8a7c679 into main Dec 7, 2025
12 checks passed
@suzuki-shunsuke suzuki-shunsuke deleted the fix/lint-modernize branch December 7, 2025 01:35
@suzuki-shunsuke suzuki-shunsuke added this to the v4.14.13 milestone Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants