Preparing report...

Report for github.com/MonarchStore/monarchs

A    Great!    Found 9 issues across 10 files

Tweet

gofmt80%

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


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!


golint20%

Golint is a linter for Go source code.

    • monarchs/docstore/document_model.go
    • Line 3: warning: exported type ID should have comment or be unexported (golint)
    • Line 5: warning: exported type KeyValueMap should have comment or be unexported (golint)
    • Line 7: warning: exported type DocumentMap should have comment or be unexported (golint)
    • Line 9: warning: exported type DocumentSlice should have comment or be unexported (golint)
    • Line 11: warning: exported type Document should have comment or be unexported (golint)
    • monarchs/docstore/hierarchy_model.go
    • Line 3: warning: exported type Label should have comment or be unexported (golint)
    • Line 5: warning: exported type Labels should have comment or be unexported (golint)
    • Line 7: warning: exported type HierarchyLink should have comment or be unexported (golint)
    • Line 14: warning: exported type HierarchyLinkyMap should have comment or be unexported (golint)
    • monarchs/docstore/store.go
    • Line 6: warning: exported type Store should have comment or be unexported (golint)
    • Line 16: warning: exported type StoreMap should have comment or be unexported (golint)
    • Line 18: warning: exported type IDGenerator should have comment or be unexported (golint)
    • Line 22: warning: exported function NewIDGenerator should have comment or be unexported (golint)
    • Line 38: warning: exported function NewStore should have comment or be unexported (golint)
    • monarchs/server/http.go
    • Line 11: warning: exported type HTTPServer should have comment or be unexported (golint)
    • Line 16: warning: exported function NewHttpServer should have comment or be unexported (golint)
    • monarchs/serialization/serialization.go
    • Line 10: warning: exported type ReadModel should have comment or be unexported (golint)
    • Line 17: warning: exported type ReadModelSlice should have comment or be unexported (golint)
    • Line 54: warning: exported function SerializeDocument should have comment or be unexported (golint)
    • monarchs/config/config.go
    • Line 8: warning: exported type CLIOptions should have comment or be unexported (golint)
    • Line 12: warning: exported function ParseFlags should have comment or be unexported (golint)
    • Line 13: warning: don't use underscores in Go names; var default_port should be defaultPort (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!