Preparing report...

Report for github.com/buildtool/scaffold

A+    Excellent!    Found 19 issues across 33 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!


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!


golint45%

Golint is a linter for Go source code.

    • scaffold/pkg/config/vcs/gitlab.go
    • Line 20: warning: exported type Gitlab should have comment or be unexported (golint)
    • Line 29: warning: exported method Gitlab.Name should have comment or be unexported (golint)
    • Line 33: warning: exported method Gitlab.ValidateConfig should have comment or be unexported (golint)
    • Line 40: warning: exported method Gitlab.Scaffold should have comment or be unexported (golint)
    • Line 74: warning: exported method Gitlab.Webhook should have comment or be unexported (golint)
    • Line 85: warning: exported method Gitlab.Validate should have comment or be unexported (golint)
    • Line 103: warning: exported method Gitlab.Configure should have comment or be unexported (golint)
    • scaffold/pkg/templating/templating.go
    • Line 8: warning: exported type TemplateData should have comment or be unexported (golint)
    • Line 18: warning: exported type Badge should have comment or be unexported (golint)
    • Line 24: warning: exported function Execute should have comment or be unexported (golint)
    • Line 27: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • scaffold/pkg/stack/go.go
    • Line 9: warning: exported type Go should have comment or be unexported (golint)
    • Line 11: warning: exported method Go.Scaffold should have comment or be unexported (golint)
    • Line 24: warning: exported method Go.Name should have comment or be unexported (golint)
    • scaffold/pkg/stack/scala.go
    • Line 11: warning: exported type Scala should have comment or be unexported (golint)
    • Line 13: warning: exported method Scala.Scaffold should have comment or be unexported (golint)
    • Line 46: warning: exported method Scala.Name should have comment or be unexported (golint)
    • scaffold/pkg/file/file.go
    • Line 12: warning: exported function Append should have comment or be unexported (golint)
    • Line 15: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 22: warning: exported function AppendTemplated should have comment or be unexported (golint)
    • Line 25: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 30: warning: exported function Write should have comment or be unexported (golint)
    • Line 37: warning: exported function WriteTemplated should have comment or be unexported (golint)
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • scaffold/pkg/config/ci/buildkite.go
    • Line 26: warning: exported type Buildkite should have comment or be unexported (golint)
    • Line 36: warning: exported method Buildkite.Name should have comment or be unexported (golint)
    • Line 40: warning: exported method Buildkite.ValidateConfig should have comment or be unexported (golint)
    • Line 47: warning: exported method Buildkite.Validate should have comment or be unexported (golint)
    • Line 67: warning: exported method Buildkite.Scaffold should have comment or be unexported (golint)
    • Line 100: warning: exported method Buildkite.Badges should have comment or be unexported (golint)
    • Line 115: warning: exported method Buildkite.Configure should have comment or be unexported (golint)
    • scaffold/pkg/config/vcs/github.go
    • Line 13: warning: exported type Github should have comment or be unexported (golint)
    • Line 22: warning: exported method Github.Name should have comment or be unexported (golint)
    • Line 26: warning: exported method Github.ValidateConfig should have comment or be unexported (golint)
    • Line 33: warning: exported method Github.Scaffold should have comment or be unexported (golint)
    • Line 71: warning: exported method Github.Webhook should have comment or be unexported (golint)
    • Line 93: warning: exported method Github.Validate should have comment or be unexported (golint)
    • Line 98: warning: exported method Github.Configure should have comment or be unexported (golint)
    • Line 107: warning: exported type RepositoriesService should have comment or be unexported (golint)
    • scaffold/pkg/stack/none.go
    • Line 5: warning: exported type None should have comment or be unexported (golint)
    • Line 7: warning: exported method None.Scaffold should have comment or be unexported (golint)
    • Line 11: warning: exported method None.Name should have comment or be unexported (golint)
    • scaffold/pkg/config/config.go
    • Line 24: warning: exported type Config should have comment or be unexported (golint)
    • Line 33: warning: exported type VCSConfig should have comment or be unexported (golint)
    • Line 38: warning: exported type CIConfig should have comment or be unexported (golint)
    • Line 43: warning: exported method Config.Configure should have comment or be unexported (golint)
    • Line 48: warning: exported method Config.ValidateConfig should have comment or be unexported (golint)
    • Line 58: warning: exported function Load should have comment or be unexported (golint)
    • Line 73: warning: exported method Config.Validate should have comment or be unexported (golint)
    • Line 80: warning: exported method Config.Scaffold should have comment or be unexported (golint)
    • Line 142: warning: exported function InitEmptyConfig should have comment or be unexported (golint)
    • Line 312: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • scaffold/pkg/config/ci/gitlab.go
    • Line 13: warning: exported type Gitlab should have comment or be unexported (golint)
    • Line 40: warning: exported method Gitlab.Name should have comment or be unexported (golint)
    • Line 44: warning: exported method Gitlab.ValidateConfig should have comment or be unexported (golint)
    • Line 51: warning: exported method Gitlab.Validate should have comment or be unexported (golint)
    • Line 73: warning: exported method Gitlab.Scaffold should have comment or be unexported (golint)
    • Line 80: warning: exported method Gitlab.Badges should have comment or be unexported (golint)
    • Line 104: warning: exported method Gitlab.Configure should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • scaffold/pkg/config/vcs/github_test.go
    • Line 6: warning: no required module provides package github.com/buildtool/scaffold/pkg/config/vcs/mocks; to add it: (ineffassign)
    • Line 6: warning: could not import github.com/buildtool/scaffold/pkg/config/vcs/mocks (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!