Preparing report...

Report for github.com/codeactual/aws-exec-cmd

A+    Excellent!    Found 27 issues across 41 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!


gocyclo92%

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.


golint41%

Golint is a linter for Go source code.

    • aws-exec-cmd/internal/cage/os/exec/exec.go
    • Line 7: warning: package comment should be of the form "Package exec ..." (golint)
    • Line 31: warning: exported const SigIntDelay should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported type Result should have comment or be unexported (golint)
    • Line 52: warning: exported type PipelineResult should have comment or be unexported (golint)
    • Line 355: warning: exported function ArgToCmd should have comment or be unexported (golint)
    • aws-exec-cmd/mixin/mixin.go
    • Line 28: warning: exported type Exec should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method Exec.BindCobraFlags should be of the form "BindCobraFlags ..." (golint)
    • Line 42: warning: comment on exported method Exec.Name should be of the form "Name ..." (golint)
    • Line 47: warning: comment on exported method Exec.PreRun should be of the form "PreRun ..." (golint)
    • Line 52: warning: exported method Exec.Do should have comment or be unexported (golint)
    • Line 83: warning: exported function New should have comment or be unexported (golint)
    • aws-exec-cmd/internal/cage/cli/handler/mixin/aws/auth/auth.go
    • Line 28: warning: exported const DefaultSessionTtlSec should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type ProviderInput should have comment or be unexported (golint)
    • Line 46: warning: exported type Provider should have comment or be unexported (golint)
    • Line 50: warning: exported type Mixin should have comment or be unexported (golint)
    • Line 70: warning: comment on exported method Mixin.BindCobraFlags should be of the form "BindCobraFlags ..." (golint)
    • Line 86: warning: comment on exported method Mixin.Name should be of the form "Name ..." (golint)
    • Line 91: warning: comment on exported method Mixin.PreRun should be of the form "PreRun ..." (golint)
    • Line 97: warning: exported method Mixin.Credentials should have comment or be unexported (golint)
    • aws-exec-cmd/internal/cage/google/auth/auth.go
    • Line 25: warning: exported type RefreshResponse should have comment or be unexported (golint)
    • Line 42: warning: comment on exported const RefreshTokenUrlVer4 should be of the form "RefreshTokenUrlVer4 ..." (golint)
    • Line 46: warning: exported function ClientFromRefreshToken should have comment or be unexported (golint)
    • Line 55: warning: exported function RequestRefresh should have comment or be unexported (golint)
    • aws-exec-cmd/internal/cage/cli/handler/mixin/aws/auth/idp/idp.go
    • Line 28: warning: exported type Mixin should have comment or be unexported (golint)
    • Line 38: warning: comment on exported method Mixin.BindCobraFlags should be of the form "BindCobraFlags ..." (golint)
    • Line 51: warning: comment on exported method Mixin.Name should be of the form "Name ..." (golint)
    • Line 56: warning: comment on exported method Mixin.PreRun should be of the form "PreRun ..." (golint)
    • Line 84: warning: exported method Mixin.Get should have comment or be unexported (golint)
    • aws-exec-cmd/internal/cage/strings/set.go
    • Line 11: warning: exported type Set should have comment or be unexported (golint)
    • Line 26: warning: exported method Set.Add should have comment or be unexported (golint)
    • Line 39: warning: exported method Set.AddSet should have comment or be unexported (golint)
    • Line 52: warning: exported method Set.AddSlice should have comment or be unexported (golint)
    • Line 65: warning: exported method Set.Remove should have comment or be unexported (golint)
    • Line 77: warning: exported method Set.Contains should have comment or be unexported (golint)
    • Line 85: warning: exported method Set.Len should have comment or be unexported (golint)
    • Line 92: warning: exported method Set.Slice should have comment or be unexported (golint)
    • Line 103: warning: exported method Set.Copy should have comment or be unexported (golint)
    • Line 114: warning: exported method Set.Equals should have comment or be unexported (golint)
    • Line 134: warning: exported method Set.Clear should have comment or be unexported (golint)
    • Line 143: warning: exported method Set.SortedSlice should have comment or be unexported (golint)
    • Line 151: warning: exported method Set.SortedReverseSlice should have comment or be unexported (golint)
    • aws-exec-cmd/internal/cage/strings/strings.go
    • Line 15: warning: comment on exported function TruncateAppendHint should be of the form "TruncateAppendHint ..." (golint)
    • Line 23: warning: comment on exported function TruncatePrependHint should be of the form "TruncatePrependHint ..." (golint)
    • Line 66: warning: exported function SliceOfSlice should have comment or be unexported (golint)
    • Line 82: warning: exported function SortStable should have comment or be unexported (golint)
    • Line 86: warning: exported function SortReverseStable should have comment or be unexported (golint)
    • Line 90: warning: comment on exported function StringKeyPtr should be of the form "StringKeyPtr ..." (golint)
    • aws-exec-cmd/internal/cage/cli/handler/handler.go
    • Line 7: warning: package comment should be of the form "Package handler ..." (golint)
    • Line 38: warning: exported type Mixin should have comment or be unexported (golint)
    • Line 110: warning: exported method DefaultSession.Err should have comment or be unexported (golint)
    • Line 117: warning: exported method DefaultSession.Out should have comment or be unexported (golint)
    • Line 124: warning: exported method DefaultSession.In should have comment or be unexported (golint)
    • Line 144: warning: exported method DefaultSession.SetErr should have comment or be unexported (golint)
    • Line 148: warning: exported method DefaultSession.SetOut should have comment or be unexported (golint)
    • Line 152: warning: exported method DefaultSession.SetIn should have comment or be unexported (golint)
    • Line 156: warning: exported method DefaultSession.OnSignal should have comment or be unexported (golint)
    • Line 176: warning: exported method DefaultSession.ExitOnErr should have comment or be unexported (golint)
    • Line 190: warning: exported method DefaultSession.ExitOnErrShort should have comment or be unexported (golint)
    • Line 204: warning: exported method DefaultSession.ExitOnErrsShort should have comment or be unexported (golint)
    • Line 219: warning: exported method DefaultSession.Exitf should have comment or be unexported (golint)
    • Line 230: warning: exported function Version 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!


misspell95%

Misspell Finds commonly misspelled English words