Preparing report...

Report for github.com/hiroaki-yamamoto/recaptcha

A+    Excellent!    Found 2 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!


golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign50%

IneffAssign detects ineffectual assignments in Go code.

    • recaptcha/recaptcha_suite_test.go
    • Line 8: warning: no required module provides package github.com/hiroaki-yamamoto/recaptcha/mocks; to add it: (ineffassign)
    • Line 9: warning: missing go.sum entry for module providing package github.com/onsi/ginkgo (imported by github.com/hiroaki-yamamoto/recaptcha); to add: (ineffassign)
    • Line 10: warning: missing go.sum entry for module providing package github.com/onsi/gomega (imported by github.com/hiroaki-yamamoto/recaptcha); to add: (ineffassign)
    • Line 8: warning: could not import github.com/hiroaki-yamamoto/recaptcha/mocks (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/onsi/ginkgo (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/onsi/gomega (invalid package name: "") (ineffassign)
    • Line 22: warning: undeclared name: BeforeEach (ineffassign)
    • Line 29: warning: undeclared name: AfterEach (ineffassign)
    • Line 18: warning: undeclared name: RegisterFailHandler (ineffassign)
    • Line 18: warning: undeclared name: Fail (ineffassign)
    • Line 19: warning: undeclared name: RunSpecs (ineffassign)
    • Line 23: warning: undeclared name: GinkgoT (ineffassign)
    • Line 9: warning: "github.com/onsi/ginkgo" imported but not used (ineffassign)
    • Line 10: warning: "github.com/onsi/gomega" imported but not used (ineffassign)
    • recaptcha/recaptcha_test.go
    • Line 19: warning: undeclared name: Describe (ineffassign)
    • Line 20: warning: undeclared name: Context (ineffassign)
    • Line 31: warning: undeclared name: Expect (ineffassign)
    • Line 31: warning: undeclared name: Succeed (ineffassign)
    • Line 36: warning: undeclared name: BeforeEach (ineffassign)
    • Line 47: warning: undeclared name: Context (ineffassign)
    • Line 49: warning: undeclared name: BeforeEach (ineffassign)
    • Line 56: warning: undeclared name: It (ineffassign)
    • Line 58: warning: undeclared name: Expect (ineffassign)
    • Line 58: warning: undeclared name: Succeed (ineffassign)
    • Line 59: warning: undeclared name: Expect (ineffassign)
    • Line 59: warning: undeclared name: Equal (ineffassign)
    • Line 63: warning: undeclared name: Context (ineffassign)
    • Line 65: warning: undeclared name: BeforeEach (ineffassign)
    • Line 72: warning: undeclared name: It (ineffassign)
    • Line 74: warning: undeclared name: Expect (ineffassign)
    • Line 74: warning: undeclared name: Succeed (ineffassign)
    • Line 75: warning: undeclared name: Expect (ineffassign)
    • Line 75: warning: undeclared name: Equal (ineffassign)
    • Line 79: warning: undeclared name: Context (ineffassign)
    • Line 82: warning: undeclared name: BeforeEach (ineffassign)
    • Line 94: warning: undeclared name: It (ineffassign)
    • Line 96: warning: undeclared name: Expect (ineffassign)
    • Line 96: warning: undeclared name: BeNil (ineffassign)
    • Line 97: warning: undeclared name: Expect (ineffassign)
    • Line 97: warning: undeclared name: Equal (ineffassign)
    • Line 100: warning: undeclared name: Expect (ineffassign)
    • Line 100: warning: undeclared name: BeNil (ineffassign)
    • Line 104: warning: undeclared name: Context (ineffassign)
    • Line 107: warning: undeclared name: BeforeEach (ineffassign)
    • Line 119: warning: undeclared name: It (ineffassign)
    • Line 121: warning: undeclared name: Expect (ineffassign)
    • Line 121: warning: undeclared name: MatchError (ineffassign)
    • Line 124: warning: undeclared name: Expect (ineffassign)
    • Line 124: warning: undeclared name: Equal (ineffassign)
    • Line 127: warning: undeclared name: Expect (ineffassign)
    • Line 127: warning: undeclared name: BeNil (ineffassign)
    • Line 131: warning: undeclared name: Context (ineffassign)
    • Line 132: warning: undeclared name: BeforeEach (ineffassign)
    • Line 135: warning: undeclared name: It (ineffassign)
    • Line 137: warning: undeclared name: Expect (ineffassign)
    • Line 137: warning: undeclared name: MatchError (ineffassign)
    • Line 138: warning: undeclared name: Expect (ineffassign)
    • Line 138: warning: undeclared name: BeNil (ineffassign)
    • Line 142: warning: undeclared name: Context (ineffassign)
    • Line 143: warning: undeclared name: BeforeEach (ineffassign)
    • Line 146: warning: undeclared name: It (ineffassign)
    • Line 148: warning: undeclared name: Expect (ineffassign)
    • Line 148: warning: undeclared name: Succeed (ineffassign)
    • Line 149: warning: undeclared name: Expect (ineffassign)
    • Line 149: warning: undeclared name: BeTrue (ineffassign)
    • Line 13: warning: "github.com/onsi/ginkgo" imported but not used (ineffassign)
    • Line 14: warning: "github.com/onsi/gomega" imported but not used (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!