-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: enable more linters fix many issues
Enable many golangci-linters that seem somewhat useful and don't show ridiculous numbers of issues out of the gate. - update golangci-lint to latest 1.43.0 - consistent import ordering enforced by gci - nilnil and nilerr linters actually found various bugs where a nil error was returned after detecting an error. - fix issues in bwtester and ssh so that exclude-rules can be removed: - bwtester: requires removing the dot-import of the bwtestlib. For this, renamed it to shorter `bwtest` and renamed various items in it to remove the redundant Bwtest from the name. - ssh: minimally handle various errors, or explicitly ignore them Reply the error state for `WantReply` requests. - enable lint for examples (and fix all issues)
- Loading branch information
Showing
49 changed files
with
280 additions
and
236 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ import ( | |
"os" | ||
|
||
"github.com/gorilla/handlers" | ||
|
||
"github.com/netsec-ethz/scion-apps/pkg/shttp" | ||
) | ||
|
||
|
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 |
---|---|---|
|
@@ -10,6 +10,7 @@ import ( | |
"os" | ||
|
||
"github.com/gorilla/handlers" | ||
|
||
"github.com/netsec-ethz/scion-apps/pkg/shttp" | ||
) | ||
|
||
|
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.