-
Notifications
You must be signed in to change notification settings - Fork 274
Golang errors pkg #4904
Golang errors pkg #4904
Conversation
1c3c523
to
348d1bf
Compare
Signed-off-by: Allen Leigh <allenlsy@gmail.com>
7771d79
to
0986241
Compare
Codecov Report
@@ Coverage Diff @@
## main #4904 +/- ##
==========================================
- Coverage 68.64% 68.64% -0.01%
==========================================
Files 220 220
Lines 15938 15941 +3
==========================================
+ Hits 10941 10942 +1
- Misses 4945 4947 +2
Partials 52 52
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Big fan of this change, thanks for doing this! Just as an FYI, this PR will result in linting errors due to errors starting with a capital letter, but contributors can make that change as they work through the code
@keithmattix, where do you see those linting errors? Doesn't look like they are getting surfaced with the CI run. But if we will introduce linting errors than my vote would be to go with fixing them in this same PR so we don't have to ignore failures. |
@trstringer apologies, I meant warnings. They come from go-staticcheck (at least in VSCode) |
@keithmattix From what I see, those lint errors are from the "Unchanged files with check annotations" section, not because of capitalization. I remember previously we can ignore that. I think this is a new feature in PR. I will fix the errors. But let's confirm if we want to enable this feature. |
To clarify, I'm not suggesting you fix the capitalization. I think the linting errors are safe to ignore for now as well |
0986241
to
a9479a0
Compare
d56941a
to
fe638ec
Compare
Signed-off-by: Allen Leigh <allenlsy@gmail.com>
fe638ec
to
386d41b
Compare
* chore(cmd/cli): Reduce cyclomatic complexity of uninstall command (#4825) * chore(cmd/cli): Reduce cyclomatic complexity of uninstall command Separate code into functions to reduce the cyclomatic complexity And adds unit tests to functions created Helps unblock #4555 Signed-off-by: Shalier Xia <shalierxia@microsoft.com> (cherry picked from commit d5d3a25) * Golang errors pkg (#4904) This PR partially resolves #4524 * Removes "github.com/pkg/errors" package from the repo * Wrap errors wherever possible rather than using the string format of the error as part of the message Signed-off-by: Allen Leigh <allenlsy@gmail.com> (cherry picked from commit 8030047) * fix golints and security scan issues (#4915) fix golints and security for: 1. G112 (ReadHeaderTimeout) 2. prometheus client_go version pinned to bad version Signed-off-by: Sean Teeling <seanteeling@microsoft.com> (cherry picked from commit f768f64) * Fix lints by removing superfluous var type from var instantiation (#4917) Remove unnecessary var types during instantiation to fix lints Signed-off-by: Sean Teeling <seanteeling@microsoft.com> (cherry picked from commit 9e9f712) Co-authored-by: Shalier Xia <69616256+shalier@users.noreply.github.com> Co-authored-by: allenlsy <allenlsy@gmail.com> Co-authored-by: steeling <seanteeling@microsoft.com>
Description:
This PR partially resolves #4524
Testing done:
No functionality changes in this PR. Unit test passes.
Affected area:
Please answer the following questions with yes/no.
No
No
Not required