Preparing report...

Report for github.com/davidrjonas/ssh-iam-bridge

A+    Excellent!    Found 7 issues across 11 files

Tweet

gofmt90%

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!


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.

    • ssh-iam-bridge/strarray/strarray.go
    • Line 10: warning: exported function Contains should have comment or be unexported (golint)
    • Line 27: warning: exported function ContainsAll should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function Diff should be of the form "Diff ..." (golint)
    • Line 61: warning: exported function Unique should have comment or be unexported (golint)
    • Line 80: warning: exported function Filter should have comment or be unexported (golint)
    • Line 94: warning: exported function WriteFile should have comment or be unexported (golint)
    • Line 115: warning: exported function ReadFile should have comment or be unexported (golint)
    • ssh-iam-bridge/unix/unix.go
    • Line 12: warning: exported function AddToGroup should have comment or be unexported (golint)
    • Line 19: warning: exported function RemoveFromGroup should have comment or be unexported (golint)
    • Line 26: warning: exported function UsersInGroup should have comment or be unexported (golint)
    • Line 51: warning: exported function EnsureGroup should have comment or be unexported (golint)
    • Line 66: warning: exported function UserExists should have comment or be unexported (golint)
    • Line 79: warning: exported function UserID should have comment or be unexported (golint)
    • Line 94: warning: exported function EnsureUser should have comment or be unexported (golint)
    • ssh-iam-bridge/directory/groups.go
    • Line 15: warning: don't use underscores in Go names; var without_group should be withoutGroup (golint)
    • Line 39: warning: exported function GetGroups should have comment or be unexported (golint)
    • Line 54: warning: exported function GetGroupUsers should have comment or be unexported (golint)
    • ssh-iam-bridge/directory/role.go
    • Line 10: warning: exported type ARN should have comment or be unexported (golint)
    • Line 18: warning: exported type IamInfo should have comment or be unexported (golint)
    • Line 38: warning: comment on exported function GetRole should be of the form "GetRole ..." (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!