-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable all default golangci-lint linters and fix issues related (#37)
* turn on default linters and fix warnings/errors as a result Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * cleanup forgotten commented out block Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * potential increase in code cov for resp body closing Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * fix lint error in test case Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * revert redundant code coverage changes Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * update defer statements and add test cases for them Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * add test cases for detector.go Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * add unit tests for DownloadDevfileTypesFromRegistry Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * consolidate closinghttp code to reduce redundancy Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * update testing for httpclose to use mock server Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * add more unit tests for code coverage Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * reintroduce err handling for closehttpresponsebody to combat warning Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> * mock error for closing http body Signed-off-by: Jordan Dubrick <jdubrick@redhat.com> --------- Signed-off-by: Jordan Dubrick <jdubrick@redhat.com>
- Loading branch information
Showing
16 changed files
with
239 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.