-
Notifications
You must be signed in to change notification settings - Fork 126
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
chore: enhance golangci-lint with code complexity and other measures #484
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #484 +/- ##
==========================================
+ Coverage 59.68% 60.95% +1.26%
==========================================
Files 28 30 +2
Lines 2101 2177 +76
==========================================
+ Hits 1254 1327 +73
- Misses 743 745 +2
- Partials 104 105 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
Signed-off-by: Moritz Wiesinger <[email protected]> remove redundant newlines Signed-off-by: Moritz Wiesinger <[email protected]> remove code quality tools reporting Signed-off-by: Moritz Wiesinger <[email protected]> adjust funlen go linter Signed-off-by: Moritz Wiesinger <[email protected]> also trigger golangci-lint on pushes to main and maintenance branches Signed-off-by: Moritz Wiesinger <[email protected]> set up complexity and function length measure for golangci-lint Signed-off-by: Moritz Wiesinger <[email protected]> comment in stuff Signed-off-by: Moritz Wiesinger <[email protected]> more debugging Signed-off-by: Moritz Wiesinger <[email protected]> more debugging Signed-off-by: Moritz Wiesinger <[email protected]> debugging Signed-off-by: Moritz Wiesinger <[email protected]> remove trailing slashes Signed-off-by: Moritz Wiesinger <[email protected]> remove prefixes on coverage reports Signed-off-by: Moritz Wiesinger <[email protected]> even more trys Signed-off-by: Moritz Wiesinger <[email protected]> one more Signed-off-by: Moritz Wiesinger <[email protected]> another try... Signed-off-by: Moritz Wiesinger <[email protected]> fix coverage files in makefile Signed-off-by: Moritz Wiesinger <[email protected]> one more try Signed-off-by: Moritz Wiesinger <[email protected]> remove lines that are not needed again Signed-off-by: Moritz Wiesinger <[email protected]> remove unneeded lines from coverage reports Signed-off-by: Moritz Wiesinger <[email protected]> comment out stuff Signed-off-by: Moritz Wiesinger <[email protected]> upload to code climate as well Signed-off-by: Moritz Wiesinger <[email protected]> adjust path Signed-off-by: Moritz Wiesinger <[email protected]> set up token correctly Signed-off-by: Moritz Wiesinger <[email protected]> rename Signed-off-by: Moritz Wiesinger <[email protected]> change coverage reporting Signed-off-by: Moritz Wiesinger <[email protected]> remove bug Signed-off-by: Moritz Wiesinger <[email protected]> report coverage to codacy Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
a7cb2f5
to
2babde5
Compare
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
looks good, but is there maybe a possibility to disable the checks on the *_test.go files ? Now we have errors that some test functions are too long, which is completely ok for us, as we are mostly using table tests |
Signed-off-by: Moritz Wiesinger <[email protected]>
Co-authored-by: odubajDT <[email protected]> Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
427df59
Signed-off-by: Moritz Wiesinger <[email protected]>
d93a4e6
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Signed-off-by: Moritz Wiesinger <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
This PR
cyclop
: Measures and limits cyclomatic complexitygocognit
: Measures and limits cognitive complexityfunlen
: Limits function line and statement lengthtest
commands to return aggregated and fully syntactically correct coverage reportsNotes:
Closes #462
Linter issues will be fixed in #485.