Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: add untypedconst linter#3527
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
base:master
Are you sure you want to change the base?
Conversation
leonklingele commented Jan 31, 2023 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
e20c62e to f1023caCompareldez commented Feb 1, 2023 • edited by alexandear
Loading Uh oh!
There was an error while loading. Please reload this page.
edited by alexandear
Uh oh!
There was an error while loading. Please reload this page.
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
|
leonklingele commented Mar 21, 2023
Is there anything I can do to get this reviewed? Friendly ping towards @ldez :) |
leonklingele commented Feb 7, 2024
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? |
alexandear commented Feb 12, 2024
@leonklingele could you please resolve conflicts and update the PR according to the #3527 (comment)? |
f1023ca to 11d633cCompareleonklingele commented Mar 21, 2024
Updated, ptal. Upstream has made some changes to comply with our requirements since: jiftechnify/untypedconst#1 (comment) 🥳 |
alexandear commented Mar 21, 2024
@leonklingele could you address the point regarding "The Linter Tests Inside Golangci-lint: They must have at least one std lib import"? |
11d633c to 7f5f85fCompareleonklingele commented Mar 23, 2024 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Done 😊 EDIT: CI is failing, apparently: |
This comment has been minimized.
This comment has been minimized.
7f5f85f to ad1ca78Compareleonklingele commented Feb 11, 2025
Updated this for the latest v1.64.0 release. Please have another look at it. I'd love to see this being a part of the project! 😃 |
leonklingele commented Mar 8, 2025
@ldez is there anything missing here to have this reviewed? Thank you! 😃 |
This comment was marked as off-topic.
This comment was marked as off-topic.
CLAassistant commented May 20, 2025
|
not-my-profile commented Nov 10, 2025
@leonklingele I'm also interested in this addition. Can you retarget this to main like @alexandear said (unsure why his comment is marked as off-topic) and sign the CLA? If you don't have the time I could also open a new PR with your changes but for this I think you'd still have to agree to the CLA. |
The
untypedconstlinter ensures that untyped constant expressions are not used as values of defined (= named) types.https://github.com/jiftechnify/untypedconst
Fixes#3478