Preparing report...

Report for github.com/timakin/md2mid

B    Not bad!    Found 5 issues across 4 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!


golint25%

Golint is a linter for Go source code.

    • md2mid/util/util.go
    • Line 15: warning: exported type FrontmatterOption should have comment or be unexported (golint)
    • Line 23: warning: exported const TokenFileName should have comment or be unexported (golint)
    • Line 25: warning: exported function WriteAccessToken should have comment or be unexported (golint)
    • Line 40: warning: exported function GetAccessToken should have comment or be unexported (golint)
    • Line 66: warning: exported function ParseOpts should have comment or be unexported (golint)
    • Line 89: warning: exported function GetMyId should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

    • md2mid/util/util.go
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: could not import github.com/ericaro/frontmatter (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/medium/medium-sdk-go (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/mitchellh/go-homedir (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/skratchdot/open-golang/open (invalid package name: "") (ineffassign)
    • md2mid/main.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/timakin/md2mid/command (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)
    • md2mid/command/publish.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/medium/medium-sdk-go (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/skratchdot/open-golang/open (invalid package name: "") (ineffassign)
    • md2mid/command/init.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/timakin/md2mid/util (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/urfave/cli (invalid package name: "") (ineffassign)

misspell75%

Misspell Finds commonly misspelled English words