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

errorf improvements #36

Open
ccoVeille opened this issue Nov 20, 2024 · 5 comments
Open

errorf improvements #36

ccoVeille opened this issue Nov 20, 2024 · 5 comments

Comments

@ccoVeille
Copy link

ccoVeille commented Nov 20, 2024

I'm still surprised by the ability of people to create code

Some are using fmt.Errorf("%w", ErrSentinel)

These could somehow be addressed with code close to sprint1 with fmt.Errorf, but I think it should be in errorf

Originally posted by @ccoVeille in mgechev/revive#1142 (comment)

@catenacyber
Copy link
Owner

Indeed, fmt.Errorf("%s", "whatever") is not tested and seems not handled.
Will you work on this ?

@catenacyber
Copy link
Owner

But not every linter agrees it seems : go-critic/go-critic#1381

@ccoVeille
Copy link
Author

ccoVeille commented Nov 21, 2024

The fact gocritic doesn't support it, allow you to add it in your own lib 😅

@ccoVeille
Copy link
Author

ccoVeille commented Nov 21, 2024

@ccoVeille
Copy link
Author

Will you work on this ?

Not yet, it was more a message in the bottle, to add it later.

Anyone can work on it

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

No branches or pull requests

2 participants