Preparing report...

Report for github.com/rande/gitlab-ci-helper

A    Great!    Found 20 issues across 32 files

Tweet

gofmt78%

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!


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.


golint37%

Golint is a linter for Go source code.

    • gitlab-ci-helper/helper.go
    • Line 6: warning: don't use an underscore in package name (golint)
    • Line 26: warning: exported type Paths should have comment or be unexported (golint)
    • Line 32: warning: exported method Paths.Set should have comment or be unexported (golint)
    • Line 38: warning: exported var SemVersion should have comment or be unexported (golint)
    • Line 40: warning: exported function GetAwsCredentials should have comment or be unexported (golint)
    • Line 66: warning: exported function GetProject should have comment or be unexported (golint)
    • Line 110: warning: exported function GetBuild should have comment or be unexported (golint)
    • Line 120: warning: exported function GetEnv should have comment or be unexported (golint)
    • gitlab-ci-helper/integrations/flowdock/flowdock.go
    • Line 9: warning: exported const BUILD_PENDING should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type FlowdockConfig should have comment or be unexported (golint)
    • Line 36: warning: exported type FlowdockThreadStatus should have comment or be unexported (golint)
    • Line 41: warning: exported type FlowdockAuthor should have comment or be unexported (golint)
    • Line 47: warning: exported type FlowdockField should have comment or be unexported (golint)
    • Line 52: warning: exported type FlowdockThread should have comment or be unexported (golint)
    • Line 60: warning: exported type FlowdockMessage should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/s3_extract.go
    • Line 26: warning: exported type S3ExtractCommand should have comment or be unexported (golint)
    • Line 43: warning: exported method S3ExtractCommand.Run should have comment or be unexported (golint)
    • Line 145: warning: exported method S3ExtractCommand.Synopsis should have comment or be unexported (golint)
    • Line 149: warning: exported method S3ExtractCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/zip.go
    • Line 6: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported function Unzip should have comment or be unexported (golint)
    • Line 22: warning: exported function Zip should have comment or be unexported (golint)
    • gitlab-ci-helper/integrations/flowdock/ci_flowdock_ci_status.go
    • Line 24: warning: exported type CiFlowdockStatusCommand should have comment or be unexported (golint)
    • Line 34: warning: exported method CiFlowdockStatusCommand.Run should have comment or be unexported (golint)
    • Line 244: warning: exported method CiFlowdockStatusCommand.Synopsis should have comment or be unexported (golint)
    • Line 248: warning: exported method CiFlowdockStatusCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/integrations/flowdock/ci_flowdock_message.go
    • Line 20: warning: exported type CiFlowdockMessageCommand should have comment or be unexported (golint)
    • Line 25: warning: exported method CiFlowdockMessageCommand.Run should have comment or be unexported (golint)
    • Line 83: warning: exported method CiFlowdockMessageCommand.Synopsis should have comment or be unexported (golint)
    • Line 87: warning: exported method CiFlowdockMessageCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/project_build_artifacts.go
    • Line 21: warning: exported type ProjectBuildArtifactCommand should have comment or be unexported (golint)
    • Line 32: warning: exported method ProjectBuildArtifactCommand.Run should have comment or be unexported (golint)
    • Line 163: warning: exported method ProjectBuildArtifactCommand.Synopsis should have comment or be unexported (golint)
    • Line 167: warning: exported method ProjectBuildArtifactCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/project_builds_list.go
    • Line 20: warning: don't use underscores in Go names; var icon_green should be iconGreen (golint)
    • Line 21: warning: don't use underscores in Go names; var icon_red should be iconRed (golint)
    • Line 22: warning: don't use underscores in Go names; var icon_pending should be iconPending (golint)
    • Line 23: warning: don't use underscores in Go names; var icon_artifacts should be iconArtifacts (golint)
    • Line 26: warning: exported type ProjectBuildsListCommand should have comment or be unexported (golint)
    • Line 31: warning: exported method ProjectBuildsListCommand.Run should have comment or be unexported (golint)
    • Line 97: warning: exported method ProjectBuildsListCommand.Synopsis should have comment or be unexported (golint)
    • Line 101: warning: exported method ProjectBuildsListCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/s3_archive.go
    • Line 24: warning: exported type S3ArchiveCommand should have comment or be unexported (golint)
    • Line 43: warning: exported method S3ArchiveCommand.Run should have comment or be unexported (golint)
    • Line 169: warning: exported method S3ArchiveCommand.Synopsis should have comment or be unexported (golint)
    • Line 173: warning: exported method S3ArchiveCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/config.go
    • Line 6: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type GitLabConfig should have comment or be unexported (golint)
    • Line 16: warning: exported type MailerConfig should have comment or be unexported (golint)
    • Line 25: warning: exported type Config should have comment or be unexported (golint)
    • Line 29: warning: exported function NewConfig should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/ci_dump_meta.go
    • Line 19: warning: exported type MetaBuild should have comment or be unexported (golint)
    • Line 28: warning: exported type MetaProject should have comment or be unexported (golint)
    • Line 33: warning: exported type MetaServer should have comment or be unexported (golint)
    • Line 39: warning: exported type Meta should have comment or be unexported (golint)
    • Line 45: warning: exported type CiDumpMetaCommand should have comment or be unexported (golint)
    • Line 51: warning: exported method CiDumpMetaCommand.Run should have comment or be unexported (golint)
    • Line 97: warning: exported method CiDumpMetaCommand.Synopsis should have comment or be unexported (golint)
    • Line 101: warning: exported method CiDumpMetaCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/version.go
    • Line 16: warning: exported type VersionCommand should have comment or be unexported (golint)
    • Line 23: warning: exported method VersionCommand.Run should have comment or be unexported (golint)
    • Line 45: warning: exported method VersionCommand.Synopsis should have comment or be unexported (golint)
    • Line 49: warning: exported method VersionCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/integrations/hipchat/ci_message_hipchat.go
    • Line 22: warning: exported type HipChatConfig should have comment or be unexported (golint)
    • Line 28: warning: exported type HipChatDescription should have comment or be unexported (golint)
    • Line 33: warning: exported type HipChatCard should have comment or be unexported (golint)
    • Line 41: warning: exported type HipChatMessage should have comment or be unexported (golint)
    • Line 49: warning: exported type CiNotificationHipchatCommand should have comment or be unexported (golint)
    • Line 54: warning: exported method CiNotificationHipchatCommand.Run should have comment or be unexported (golint)
    • Line 118: warning: exported method CiNotificationHipchatCommand.Synopsis should have comment or be unexported (golint)
    • Line 122: warning: exported method CiNotificationHipchatCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/ci_dump_revision.go
    • Line 17: warning: exported type CiDumpRevisionCommand should have comment or be unexported (golint)
    • Line 24: warning: exported method CiDumpRevisionCommand.Run should have comment or be unexported (golint)
    • Line 47: warning: exported method CiDumpRevisionCommand.Synopsis should have comment or be unexported (golint)
    • Line 51: warning: exported method CiDumpRevisionCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/dump_readme.go
    • Line 17: warning: exported type DumpReadmeCommand should have comment or be unexported (golint)
    • Line 23: warning: exported method DumpReadmeCommand.Run should have comment or be unexported (golint)
    • Line 66: warning: exported method DumpReadmeCommand.Synopsis should have comment or be unexported (golint)
    • Line 70: warning: exported method DumpReadmeCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/commands/project_list.go
    • Line 18: warning: exported type ProjectsListCommand should have comment or be unexported (golint)
    • Line 23: warning: exported method ProjectsListCommand.Run should have comment or be unexported (golint)
    • Line 56: warning: exported method ProjectsListCommand.Synopsis should have comment or be unexported (golint)
    • Line 60: warning: exported method ProjectsListCommand.Help should have comment or be unexported (golint)
    • gitlab-ci-helper/test_helper.go
    • Line 6: warning: don't use an underscore in package name (golint)
    • Line 18: warning: exported type FakeRequest should have comment or be unexported (golint)
    • Line 27: warning: exported function WrapperTestCommand 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!