Preparing report...

Report for github.com/jkrajniak/graphql-codegen-go

A    Great!    Found 11 issues across 16 files

Tweet

gofmt68%

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!


gocyclo87%

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.


golint43%

Golint is a linter for Go source code.

    • graphql-codegen-go/internal/config.go
    • Line 11: warning: exported type YamlGenerateConfig should have comment or be unexported (golint)
    • Line 16: warning: exported type YamlGenerateItem should have comment or be unexported (golint)
    • Line 20: warning: exported type YamlConfig should have comment or be unexported (golint)
    • Line 25: warning: exported type OutputItem should have comment or be unexported (golint)
    • Line 31: warning: exported type GOGenerate should have comment or be unexported (golint)
    • Line 37: warning: exported type Config should have comment or be unexported (golint)
    • Line 45: warning: exported function ReadConfigFromFile should have comment or be unexported (golint)
    • Line 71: warning: exported function GetGOGenerate should have comment or be unexported (golint)
    • graphql-codegen-go/internal/generator.go
    • Line 10: warning: exported const Header should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported var GQLTypesToGoTypes should have comment or be unexported (golint)
    • Line 34: warning: exported type GoGenerator should have comment or be unexported (golint)
    • Line 43: warning: exported function NewGoGenerator should have comment or be unexported (golint)
    • Line 47: warning: exported method GoGenerator.Generate should have comment or be unexported (golint)
    • graphql-codegen-go/internal/io.go
    • Line 9: warning: exported type Outputer should have comment or be unexported (golint)
    • Line 16: warning: exported type STDOutput should have comment or be unexported (golint)
    • Line 20: warning: exported function NewSTDOutput should have comment or be unexported (golint)
    • Line 28: warning: exported method STDOutput.Writeln should have comment or be unexported (golint)
    • Line 34: warning: exported method STDOutput.Flush should have comment or be unexported (golint)
    • Line 45: warning: exported method STDOutput.Close should have comment or be unexported (golint)
    • Line 49: warning: exported type FileOutput should have comment or be unexported (golint)
    • Line 54: warning: exported function NewFileOutput should have comment or be unexported (golint)
    • Line 65: warning: exported method FileOutput.Writeln should have comment or be unexported (golint)
    • Line 71: warning: exported method FileOutput.Close should have comment or be unexported (golint)
    • Line 78: warning: exported method FileOutput.Flush should have comment or be unexported (golint)
    • graphql-codegen-go/internal/schema.go
    • Line 14: warning: exported type InputSchema should have comment or be unexported (golint)
    • Line 19: warning: exported function ReadSchemas should have comment or be unexported (golint)
    • Line 35: warning: exported function LoadSchemas should have comment or be unexported (golint)
    • graphql-codegen-go/internal/readers/reader.go
    • Line 7: warning: exported type SchemaReader should have comment or be unexported (golint)
    • Line 11: warning: exported function DiscoverReader should have comment or be unexported (golint)
    • Line 14: warning: if block ends with a return statement, so drop this else and outdent its block (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!