-
Notifications
You must be signed in to change notification settings - Fork 523
Implement partitiontest_linter #2635
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
Conversation
algorandskiy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some coding style remarks. Plus I do not think we need to commit compiled binary here
cmd/partitiontest_linter/analyzer/testdata/analyzer_testdata_test.go
Outdated
Show resolved
Hide resolved
cmd/partitiontest_linter/analyzer/testdata/analyzer_testdata_test.go
Outdated
Show resolved
Hide resolved
|
|
algorandskiy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks much better, but still need to figure out what to do with the binary
so i built it on my machine for now. But depending on where we run it, we should be able to build it there as needed. We have a few options, but open to suggestions too:
|
|
IMO I don't think we should include a binary .so file in the repo. We can just build it when we need it. |
Codecov Report
@@ Coverage Diff @@
## master #2635 +/- ##
==========================================
- Coverage 47.00% 46.98% -0.03%
==========================================
Files 348 348
Lines 55717 55717
==========================================
- Hits 26188 26176 -12
- Misses 26588 26597 +9
- Partials 2941 2944 +3
Continue to review full report at Codecov.
|
|
removed binary. To build it i did: |
cce
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, after we merge this we can pull it into #2647 and figure out how to set up different golangci-lint configs for CI vs local, required vs suggested, etc.
Summary
Adding linter for partitiontest (as well as tests for the linter)
Test Plan
Ran tests from VCS and from terminal using manual way in
cmd/partitiontest_linter:go test -vOutput:
As well as run the linter manually in
cmd/partitiontest_linter/:go run plugin/plugin.go -- ./...from root of repo.Expected output is a list of files and functions with exit error code 3:
And finally ran them using
golangci-lint runfrom root of repo: