Preparing report...

Report for github.com/bcaldwell/dfm

A+    Excellent!    Found 11 issues across 23 files

Tweet

gofmt95%

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!


gocyclo95%

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.


golint65%

Golint is a linter for Go source code.

    • dfm/dfm/config.go
    • Line 18: warning: exported type Configuration should have comment or be unexported (golint)
    • Line 28: warning: exported method Configuration.Parse should have comment or be unexported (golint)
    • Line 59: warning: exported method Configuration.SetDefaults should have comment or be unexported (golint)
    • dfm/utilities/utilities.go
    • Line 16: warning: exported function StringInSlice should have comment or be unexported (golint)
    • Line 46: warning: exported function FatalErrorCheck should have comment or be unexported (golint)
    • Line 52: warning: exported function ErrorCheck should have comment or be unexported (golint)
    • Line 96: warning: exported function HTTPDownload should have comment or be unexported (golint)
    • Line 107: warning: exported function WriteFile should have comment or be unexported (golint)
    • Line 114: warning: exported function DownloadToFile should have comment or be unexported (golint)
    • dfm/pkg/pragma/pragma.go
    • Line 27: warning: exported var PragmaName should have comment or be unexported (golint)
    • Line 33: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 43: warning: exported function ProcessFile should have comment or be unexported (golint)
    • Line 80: warning: exported method File.Process should have comment or be unexported (golint)
    • dfm/main.go
    • Line 5: warning: exported var Version should have comment or be unexported (golint)
    • Line 6: warning: exported var BuildDate should have comment or be unexported (golint)
    • dfm/tasks/task.go
    • Line 13: warning: exported type DfmVars should have comment or be unexported (golint)
    • Line 15: warning: exported type Task should have comment or be unexported (golint)
    • Line 33: warning: exported var SrcDir should have comment or be unexported (golint)
    • Line 42: warning: exported function ExecuteTasks should have comment or be unexported (golint)
    • Line 131: warning: exported method Task.Execute should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words