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
feat: add uncalled linter #3348
Open
stevenh
wants to merge
9
commits into
golangci:master
Choose a base branch
from
stevenh:feat/rowserr
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+101
−0
Commits on Dec 17, 2022
-
Add rowserr a linter which checks for missing sql Rows.Err() calls that supports generics.
Configuration menu - View commit details
-
Copy full SHA for 450301f - Browse repository at this point
Copy the full SHA 450301fView commit details -
Refactor to use uncalled which is a generic version rowserr that uses a configuration to enable rules based checks instead of hard-coded for database/sql Rows.Err() checks only.
Configuration menu - View commit details
-
Copy full SHA for 4d19884 - Browse repository at this point
Copy the full SHA 4d19884View commit details -
chore: update to uncalled v0.4.0
Update to uncalled v0.4.0 to align with golangci-lint config style.
Configuration menu - View commit details
-
Copy full SHA for 3d69f3a - Browse repository at this point
Copy the full SHA 3d69f3aView commit details -
chore: update to uncalled v0.5.0
Update to uncalled v0.5.0 which adds net http response close checks.
Configuration menu - View commit details
-
Copy full SHA for 92f3c5f - Browse repository at this point
Copy the full SHA 92f3c5fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 711bf0a - Browse repository at this point
Copy the full SHA 711bf0aView commit details -
feat: update to uncalled v0.7.1
Update to uncalled v0.7.1 which adds more checkers, adds the ability to handle more called types including direct calls in defers. This adds the following new rules: - http Response.Body.Close() - context context.CancelFunc()
Configuration menu - View commit details
-
Copy full SHA for 2512497 - Browse repository at this point
Copy the full SHA 2512497View commit details -
Add default config, correct want and fix linter name.
Configuration menu - View commit details
-
Copy full SHA for a649a25 - Browse repository at this point
Copy the full SHA a649a25View commit details -
feat: update to v0.8.0 merge config
Update to v0.8.0 which adds merge config support. This improves compatibility with golangci-lint by allowing the internal rules to be applied and overridden with minimal configuration.
Configuration menu - View commit details
-
Copy full SHA for 5a26360 - Browse repository at this point
Copy the full SHA 5a26360View commit details -
chore: update to uncalled v0.8.1
Update uncalled to v0.8.1 which addresses a config data race.
Configuration menu - View commit details
-
Copy full SHA for 602314d - Browse repository at this point
Copy the full SHA 602314dView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.