Preparing report...

Report for github.com/timvaillancourt/go-mongodb-config

A+    Excellent!    Found 5 issues across 10 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!


gocyclo100%

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!


golint50%

Golint is a linter for Go source code.

    • go-mongodb-config/config/storage.go
    • Line 3: warning: comment on exported type Storage should be of the form "Storage ..." (with optional leading article) (golint)
    • Line 18: warning: exported type StorageJournal should have comment or be unexported (golint)
    • Line 23: warning: exported type StorageRocksDB should have comment or be unexported (golint)
    • Line 32: warning: exported type StorageMMAPv1Quota should have comment or be unexported (golint)
    • Line 37: warning: comment on exported type StorageMMAPv1 should be of the form "StorageMMAPv1 ..." (with optional leading article) (golint)
    • Line 45: warning: exported type StorageWiredTigerEngineConfig should have comment or be unexported (golint)
    • Line 52: warning: exported type StorageWiredTigerCollectionConfig should have comment or be unexported (golint)
    • Line 56: warning: exported type StorageWiredTigerIndexConfig should have comment or be unexported (golint)
    • Line 60: warning: comment on exported type StorageWiredTiger should be of the form "StorageWiredTiger ..." (with optional leading article) (golint)
    • go-mongodb-config/config/system_log.go
    • Line 3: warning: exported type SystemLogComponent should have comment or be unexported (golint)
    • Line 7: warning: exported type SystemLogComponentStorage should have comment or be unexported (golint)
    • Line 12: warning: comment on exported type SystemLogComponents should be of the form "SystemLogComponents ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported type SystemLog should be of the form "SystemLog ..." (with optional leading article) (golint)
    • go-mongodb-config/config/config.go
    • Line 10: warning: comment on exported type Config should be of the form "Config ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported type AuditLog should be of the form "AuditLog ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported type OperationProfiling should be of the form "OperationProfiling ..." (with optional leading article) (golint)
    • Line 40: warning: comment on exported type ProcessManagement should be of the form "ProcessManagement ..." (with optional leading article) (golint)
    • Line 46: warning: comment on exported type Replication should be of the form "Replication ..." (with optional leading article) (golint)
    • Line 55: warning: comment on exported type Sharding should be of the form "Sharding ..." (with optional leading article) (golint)
    • Line 62: warning: comment on exported type Snmp should be of the form "Snmp ..." (with optional leading article) (golint)
    • Line 68: warning: exported function New should have comment or be unexported (golint)
    • Line 72: warning: exported function Load should have comment or be unexported (golint)
    • Line 82: warning: exported function LoadUri should have comment or be unexported (golint)
    • go-mongodb-config/config/net.go
    • Line 3: warning: comment on exported type NetHttp should be of the form "NetHttp ..." (with optional leading article) (golint)
    • Line 10: warning: comment on exported type NetUnixDomainSocket should be of the form "NetUnixDomainSocket ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type NetSSL should be of the form "NetSSL ..." (with optional leading article) (golint)
    • Line 34: warning: comment on exported type Net should be of the form "Net ..." (with optional leading article) (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!