Preparing report...

Report for github.com/dekkagaijin/go-dockerfile

A+    Excellent!    Found 11 issues across 31 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!


gocyclo96%

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.


golint64%

Golint is a linter for Go source code.

    • go-dockerfile/statement/generic.go
    • Line 3: warning: exported type GenericInstruction should have comment or be unexported (golint)
    • Line 13: warning: exported method GenericInstruction.Type should have comment or be unexported (golint)
    • Line 17: warning: exported method GenericInstruction.Flags should have comment or be unexported (golint)
    • Line 21: warning: exported method GenericInstruction.Arguments should have comment or be unexported (golint)
    • go-dockerfile/internal/parser/parser.go
    • Line 13: warning: exported const DefaultExcapeCharacter should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported type Sequential should have comment or be unexported (golint)
    • Line 74: warning: exported method Sequential.Parse should have comment or be unexported (golint)
    • Line 115: warning: exported const CommentToken should have comment (or a comment on this block) or be unexported (golint)
    • go-dockerfile/statement/add.go
    • Line 3: warning: exported type AddInstruction should have comment or be unexported (golint)
    • Line 11: warning: exported method AddInstruction.Type should have comment or be unexported (golint)
    • Line 15: warning: exported method AddInstruction.Flags should have comment or be unexported (golint)
    • Line 19: warning: exported method AddInstruction.Arguments should have comment or be unexported (golint)
    • go-dockerfile/statement/env.go
    • Line 3: warning: exported type EnvInstruction should have comment or be unexported (golint)
    • Line 8: warning: exported method EnvInstruction.Type should have comment or be unexported (golint)
    • Line 12: warning: exported method EnvInstruction.Flags should have comment or be unexported (golint)
    • Line 16: warning: exported method EnvInstruction.Arguments should have comment or be unexported (golint)
    • go-dockerfile/parse.go
    • Line 12: warning: exported const DefaultExcapeCharacter should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Parsed should have comment or be unexported (golint)
    • go-dockerfile/render.go
    • Line 12: warning: exported type Renderer should have comment or be unexported (golint)
    • Line 23: warning: exported method Renderer.Render should have comment or be unexported (golint)
    • go-dockerfile/statement/arg.go
    • Line 3: warning: exported type ArgInstruction should have comment or be unexported (golint)
    • Line 8: warning: exported method ArgInstruction.Type should have comment or be unexported (golint)
    • Line 12: warning: exported method ArgInstruction.Flags should have comment or be unexported (golint)
    • Line 16: warning: exported method ArgInstruction.Arguments should have comment or be unexported (golint)
    • go-dockerfile/statement/from.go
    • Line 3: warning: exported type FromInstruction should have comment or be unexported (golint)
    • Line 9: warning: exported method FromInstruction.Type should have comment or be unexported (golint)
    • Line 13: warning: exported method FromInstruction.Flags should have comment or be unexported (golint)
    • Line 22: warning: exported method FromInstruction.Arguments should have comment or be unexported (golint)
    • go-dockerfile/statement/types.go
    • Line 3: warning: exported type Type should have comment or be unexported (golint)
    • Line 6: warning: exported const ADD should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported var Known should have comment or be unexported (golint)
    • Line 72: warning: exported type Statement should have comment or be unexported (golint)
    • Line 76: warning: exported type Arguments should have comment or be unexported (golint)
    • Line 83: warning: exported type Instruction should have comment or be unexported (golint)
    • Line 91: warning: exported type TODO should have comment or be unexported (golint)
    • Line 92: warning: exported type CmdInstruction should have comment or be unexported (golint)
    • Line 93: warning: exported type CopyInstruction should have comment or be unexported (golint)
    • Line 94: warning: exported type EntrypointInstruction should have comment or be unexported (golint)
    • Line 95: warning: exported type ExposeInstruction should have comment or be unexported (golint)
    • Line 96: warning: exported type HealthcheckInstruction should have comment or be unexported (golint)
    • Line 97: warning: exported type LabelInstruction should have comment or be unexported (golint)
    • Line 98: warning: exported type MaintainerInstruction should have comment or be unexported (golint)
    • Line 99: warning: exported type OnBuildInstruction should have comment or be unexported (golint)
    • Line 100: warning: exported type RunInstruction should have comment or be unexported (golint)
    • Line 101: warning: exported type ShellInstruction should have comment or be unexported (golint)
    • Line 102: warning: exported type StopSignalInstruction should have comment or be unexported (golint)
    • Line 103: warning: exported type UserInstruction should have comment or be unexported (golint)
    • Line 104: warning: exported type VolumeInstruction should have comment or be unexported (golint)
    • Line 105: warning: exported type WorkdirInstruction 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!