Preparing report...

Report for github.com/candy12t/deepl-cli

(v0.2.0)

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


golint40%

Golint is a linter for Go source code.

    • test/helper.go
    • Line 7: warning: exported function AssertError should have comment or be unexported (golint)
    • internal/cmd/setup/setup.go
    • Line 20: warning: exported function Setup should have comment or be unexported (golint)
    • Line 30: warning: exported function PromptSetup should have comment or be unexported (golint)
    • internal/deepl/deepl.go
    • Line 16: warning: exported type APIClient should have comment or be unexported (golint)
    • Line 20: warning: exported var ErrMissingAuthKey should have comment or be unexported (golint)
    • Line 22: warning: exported type Client should have comment or be unexported (golint)
    • Line 28: warning: exported function NewClient should have comment or be unexported (golint)
    • internal/deepl/translate.go
    • Line 9: warning: exported const TRANSLATE should have comment or be unexported (golint)
    • Line 11: warning: exported type Translate should have comment or be unexported (golint)
    • Line 15: warning: exported type Translation should have comment or be unexported (golint)
    • Line 20: warning: exported method Client.Translate should have comment or be unexported (golint)
    • Line 46: warning: exported method Translate.TranslateText should have comment or be unexported (golint)
    • internal/cmd/cmd/cmd.go
    • Line 22: warning: exported type CLI should have comment or be unexported (golint)
    • Line 30: warning: exported function NewCLI should have comment or be unexported (golint)
    • Line 39: warning: exported method CLI.Run should have comment or be unexported (golint)
    • internal/cmd/repl/repl.go
    • Line 13: warning: exported const PROMPT should have comment or be unexported (golint)
    • Line 15: warning: exported function Repl should have comment or be unexported (golint)
    • internal/config/config.go
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 16: warning: exported type Account should have comment or be unexported (golint)
    • Line 21: warning: exported type DefaultLang should have comment or be unexported (golint)
    • Line 26: warning: exported function ConfigFile should have comment or be unexported (golint)
    • Line 31: warning: exported function ParseConfig should have comment or be unexported (golint)
    • Line 45: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 73: warning: exported function WriteConfigFile should have comment or be unexported (golint)
    • Line 90: warning: exported method Config.DefaultLangs should have comment or be unexported (golint)
    • Line 94: warning: exported method Config.AuthKey should have comment or be unexported (golint)
    • internal/config/config_error.go
    • Line 4: warning: exported const ErrNotReadFile should have comment (or a comment on this block) or be unexported (golint)
    • Line 8: warning: exported type ConfigErr should have comment or be unexported (golint)
    • internal/deepl/error.go
    • Line 11: warning: exported type HTTPError should have comment or be unexported (golint)
    • Line 24: warning: exported function HandleHTTPError 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!