-
Notifications
You must be signed in to change notification settings - Fork 373
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
gno-specific code linters #850
Comments
This PR introduces a new `gno lint` subcommand, currently focused on checking for the presence of a `gno.mod` file in a package, and it's linked with the CI. In the future, we plan to expand `gno lint` to support additional checks, enhancing its utility for developers and CI integration. Addresses #850 Addresses #927 Related with #965 (comment) Signed-off-by: Manfred Touron <[email protected]> Co-authored-by: Miloš Živković <[email protected]>
This PR introduces a new `gno lint` subcommand, currently focused on checking for the presence of a `gno.mod` file in a package, and it's linked with the CI. In the future, we plan to expand `gno lint` to support additional checks, enhancing its utility for developers and CI integration. Addresses gnolang#850 Addresses gnolang#927 Related with gnolang#965 (comment) Signed-off-by: Manfred Touron <[email protected]> Co-authored-by: Miloš Živković <[email protected]>
Type checking PR in progress: #1730 |
cc @notJoon |
Although it's not revive, I'm continuing to create a lint tool based on gnolangci-lint to support most of linting rules. Recently I've been implementing gno-specific rules and other linting functionalities, like auto fix. So, in my personal opinion, I think it might be good to move this entirely to the gno side and then integrate with previous tools. What do you think about this? |
If I'm understanding correctly, you're suggesting migrating this linter to the gnolang org? |
@zivkovicmilos |
Makes sense as long as it helps Gno builders. |
Kick-starting off this issue off of this discussion. A linter is definitely something we'll want, adding some more checks on top of the kind already done by go linters such as revive.
While I don't necessarily agree about the related discussion, I think we can start collecting ideas about what should be added to a future linter.
One first idea, for the current state of things, is that of not having a top-level variable declaration for a map as it is not persistent.
The text was updated successfully, but these errors were encountered: