Preparing report...

Report for github.com/choria-io/stream-replicator

(v0.0.0-20220315124256-105f55493c9e)

A+    Excellent!    Found 8 issues across 18 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

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!


gocyclo88%

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.


golint55%

Golint is a linter for Go source code.

    • cmd/cmd.go
    • Line 34: warning: exported function Run should have comment or be unexported (golint)
    • internal/testutil/util.go
    • Line 17: warning: should not use dot imports (golint)
    • Line 18: warning: should not use dot imports (golint)
    • Line 29: warning: exported function WithJetStream should have comment or be unexported (golint)
    • internal/util/util.go
    • Line 20: warning: exported type TLSConfig should have comment or be unexported (golint)
    • Line 26: warning: exported function ConnectNats should have comment or be unexported (golint)
    • Line 93: warning: exported function ParseDurationString should have comment or be unexported (golint)
    • config/config.go
    • Line 18: warning: exported type Config should have comment or be unexported (golint)
    • Line 35: warning: exported type Stream should have comment or be unexported (golint)
    • Line 84: warning: exported type Advisory should have comment or be unexported (golint)
    • Line 92: warning: exported type TLS should have comment or be unexported (golint)
    • Line 98: warning: exported method TLS.CertificateAuthority should have comment or be unexported (golint)
    • Line 104: warning: exported method TLS.PublicCertificate should have comment or be unexported (golint)
    • Line 110: warning: exported method TLS.PrivateKey should have comment or be unexported (golint)
    • Line 117: warning: exported function Load should have comment or be unexported (golint)
    • advisor/advisor.go
    • Line 40: warning: exported type Tracker should have comment or be unexported (golint)
    • Line 49: warning: exported var TimeoutEvent should have comment or be unexported (golint)
    • Line 60: warning: exported type Advisor should have comment or be unexported (golint)
    • Line 71: warning: exported function New should have comment or be unexported (golint)
    • replicator/replicator.go
    • Line 29: warning: exported type Limiter should have comment or be unexported (golint)
    • Line 34: warning: exported type Stream should have comment or be unexported (golint)
    • Line 48: warning: exported type Target should have comment or be unexported (golint)
    • Line 65: warning: exported method Target.Close should have comment or be unexported (golint)
    • Line 78: warning: exported function NewStream should have comment or be unexported (golint)
    • Line 114: warning: exported method Stream.Run should have comment or be unexported (golint)
    • idtrack/idtrack.go
    • Line 20: warning: exported type Item should have comment or be unexported (golint)
    • Line 26: warning: exported type Tracker should have comment or be unexported (golint)
    • Line 49: warning: exported function New should have comment or be unexported (golint)
    • Line 181: warning: exported method Tracker.ShouldProcess should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!