-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 untypedconst linter #3527
base: master
Are you sure you want to change the base?
Conversation
e20c62e
to
f1023ca
Compare
In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements. Pull Request Description
Linter
The Linter Tests Inside Golangci-lint
|
Is there anything I can do to get this reviewed? Friendly ping towards @ldez :) |
I really think this is a great addition to the project. I use the linter on quite a few projects already and it has proven to be super helpful. Is there anything I could do to get this merged? |
@leonklingele could you please resolve conflicts and update the PR according to the #3527 (comment)? |
f1023ca
to
11d633c
Compare
Updated, ptal. Upstream has made some changes to comply with our requirements since: jiftechnify/untypedconst#1 (comment) 🥳 |
@leonklingele could you address the point regarding "The Linter Tests Inside Golangci-lint: They must have at least one std lib import"? |
Implements golangci#3478.
11d633c
to
7f5f85f
Compare
Done 😊 EDIT: CI is failing, apparently: |
The
untypedconst
linter ensures that untyped constant expressions are not used as values of defined (= named) types.https://github.com/jiftechnify/untypedconst
Fixes #3478