Preparing report...

Report for github.com/theurichde/go-aws-sso

(v0.4.0)

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


golint41%

Golint is a linter for Go source code.

    • internal/aws.go
    • Line 23: warning: exported var AwsRegions should have comment or be unexported (golint)
    • Line 49: warning: exported type ClientInformation should have comment or be unexported (golint)
    • Line 59: warning: exported type Timer should have comment or be unexported (golint)
    • Line 63: warning: exported type Time should have comment or be unexported (golint)
    • Line 66: warning: exported method Time.Now should have comment or be unexported (golint)
    • Line 70: warning: exported function ClientInfoFileDestination should have comment or be unexported (golint)
    • Line 75: warning: exported method ClientInformation.IsExpired should have comment or be unexported (golint)
    • Line 100: warning: exported function HandleOutdatedAccessToken should have comment or be unexported (golint)
    • Line 114: warning: exported function RegisterClient should have comment or be unexported (golint)
    • Line 140: warning: exported function RetrieveToken should have comment or be unexported (golint)
    • Line 162: warning: exported function InitClients should have comment or be unexported (golint)
    • Line 174: warning: exported function RetrieveRoleInfo should have comment or be unexported (golint)
    • Line 196: warning: exported function RetrieveAccountInfo should have comment or be unexported (golint)
    • internal/config.go
    • Line 13: warning: exported type AppConfig should have comment or be unexported (golint)
    • Line 30: warning: exported function GenerateConfigAction should have comment or be unexported (golint)
    • Line 45: warning: exported function EditConfigAction should have comment or be unexported (golint)
    • Line 59: warning: exported function ReadConfig should have comment or be unexported (golint)
    • Line 85: warning: exported function ConfigFilePath should have comment or be unexported (golint)
    • internal/file_system.go
    • Line 14: warning: exported function ProcessCredentialsTemplate should have comment or be unexported (golint)
    • Line 32: warning: exported function WriteAWSCredentialsFile should have comment or be unexported (golint)
    • Line 48: warning: exported function IsFileOrFolderExisting should have comment or be unexported (golint)
    • Line 59: warning: exported function ReadClientInformation should have comment or be unexported (golint)
    • Line 70: warning: exported function WriteStructToFile should have comment or be unexported (golint)
    • internal/prompt.go
    • Line 9: warning: exported type Prompt should have comment or be unexported (golint)
    • Line 14: warning: exported type Prompter should have comment or be unexported (golint)
    • Line 17: warning: exported method Prompter.Select should have comment or be unexported (golint)
    • Line 30: warning: exported method Prompter.Prompt should have comment or be unexported (golint)
    • Line 48: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • internal/refresh.go
    • Line 15: warning: exported type LastUsageInformation should have comment or be unexported (golint)
    • Line 21: warning: exported function RefreshCredentials should have comment or be unexported (golint)
    • Line 56: warning: exported function SaveUsageInformation should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!