aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-03-03 14:35:57 +0000
committerGitHub <noreply@github.com>2021-03-03 14:35:57 +0000
commitd15836e260130f85edd5d9a104e5304f001d2681 (patch)
treea426e886cc66b3d676741010860cb794a6999b87 /cmd
parentf0139f12ca6f93b7626be369dc2a829c0326c6e0 (diff)
Increase gocyclo complexity to 25 (and remove all but 2 golint directives related to it) (#1783)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dendrite-demo-yggdrasil/main.go1
-rw-r--r--cmd/dendrite-demo-yggdrasil/yggconn/node.go1
-rw-r--r--cmd/dendrite-demo-yggdrasil/yggconn/session.go1
-rw-r--r--cmd/furl/main.go1
-rw-r--r--cmd/resolve-state/main.go1
5 files changed, 0 insertions, 5 deletions
diff --git a/cmd/dendrite-demo-yggdrasil/main.go b/cmd/dendrite-demo-yggdrasil/main.go
index 8091298b..2a4a335a 100644
--- a/cmd/dendrite-demo-yggdrasil/main.go
+++ b/cmd/dendrite-demo-yggdrasil/main.go
@@ -52,7 +52,6 @@ var (
instancePeer = flag.String("peer", "", "an internet Yggdrasil peer to connect to")
)
-// nolint:gocyclo
func main() {
flag.Parse()
internal.SetupPprof()
diff --git a/cmd/dendrite-demo-yggdrasil/yggconn/node.go b/cmd/dendrite-demo-yggdrasil/yggconn/node.go
index c036c0d8..9c286dfb 100644
--- a/cmd/dendrite-demo-yggdrasil/yggconn/node.go
+++ b/cmd/dendrite-demo-yggdrasil/yggconn/node.go
@@ -73,7 +73,6 @@ func (n *Node) DialerContext(ctx context.Context, network, address string) (net.
return n.Dialer(network, address)
}
-// nolint:gocyclo
func Setup(instanceName, storageDirectory string) (*Node, error) {
n := &Node{
core: &yggdrasil.Core{},
diff --git a/cmd/dendrite-demo-yggdrasil/yggconn/session.go b/cmd/dendrite-demo-yggdrasil/yggconn/session.go
index 0cf524d9..7b56e736 100644
--- a/cmd/dendrite-demo-yggdrasil/yggconn/session.go
+++ b/cmd/dendrite-demo-yggdrasil/yggconn/session.go
@@ -128,7 +128,6 @@ func (n *Node) Dial(network, address string) (net.Conn, error) {
}
// Implements http.Transport.DialContext
-// nolint:gocyclo
func (n *Node) DialContext(ctx context.Context, network, address string) (net.Conn, error) {
s, ok1 := n.sessions.Load(address)
session, ok2 := s.(*session)
diff --git a/cmd/furl/main.go b/cmd/furl/main.go
index bec04f0a..75e22338 100644
--- a/cmd/furl/main.go
+++ b/cmd/furl/main.go
@@ -20,7 +20,6 @@ var requestFrom = flag.String("from", "", "the server name that the request shou
var requestKey = flag.String("key", "matrix_key.pem", "the private key to use when signing the request")
var requestPost = flag.Bool("post", false, "send a POST request instead of GET (pipe input into stdin or type followed by Ctrl-D)")
-// nolint:gocyclo
func main() {
flag.Parse()
diff --git a/cmd/resolve-state/main.go b/cmd/resolve-state/main.go
index 69c3489d..30331fbb 100644
--- a/cmd/resolve-state/main.go
+++ b/cmd/resolve-state/main.go
@@ -24,7 +24,6 @@ import (
var roomVersion = flag.String("roomversion", "5", "the room version to parse events as")
-// nolint:gocyclo
func main() {
ctx := context.Background()
cfg := setup.ParseFlags(true)