-
Notifications
You must be signed in to change notification settings - Fork 14
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
Enable all default golangci-lint linters and fix issues related #37
Conversation
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #37 +/- ##
==========================================
+ Coverage 70.49% 73.12% +2.63%
==========================================
Files 11 11
Lines 1566 1563 -3
==========================================
+ Hits 1104 1143 +39
+ Misses 395 351 -44
- Partials 67 69 +2 ☔ View full report in Codecov by Sentry. |
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.
In general it looks good to me :) It would be nice if we could add some test cases for the coverage report that is failing.
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
Sounds good. Currently working on trying to increase code coverage for these failing portions, just have to familiarize myself with Go testing |
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
Could you try to add some test cases for the |
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
Signed-off-by: Jordan Dubrick <[email protected]>
@thepetk I added more tests and was able to increase the patch code coverage as a result. From what I was reading online it seemed that a majority of people ignore the err that could arise from |
Signed-off-by: Jordan Dubrick <[email protected]>
Last commit fixes our issue as I was able to mock the function throwing an error. |
Very complicated failure from the codecov I have to say. I think the addition we make here with the separate functions will let us keep the coverage higher in the future, so is definitely a good addition. |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Jdubrick, thepetk The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What does this PR do?
This PR enables the default linters that were disabled in a prior issue and fixes all of the issues presented by the default linters.
Which issue(s) does this PR fix
resolves devfile/api#1302
PR acceptance criteria
make lint
are dealt with andmake lint
passesmake test
How to test changes / Special notes to the reviewer
You can test these changes by first running
make lint
to verify there are no more lint errors being reported. You can also runmake test
to ensure all unit tests also pass with the changes.