Preparing report...

Report for github.com/xplorfin/lnurlauth

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


golint42%

Golint is a linter for Go source code.

    • lnurlauth/integration/server.go
    • Line 16: warning: comment on exported const CookieName should be of the form "CookieName ..." (golint)
    • Line 22: warning: comment on exported function ParseUrl should be of the form "ParseUrl ..." (golint)
    • Line 55: warning: comment on exported function GenerateServer should be of the form "GenerateServer ..." (golint)
    • lnurlauth/storage/cookie_store.go
    • Line 16: warning: exported function CookieStore should have comment or be unexported (golint)
    • Line 23: warning: exported method CookieRequestStore.Set should have comment or be unexported (golint)
    • Line 27: warning: exported method CookieRequestStore.Get should have comment or be unexported (golint)
    • Line 35: warning: exported method CookieRequestStore.Remove should have comment or be unexported (golint)
    • lnurlauth/storage/memory_store.go
    • Line 10: warning: exported type MemorySessionStore should have comment or be unexported (golint)
    • Line 27: warning: exported method MemorySessionStore.GetK1 should have comment or be unexported (golint)
    • Line 33: warning: exported method MemorySessionStore.SetK1 should have comment or be unexported (golint)
    • Line 39: warning: exported method MemorySessionStore.RemoveK1 should have comment or be unexported (golint)
    • Line 45: warning: exported method MemorySessionStore.GetJwt should have comment or be unexported (golint)
    • Line 51: warning: exported method MemorySessionStore.SetJwt should have comment or be unexported (golint)
    • Line 57: warning: exported method MemorySessionStore.RemoveJwt should have comment or be unexported (golint)
    • Line 63: warning: exported method MemorySessionStore.Remove should have comment or be unexported (golint)
    • lnurlauth/integration/crypto.go
    • Line 10: warning: comment on exported type SignedMessage should be of the form "SignedMessage ..." (with optional leading article) (golint)
    • Line 52: warning: comment on exported function SignCallbackUrl should be of the form "SignCallbackUrl ..." (golint)
    • lnurlauth/integration/login.tpl.go
    • Line 5: warning: comment on exported type LoginPageData should be of the form "LoginPageData ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported var HomeTpl should be of the form "HomeTpl ..." (golint)
    • Line 29: warning: comment on exported var LoginPage should be of the form "LoginPage ..." (golint)
    • lnurlauth/integration/test_runner.go
    • Line 11: warning: should not use dot imports (golint)
    • Line 14: warning: comment on exported type TestRunner should be of the form "TestRunner ..." (with optional leading article) (golint)
    • Line 24: warning: comment on exported method TestRunner.Get should be of the form "Get ..." (golint)
    • Line 35: warning: comment on exported method TestRunner.GetAuthStatus should be of the form "GetAuthStatus ..." (golint)
    • Line 44: warning: comment on exported method TestRunner.GetLoginPage should be of the form "GetLoginPage ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words