-
Notifications
You must be signed in to change notification settings - Fork 122
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 <moritz.wiesinger@dynatrace.com> remove redundant newlines Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> remove code quality tools reporting Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> adjust funlen go linter Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> also trigger golangci-lint on pushes to main and maintenance branches Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> set up complexity and function length measure for golangci-lint Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> comment in stuff Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> more debugging Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> more debugging Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> debugging Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> remove trailing slashes Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> remove prefixes on coverage reports Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> even more trys Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> one more Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> another try... Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> fix coverage files in makefile Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> one more try Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> remove lines that are not needed again Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> remove unneeded lines from coverage reports Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> comment out stuff Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> upload to code climate as well Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> adjust path Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> set up token correctly Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> rename Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> change coverage reporting Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> remove bug Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com> report coverage to codacy Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
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 <moritz.wiesinger@dynatrace.com>
Co-authored-by: odubajDT <93584209+odubajDT@users.noreply.github.com> Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
427df59
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
d93a4e6
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
Signed-off-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
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.