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

lint: Update depguard configuration #507

Merged
merged 4 commits into from
Jan 27, 2024

Conversation

mjtrangoni
Copy link
Contributor

Hi @databus23 @mumoshu,

This update the depguard golangci-lint configuration to the latest state, and update golangi-lint to 1.55.1 as well.

At the same time, this configuration update pointed out the usage of github.com/pkg/errors.

    cmd/upgrade.go:14:2: import 'github.com/pkg/errors' is not allowed from list 'main': Should be replaced by standard lib errors package (depguard)
            "github.com/pkg/errors"
            ^

and I fixed it in a separated commit.

Thank you!

Mario

@yxxhero
Copy link
Collaborator

yxxhero commented Jan 4, 2024

@mjtrangoni please rebase this PR.

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
…package.

See,
cmd/upgrade.go:14:2: import 'github.com/pkg/errors' is not allowed from list 'main': Should be replaced by standard lib errors package (depguard)
        "github.com/pkg/errors"
        ^

Signed-off-by: Mario Trangoni <mjtrangoni@gmail.com>
@mjtrangoni
Copy link
Contributor Author

@yxxhero done. Thank you!

@yxxhero
Copy link
Collaborator

yxxhero commented Jan 13, 2024

@mumoshu WDYT?

Copy link
Collaborator

@mumoshu mumoshu left a comment

Choose a reason for hiding this comment

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

Thanks for your patience! Just fixed the conflict and reviewed this.
Had only one comment so this can be merged as soon as that's answered/resolved!

.golangci.yaml Outdated Show resolved Hide resolved
@yxxhero yxxhero merged commit b411963 into databus23:master Jan 27, 2024
9 checks passed
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.

3 participants