-
Notifications
You must be signed in to change notification settings - Fork 12
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 <[email protected]> * cleanup forgotten commented out block Signed-off-by: Jordan Dubrick <[email protected]> * potential increase in code cov for resp body closing Signed-off-by: Jordan Dubrick <[email protected]> * fix lint error in test case Signed-off-by: Jordan Dubrick <[email protected]> * revert redundant code coverage changes Signed-off-by: Jordan Dubrick <[email protected]> * update defer statements and add test cases for them Signed-off-by: Jordan Dubrick <[email protected]> * add test cases for detector.go Signed-off-by: Jordan Dubrick <[email protected]> * add unit tests for DownloadDevfileTypesFromRegistry Signed-off-by: Jordan Dubrick <[email protected]> * consolidate closinghttp code to reduce redundancy Signed-off-by: Jordan Dubrick <[email protected]> * update testing for httpclose to use mock server Signed-off-by: Jordan Dubrick <[email protected]> * add more unit tests for code coverage Signed-off-by: Jordan Dubrick <[email protected]> * reintroduce err handling for closehttpresponsebody to combat warning Signed-off-by: Jordan Dubrick <[email protected]> * mock error for closing http body Signed-off-by: Jordan Dubrick <[email protected]> --------- Signed-off-by: Jordan Dubrick <[email protected]>
- 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.