Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
go vet
examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.
No problems detected. Good job!
Gocyclo calculates cyclomatic complexities of functions in Go source code.
The cyclomatic complexity of a function is calculated according to the following rules:
1 is the base complexity of a function
+1 for each 'if', 'for', 'case', '&&' or '||'
Go Report Card warns on functions with cyclomatic complexity > 15.
No problems detected. Good job!
Golint is a linter for Go source code.
-
watermill-nats/pkg/nats/marshaler.go
- Line 13: warning: exported type Marshaler should have comment or be unexported (golint)
- Line 17: warning: exported type Unmarshaler should have comment or be unexported (golint)
- Line 21: warning: exported type MarshalerUnmarshaler should have comment or be unexported (golint)
- Line 29: warning: exported method GobMarshaler.Marshal should have comment or be unexported (golint)
- Line 41: warning: exported method GobMarshaler.Unmarshal should have comment or be unexported (golint)
-
watermill-nats/pkg/nats/publisher.go
- Line 11: warning: exported type StreamingPublisherConfig should have comment or be unexported (golint)
- Line 26: warning: exported type StreamingPublisherPublishConfig should have comment or be unexported (golint)
- Line 31: warning: exported method StreamingPublisherConfig.Validate should have comment or be unexported (golint)
- Line 39: warning: exported method StreamingPublisherConfig.GetStreamingPublisherPublishConfig should have comment or be unexported (golint)
- Line 45: warning: exported type StreamingPublisher should have comment or be unexported (golint)
- Line 72: warning: exported function NewStreamingPublisherWithStanConn should have comment or be unexported (golint)
- Line 110: warning: exported method StreamingPublisher.Close should have comment or be unexported (golint)
-
watermill-nats/pkg/nats/subscriber.go
- Line 17: warning: exported type StreamingSubscriberConfig should have comment or be unexported (golint)
- Line 77: warning: exported type StreamingSubscriberSubscriptionConfig should have comment or be unexported (golint)
- Line 120: warning: exported method StreamingSubscriberConfig.GetStreamingSubscriberSubscriptionConfig should have comment or be unexported (golint)
- Line 154: warning: exported method StreamingSubscriberSubscriptionConfig.Validate should have comment or be unexported (golint)
- Line 170: warning: exported type StreamingSubscriber should have comment or be unexported (golint)
- Line 202: warning: exported function NewStreamingSubscriberWithStanConn should have comment or be unexported (golint)
- Line 271: warning: exported method StreamingSubscriber.SubscribeInitialize should have comment or be unexported (golint)
- Line 384: warning: exported method StreamingSubscriber.Close should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!