You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: .golangci.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ linters:
18
18
# Default: false
19
19
# TODO(rm3l): all default linters are disabled in the context of https://github.com/devfile/api/issues/1257 (to just enforce that io/ioutil is not used anymore),
20
20
# but we should think about enabling all the default linters and fix the issues reported.
21
-
disable-all: true
21
+
disable-all: false
22
22
enable:
23
23
# Go linter that checks if package imports are in a list of acceptable packages
0 commit comments