Preparing report...

Report for github.com/writeas/writeas-cli

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


gocyclo93%

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.


golint54%

Golint is a linter for Go source code.

    • writeas-cli/commands/commands.go
    • Line 18: warning: exported function CmdPost should have comment or be unexported (golint)
    • Line 32: warning: exported function CmdNew should have comment or be unexported (golint)
    • Line 69: warning: exported function CmdPublish should have comment or be unexported (golint)
    • Line 93: warning: exported function CmdDelete should have comment or be unexported (golint)
    • Line 125: warning: exported function CmdUpdate should have comment or be unexported (golint)
    • Line 157: warning: exported function CmdGet should have comment or be unexported (golint)
    • Line 176: warning: exported function CmdAdd should have comment or be unexported (golint)
    • Line 190: warning: exported function CmdListPosts should have comment or be unexported (golint)
    • Line 301: warning: exported function CmdCollections should have comment or be unexported (golint)
    • Line 336: warning: exported function CmdClaim should have comment or be unexported (golint)
    • Line 383: warning: exported function CmdAuth should have comment or be unexported (golint)
    • Line 440: warning: exported function CmdLogOut should have comment or be unexported (golint)
    • writeas-cli/api/posts.go
    • Line 45: warning: exported function AddPost should have comment or be unexported (golint)
    • Line 65: warning: comment on exported function ClaimPosts should be of the form "ClaimPosts ..." (golint)
    • Line 91: warning: exported function TokenFromID should have comment or be unexported (golint)
    • Line 106: warning: exported function RemovePost should have comment or be unexported (golint)
    • Line 112: warning: exported function GetPosts should have comment or be unexported (golint)
    • Line 132: warning: exported function GetUserPosts should have comment or be unexported (golint)
    • Line 213: warning: exported function ComposeNewPost should have comment or be unexported (golint)
    • Line 267: warning: exported function WritePost should have comment or be unexported (golint)
    • Line 283: warning: exported function ReadStdIn should have comment or be unexported (golint)
    • writeas-cli/config/config.go
    • Line 39: warning: exported function LoadConfig should have comment or be unexported (golint)
    • Line 55: warning: exported function SaveConfig should have comment or be unexported (golint)
    • Line 67: warning: exported function GetConfiguredEditor should have comment or be unexported (golint)
    • writeas-cli/config/files_nix.go
    • Line 14: warning: exported const NoEditorErr should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported function EditPostCmd should have comment or be unexported (golint)
    • Line 42: warning: exported function MessageRetryCompose should have comment or be unexported (golint)
    • writeas-cli/config/options.go
    • Line 23: warning: exported function UserAgent should have comment or be unexported (golint)
    • Line 36: warning: exported function IsTor should have comment or be unexported (golint)
    • Line 40: warning: exported function TorPort should have comment or be unexported (golint)
    • Line 47: warning: exported function TorURL should have comment or be unexported (golint)
    • Line 59: warning: exported function Language should have comment or be unexported (golint)
    • Line 75: warning: exported function Collection should have comment or be unexported (golint)
    • writeas-cli/api/api.go
    • Line 16: warning: exported function HostURL should have comment or be unexported (golint)
    • Line 285: warning: exported function DoLogIn should have comment or be unexported (golint)
    • Line 307: warning: exported function DoLogOut should have comment or be unexported (golint)
    • writeas-cli/config/user.go
    • Line 13: warning: exported function LoadUser should have comment or be unexported (golint)
    • Line 45: warning: exported function DeleteUser should have comment or be unexported (golint)
    • Line 98: warning: exported function SaveUser should have comment or be unexported (golint)
    • writeas-cli/api/sync.go
    • Line 18: warning: exported const PostFileExt should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported function CmdPull should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!