Preparing report...

Report for github.com/Confbase/schema

A    Great!    Found 21 issues across 29 files

Tweet

gofmt96%

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!


gocyclo89%

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.


golint27%

Golint is a linter for Go source code.

    • schema/translate/config.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 14: warning: exported method Config.OutFmt should have comment or be unexported (golint)
    • schema/diff/diff.go
    • Line 13: warning: exported function Diff should have comment or be unexported (golint)
    • Line 26: warning: exported function Entry should have comment or be unexported (golint)
    • schema/jsonsch/schemainclreq.go
    • Line 5: warning: exported type SchemaInclReq should have comment or be unexported (golint)
    • Line 14: warning: exported function NewInclReq should have comment or be unexported (golint)
    • Line 22: warning: exported method SchemaInclReq.SetRequired should have comment or be unexported (golint)
    • Line 27: warning: exported method SchemaInclReq.GetRequired should have comment or be unexported (golint)
    • Line 31: warning: exported method SchemaInclReq.SetProperty should have comment or be unexported (golint)
    • Line 35: warning: exported method SchemaInclReq.SetProperties should have comment or be unexported (golint)
    • Line 39: warning: exported method SchemaInclReq.GetProperties should have comment or be unexported (golint)
    • Line 43: warning: exported method SchemaInclReq.SetDescription should have comment or be unexported (golint)
    • Line 47: warning: exported method SchemaInclReq.GetDescription should have comment or be unexported (golint)
    • Line 51: warning: exported method SchemaInclReq.SetType should have comment or be unexported (golint)
    • Line 55: warning: exported method SchemaInclReq.GetType should have comment or be unexported (golint)
    • Line 59: warning: exported method SchemaInclReq.SetTitle should have comment or be unexported (golint)
    • Line 63: warning: exported method SchemaInclReq.GetTitle should have comment or be unexported (golint)
    • Line 67: warning: exported method SchemaInclReq.SetSchemaField should have comment or be unexported (golint)
    • Line 71: warning: exported method SchemaInclReq.GetSchemaField should have comment or be unexported (golint)
    • schema/jsonsch/schemaomitreq.go
    • Line 5: warning: exported type SchemaOmitReq should have comment or be unexported (golint)
    • Line 14: warning: exported function NewOmitReq should have comment or be unexported (golint)
    • Line 22: warning: exported method SchemaOmitReq.SetRequired should have comment or be unexported (golint)
    • Line 27: warning: exported method SchemaOmitReq.GetRequired should have comment or be unexported (golint)
    • Line 31: warning: exported method SchemaOmitReq.SetProperty should have comment or be unexported (golint)
    • Line 35: warning: exported method SchemaOmitReq.SetProperties should have comment or be unexported (golint)
    • Line 39: warning: exported method SchemaOmitReq.GetProperties should have comment or be unexported (golint)
    • Line 43: warning: exported method SchemaOmitReq.SetDescription should have comment or be unexported (golint)
    • Line 47: warning: exported method SchemaOmitReq.GetDescription should have comment or be unexported (golint)
    • Line 51: warning: exported method SchemaOmitReq.SetType should have comment or be unexported (golint)
    • Line 55: warning: exported method SchemaOmitReq.GetType should have comment or be unexported (golint)
    • Line 59: warning: exported method SchemaOmitReq.SetTitle should have comment or be unexported (golint)
    • Line 63: warning: exported method SchemaOmitReq.GetTitle should have comment or be unexported (golint)
    • Line 67: warning: exported method SchemaOmitReq.SetSchemaField should have comment or be unexported (golint)
    • Line 71: warning: exported method SchemaOmitReq.GetSchemaField should have comment or be unexported (golint)
    • schema/decode/serialize.go
    • Line 15: warning: exported function MuxDecode should have comment or be unexported (golint)
    • Line 48: warning: exported function DemuxEncode should have comment or be unexported (golint)
    • schema/infer/infer.go
    • Line 15: warning: exported function InferEntry should have comment or be unexported (golint)
    • Line 45: warning: exported function Infer should have comment or be unexported (golint)
    • schema/translate/translate.go
    • Line 13: warning: exported function TranslateEntry should have comment or be unexported (golint)
    • Line 43: warning: exported function Translate should have comment or be unexported (golint)
    • schema/jsonsch/from.go
    • Line 9: warning: exported function FromSchema should have comment or be unexported (golint)
    • Line 149: warning: exported type FromExampleParams should have comment or be unexported (golint)
    • Line 156: warning: exported function FromExample should have comment or be unexported (golint)
    • schema/jsonsch/serialize.go
    • Line 10: warning: exported function SerializeSchema should have comment or be unexported (golint)
    • Line 21: warning: exported function SerializeGraphQL should have comment or be unexported (golint)
    • schema/example/example.go
    • Line 3: warning: exported type Example should have comment or be unexported (golint)
    • Line 7: warning: exported function New should have comment or be unexported (golint)
    • schema/graphqlsch/graphqlsch.go
    • Line 8: warning: exported type Schema should have comment or be unexported (golint)
    • Line 12: warning: exported function New should have comment or be unexported (golint)
    • Line 16: warning: exported type Type should have comment or be unexported (golint)
    • Line 21: warning: exported function NewType should have comment or be unexported (golint)
    • Line 28: warning: exported method Type.ToString should have comment or be unexported (golint)
    • Line 38: warning: exported type Field should have comment or be unexported (golint)
    • Line 47: warning: exported method Field.ToString should have comment or be unexported (golint)
    • Line 67: warning: exported type PrimitiveType should have comment or be unexported (golint)
    • Line 70: warning: exported const String should have comment (or a comment on this block) or be unexported (golint)
    • schema/initcmd/config.go
    • Line 3: warning: exported type Config should have comment or be unexported (golint)
    • Line 17: warning: exported method Config.OutFmt should have comment or be unexported (golint)
    • schema/diff/types.go
    • Line 5: warning: exported type Difference should have comment or be unexported (golint)
    • Line 18: warning: exported type MissingField should have comment or be unexported (golint)
    • Line 35: warning: exported type DifferingTypes should have comment or be unexported (golint)
    • schema/jsonsch/jsonsch.go
    • Line 10: warning: comment on exported type Schema should be of the form "Schema ..." (with optional leading article) (golint)
    • Line 31: warning: exported function ToGraphQLTypes should have comment or be unexported (golint)
    • Line 75: warning: exported function ToGraphQLSchema should have comment or be unexported (golint)
    • schema/jsonsch/primitives.go
    • Line 5: warning: exported type Type should have comment or be unexported (golint)
    • Line 8: warning: exported const Object should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Primitive should have comment or be unexported (golint)
    • Line 22: warning: exported function NewNull should have comment or be unexported (golint)
    • Line 43: warning: exported function NewBoolean should have comment or be unexported (golint)
    • Line 47: warning: exported function NewNumber should have comment or be unexported (golint)
    • Line 51: warning: exported function NewString should have comment or be unexported (golint)
    • Line 55: warning: exported type ArraySchema should have comment or be unexported (golint)
    • Line 60: warning: exported function NewArray should have comment or be unexported (golint)
    • Line 64: warning: exported function TodoRenameThisFunctionLmao should have comment or be unexported (golint)
    • schema/jsonsch/replacerefs.go
    • Line 9: warning: exported function ReplaceRefs should have comment or be unexported (golint)
    • Line 99: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (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!


misspell96%

Misspell Finds commonly misspelled English words