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

[ci] add nonamedreturns linter #703

Merged
merged 3 commits into from
Dec 19, 2024
Merged

[ci] add nonamedreturns linter #703

merged 3 commits into from
Dec 19, 2024

Conversation

miklezzzz
Copy link
Contributor

@miklezzzz miklezzzz commented Dec 18, 2024

Overview

Adds nonamedreturns linter.

What this PR does / why we need it

Special notes for your reviewer

Signed-off-by: Mikhail Scherba <[email protected]>
@miklezzzz miklezzzz added the enhancement New feature or request label Dec 18, 2024
@miklezzzz miklezzzz self-assigned this Dec 18, 2024
Signed-off-by: Mikhail Scherba <[email protected]>
@miklezzzz miklezzzz requested a review from juev December 18, 2024 13:38
@miklezzzz miklezzzz marked this pull request as ready for review December 18, 2024 13:38
@@ -201,7 +201,7 @@ func (hm *Manager) loadHook(hookPath string) (hook *Hook, err error) {
hook.WithTmpDir(hm.TempDir())

if hook.Config == nil {
return nil, fmt.Errorf("hook %q is marked as executable but doesn't contain config section", hook.Path)
return nil, fmt.Errorf("hook %s is marked as executable but doesn't contain config section", hook.Path)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we changing %q to %s here? Thus, the hook name will now be without quotes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right

Signed-off-by: Mikhail Scherba <[email protected]>
@yalosev yalosev merged commit ad62038 into main Dec 19, 2024
8 checks passed
@yalosev yalosev deleted the no-named-returns branch December 19, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants