-
-
Notifications
You must be signed in to change notification settings - Fork 156
Linter: Fix dynamic errors and function complexity #613
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
Linter: Fix dynamic errors and function complexity #613
Conversation
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.
cool
Codecov Report
@@ Coverage Diff @@
## master #613 +/- ##
=========================================
- Coverage 2.97% 2.97% -0.01%
=========================================
Files 35 35
Lines 3292 3296 +4
=========================================
Hits 98 98
- Misses 3193 3197 +4
Partials 1 1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
|
I have no idea how to read those Codecov things. I never use it.
Is it actually useful? |
Error texts were also slightly modified so we could just use one error instead of defining several. Complexity was fixed by replacing a 2-iteration loop with one function call (removing spaces from a string).
|
idk, I rememember that I was playing with this codecov stuff some time ago. |
|
👍 I would suggest disabling codecov then. It's just noise. I would also suggest enabling "Test and coverage" and "golangci-lint" as required to pass now. |
I'd turn off only these comments, but idk how 😄
"Test and coverage" is just for codecov, but golangci-lint could be required ofc ;-) |
Ah - right. That is the codecov. 😄 I though I saw some tests in there that were being run, but alas there are none.
So I think we just need to remove coverage.yaml from the workflows? |
Yes. They don't make it very easy. Ah here it is: Require status checks to pass before merging in the Settings/Branches/Branch protection rules. Looks like you have to list them all? Not a great UX! |
|
so its just necessary to add golangci-lint there, since build.yaml is |
|
From what I read, if you turn it on, you need to add them all (build / Building (ubuntu-latest), build / Building (ubuntu-latest), build / Building (ubuntu-latest), and golangci-lint / Lint). When I look at another one of my repos, it explicitly lists each item in the matrix... |
Error texts were also slightly modified so we could just use one error instead of defining several.
Complexity was fixed by replacing a 2-iteration loop with one function call (removing spaces from a string).