-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix findings from staticcheck (#897)
* fix most issues from running staticcheck Signed-off-by: Sandor Szücs <[email protected]> * fix some low hanging fruits Signed-off-by: Sandor Szücs <[email protected]> * use tests in statickcheck, because of dependendencies that would not been found if dropped Signed-off-by: Sandor Szücs <[email protected]> * fix the rest of the missing staticcheck violations and add some checks to ignore Signed-off-by: Sandor Szücs <[email protected]> * remove leftovers from broken workaround Signed-off-by: Sandor Szücs <[email protected]> * add staticcheck to build via CDP Signed-off-by: Sandor Szücs <[email protected]> * fix additional staticcheck errors and reduce the ignored checkers Signed-off-by: Sandor Szücs <[email protected]> * remove comment Signed-off-by: Sandor Szücs <[email protected]> * use setRequestHeader() instead of appendRequestHeader for the Host headers * more linting fixes: - unnecessary type conversion - uint never less than 0 * fix linting after merge from master * install statickcheck in deps target to GOBIN and activate in travis CI trigger with precommit and check-precommit targets Signed-off-by: Sandor Szücs <[email protected]> * use GOPATH/bin and check vet first, then staticcheck and last run the tests to speeup the fail fast Signed-off-by: Sandor Szücs <[email protected]> * make staticcheck executable Signed-off-by: Sandor Szücs <[email protected]> * create GOPATH/bin and to debug output GOENV Signed-off-by: Sandor Szücs <[email protected]> * debug output GOENV Signed-off-by: Sandor Szücs <[email protected]>
- Loading branch information
Showing
63 changed files
with
247 additions
and
549 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,7 @@ type ( | |
) | ||
|
||
const ( | ||
none mediaType = iota | ||
stdin | ||
stdin mediaType = 1 + iota | ||
file | ||
etcd | ||
innkeeper | ||
|
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.