Skip to content
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

golangci-lint: add noctx, sqlclosecheck; rm redundant revive.toml #11362

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

jmank88
Copy link
Contributor

@jmank88 jmank88 commented Nov 22, 2023

This PR enables some new linters and removes an unused file.

Copy link
Contributor

I see that you haven't updated any CHANGELOG files. Would it make sense to do so?

Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@jmank88 jmank88 requested a review from a team November 22, 2023 12:20
vyzaldysanchez
vyzaldysanchez previously approved these changes Nov 22, 2023
@jmank88 jmank88 force-pushed the golangci-lint branch 3 times, most recently from 794fdb1 to a547b2f Compare December 8, 2023 16:04
@jmank88 jmank88 force-pushed the golangci-lint branch 9 times, most recently from eb99719 to 7fd68b9 Compare January 11, 2024 14:54
@jmank88 jmank88 marked this pull request as ready for review January 11, 2024 15:45
@jmank88 jmank88 requested review from vyzaldysanchez and a team January 11, 2024 15:45
@jmank88 jmank88 changed the title update golangci-lint rules; rm redundant revive.toml golangci-lint: add noctx, sqlclosecheck; rm redundant revive.toml Jan 11, 2024
@cl-sonarqube-production
Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 8.0% 8.05% Duplicated Lines (%) on New Code (is greater than 3%)

See analysis details on SonarQube

@@ -150,6 +150,7 @@ func (o *orm) CreateBridgeType(bt *BridgeType) error {
if err != nil {
return err
}
defer stmt.Close()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good catch

Copy link
Contributor

@krehermann krehermann left a comment

Choose a reason for hiding this comment

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

the no context check brings me a deep satisfaction. thanks!

@jmank88 jmank88 added this pull request to the merge queue Jan 11, 2024
Merged via the queue into develop with commit 3aa5e46 Jan 11, 2024
79 of 80 checks passed
@jmank88 jmank88 deleted the golangci-lint branch January 11, 2024 17:22
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.

4 participants