Preparing report...

Report for github.com/k8s-tamias/gitlab-k8s-integrator

A    Great!    Found 15 issues across 19 files

Tweet

gofmt94%

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!


gocyclo84%

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.


golint26%

Golint is a linter for Go source code.

    • gitlab-k8s-integrator/k8sclient/k8s_client_common.go
    • Line 18: warning: exported function GetAllGitlabOriginNamesFromNamespacesWithOriginLabel should have comment or be unexported (golint)
    • Line 66: warning: comment on exported function GetRoleBindingsByNamespace should be of the form "GetRoleBindingsByNamespace ..." (golint)
    • Line 82: warning: exported function ConstructRoleBindingName should have comment or be unexported (golint)
    • Line 86: warning: exported function GetProjectRoleName should have comment or be unexported (golint)
    • Line 114: warning: exported function GetGroupRoleName should have comment or be unexported (golint)
    • Line 144: warning: exported function GitlabNameToK8sNamespace should have comment or be unexported (golint)
    • Line 171: warning: exported function GitlabNameToK8sLabel should have comment or be unexported (golint)
    • gitlab-k8s-integrator/gitlabclient/gitlab_client_common.go
    • Line 9: warning: exported const UserStateBlocked should have comment or be unexported (golint)
    • Line 11: warning: exported type GitlabGroup should have comment or be unexported (golint)
    • Line 17: warning: exported type GitlabProject should have comment or be unexported (golint)
    • Line 26: warning: exported type Namespace should have comment or be unexported (golint)
    • Line 34: warning: exported type Links should have comment or be unexported (golint)
    • Line 38: warning: exported type GitlabUser should have comment or be unexported (golint)
    • Line 43: warning: exported type Member should have comment or be unexported (golint)
    • Line 51: warning: exported type GitlabContent should have comment or be unexported (golint)
    • gitlab-k8s-integrator/gitlabclient/gitlab_read_client.go
    • Line 1: warning: package comment should be of the form "Package gitlabclient ..." (golint)
    • Line 1: warning: package comment should not have leading space (golint)
    • Line 30: warning: exported function GetFullGitlabContent should have comment or be unexported (golint)
    • Line 49: warning: exported function GetAllGroups should have comment or be unexported (golint)
    • Line 88: warning: exported function GetAllProjects should have comment or be unexported (golint)
    • Line 126: warning: exported function GetAllUsers should have comment or be unexported (golint)
    • Line 158: warning: comment on exported function TranslateIntAccessLevels should be of the form "TranslateIntAccessLevels ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign89%

IneffAssign detects ineffectual assignments in Go code.


misspell78%

Misspell Finds commonly misspelled English words