-
-
Notifications
You must be signed in to change notification settings - Fork 214
chore: enable dupword; fix appeared lint issues #598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: enable dupword; fix appeared lint issues #598
Conversation
WalkthroughThe changes involve modifications to the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (3)
.golangci.yml (1)
Line range hint
1-14
: Consider documenting the reason for disabling 'errcheck'The overall linter configuration looks good and well-balanced. However, it might be helpful to add a comment explaining why 'errcheck' is disabled. Error checking is generally important in Go, so documenting the reasoning behind this decision would provide valuable context for other developers.
Consider adding a comment like this:
linters: disable: # TODO: Document why errcheck is disabled. For example: # - errcheck # Disabled due to [specific reason] - errcheck enable: # ... (rest of the configuration)huma.go (2)
333-333
: Consider revising the comment for clarityThe comment at line 333 reads
// like the params fields above.
The word "params" is already plural and refers to parameters, so adding "fields" may be redundant. Consider simplifying the comment to improve readability.Apply this diff to revise the comment:
- // like the params fields above. + // like the params above.
1330-1330
: Add a subject to the comment for completenessThe comment at line 1330 is
// is a value or pointer resolver type.
It lacks a clear subject, making it sound incomplete. Adding "It" at the beginning would enhance clarity.Apply this diff to revise the comment:
- // is a value or pointer resolver type. + // It is a value or pointer resolver type.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (2)
- .golangci.yml (1 hunks)
- huma.go (2 hunks)
🔇 Additional comments (1)
.golangci.yml (1)
5-5
: LGTM! The 'dupword' linter has been successfully added.This change aligns with the PR objective and should help improve code quality by catching unintentional word repetitions in comments and strings.
To ensure this change doesn't introduce an overwhelming number of new lint issues, it would be beneficial to run the linter on the entire codebase. This will help identify the scope of necessary fixes. You can use the following command:
If the number of new issues is manageable, consider addressing them in this PR. Otherwise, you might want to create separate issues or PRs to tackle them systematically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😄 thanks!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #598 +/- ##
=======================================
Coverage 92.80% 92.80%
=======================================
Files 22 22
Lines 3903 3903
=======================================
Hits 3622 3622
Misses 236 236
Partials 45 45 ☔ View full report in Codecov by Sentry. |
The PR enables
dupword
linter in golangci-lint config and fixes detected lint issues.Summary by CodeRabbit
New Features
dupword
linter for enhanced code quality checks.Bug Fixes
Documentation