-
Notifications
You must be signed in to change notification settings - Fork 33
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
[TECHDEBT][Shared] Address legacy Run golangci-lint errors #295
Comments
@jessicadaugherty Can we include this in iteration 4? It's a lower priority, but it blocks us from enabling the autolinters |
@jessicadaugherty I'll do this (I don't know when iteration 4 is but can have it done this week). I find these errors annoying anyway so it'll be nice to get rid of em! Just to confirm - fix the errors from the |
Amazing, thanks @h5law! I assigned this out to you on DeWork. LOL iteration 4 was in like October or something so this was originally a priority backlog item that kept getting refactored. Agreed it would improve contributor QoL! Appreciate it.
Exactly! I'd take a look at the linked PR in "Origin Document" for more context on where we stumbled on this need. And, of course, lmk if you have any questions! |
Hey @h5law, thank you for looking into this! Here is a related thread for the existing "Cannot open: File exists" errors : golangci/golangci-lint-action#23 Basically, from what I understand, the packages are getting downloaded by |
Just wanted to provide some context to what @okdas mentioned. @h5law is working on enabling the golang CI linter by tending to ALL OF the issues it raises throughout the codebase. One of the many such issues is the fact that there is a ❌ when the The important to note is that this is a false positive. The file gets uploaded and there is no real issue. However, seeing a red X can cause confusion and lead to developers spending time looking in a place where there is no problem. The information Dima provided is a potential starting point to understand how/if we could resolve this as well. |
…) (#483) ## Description This PR addresses all the errors from running `golangci-lint run`. The errors which were genuine have been addressed and those that are `false positives` have been ignored with the relevant `//nolint:{linter}` comments with their required justifications. The `golangci-lint` github worklow has also been separated into a separate job and file with its own setup process which should counteract the `Cannot open file: File exists` errors ## Issue Fixes #295 ## Type of change Please mark the relevant option(s): - [ ] New feature, functionality or library - [ ] Bug fix - [x] Code health or cleanup - [ ] Major breaking change - [ ] Documentation - [ ] Other <!-- add details here if it a different type of change --> ## List of changes - Fix legacy issues from linter - Add comments to ignore false positives - Seperate `golanci-lint` into its own worklow ## Testing - [x] `make develop_test` - [x] [LocalNet](https://github.com/pokt-network/pocket/blob/main/docs/development/README.md) w/ all of the steps outlined in the `README` ## Required Checklist - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have tested my changes using the available tooling - [x] I have updated the corresponding CHANGELOG ### If Applicable Checklist - [ ] I have updated the corresponding README(s); local and/or global - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added, or updated, [mermaid.js](https://mermaid-js.github.io) diagrams in the corresponding README(s) - [ ] I have added, or updated, documentation and [mermaid.js](https://mermaid-js.github.io) diagrams in `shared/docs/*` if I updated `shared/*`README(s)
@bryanchriswhite is this helpful for documenting PR review standards like we discussed in the retro? |
Objective
Improve unit tests by addressing legacy linting errors
Origin Document
Raised by review of #235 (comment)
Goals
Deliverables
Non-goals / Non-deliverables
General issue deliverables
Creator: @jessicadaugherty
Co-Owners: @Olshansk
The text was updated successfully, but these errors were encountered: