Preparing report...

Report for github.com/Bplotka/go-httplog

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


gocyclo83%

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.

    • go-httplog/http.go
    • Line 226: warning: cyclomatic complexity 16 of function (RequestField).computeValue() is high (> 15) (gocyclo)

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!


ineffassign16%

IneffAssign detects ineffectual assignments in Go code.

    • go-httplog/echo/middleware.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/Bplotka/go-httplog (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/labstack/echo (invalid package name: "") (ineffassign)
    • Line 9: warning: undeclared name: httplog (ineffassign)
    • Line 9: warning: undeclared name: httplog (ineffassign)
    • Line 10: warning: undeclared name: httplog (ineffassign)
    • Line 4: warning: "github.com/Bplotka/go-httplog" imported but not used (ineffassign)
    • go-httplog/logrus/log.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/Bplotka/go-httplog (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 13: warning: undeclared name: httplog (ineffassign)
    • Line 20: warning: undeclared name: httplog (ineffassign)
    • Line 20: warning: undeclared name: httplog (ineffassign)
    • Line 34: warning: undeclared name: httplog (ineffassign)
    • Line 41: warning: undeclared name: httplog (ineffassign)
    • Line 41: warning: undeclared name: httplog (ineffassign)
    • Line 26: warning: l.Info undefined (type *infoLogger has no field or method Info) (ineffassign)
    • Line 47: warning: l.Debug undefined (type *debugLogger has no field or method Debug) (ineffassign)
    • Line 4: warning: "github.com/Bplotka/go-httplog" imported but not used (ineffassign)
    • Line 4: warning: could not import github.com/Bplotka/go-httplog (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/sirupsen/logrus (invalid package name: "") (ineffassign)
    • Line 13: warning: undeclared name: httplog (ineffassign)
    • Line 20: warning: undeclared name: httplog (ineffassign)
    • Line 20: warning: undeclared name: httplog (ineffassign)
    • Line 34: warning: undeclared name: httplog (ineffassign)
    • Line 41: warning: undeclared name: httplog (ineffassign)
    • Line 41: warning: undeclared name: httplog (ineffassign)
    • Line 26: warning: l.Info undefined (type *infoLogger has no field or method Info) (ineffassign)
    • Line 47: warning: l.Debug undefined (type *debugLogger has no field or method Debug) (ineffassign)
    • Line 4: warning: "github.com/Bplotka/go-httplog" imported but not used (ineffassign)
    • go-httplog/mock_field_logger.go
    • Line 3: warning: cannot find package "." in: (ineffassign)
    • Line 3: warning: could not import github.com/stretchr/testify/mock (invalid package name: "") (ineffassign)
    • Line 12: warning: _m.Called undefined (type *MockFieldLogger has no field or method Called) (ineffassign)
    • Line 17: warning: _m.Called undefined (type *MockFieldLogger has no field or method Called) (ineffassign)
    • Line 33: warning: _m.Called undefined (type *MockFieldLogger has no field or method Called) (ineffassign)
    • Line 3: warning: could not import github.com/stretchr/testify/mock (invalid package name: "") (ineffassign)
    • Line 12: warning: _m.Called undefined (type *MockFieldLogger has no field or method Called) (ineffassign)
    • Line 17: warning: _m.Called undefined (type *MockFieldLogger has no field or method Called) (ineffassign)
    • Line 33: warning: _m.Called undefined (type *MockFieldLogger has no field or method Called) (ineffassign)
    • go-httplog/http_test.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 13: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/magiconair/properties/assert (invalid package name: "") (ineffassign)
    • Line 13: warning: could not import github.com/stretchr/testify/require (invalid package name: "") (ineffassign)
    • Line 36: warning: mLogger.AssertExpectations undefined (type *MockFieldLogger has no field or method AssertExpectations) (ineffassign)
    • Line 42: warning: mLogger.On undefined (type *MockFieldLogger has no field or method On) (ineffassign)
    • Line 49: warning: mLogger.On undefined (type *MockFieldLogger has no field or method On) (ineffassign)
    • Line 63: warning: mLogger.AssertExpectations undefined (type *MockFieldLogger has no field or method AssertExpectations) (ineffassign)
    • Line 69: warning: mLogger.On undefined (type *MockFieldLogger has no field or method On) (ineffassign)
    • Line 75: warning: mLogger.On undefined (type *MockFieldLogger has no field or method On) (ineffassign)
    • Line 112: warning: mLogger.AssertExpectations undefined (type *MockFieldLogger has no field or method AssertExpectations) (ineffassign)
    • Line 118: warning: mLogger.On undefined (type *MockFieldLogger has no field or method On) (ineffassign)
    • Line 125: warning: mLogger.On undefined (type *MockFieldLogger has no field or method On) (ineffassign)
    • Line 149: warning: mLogger.AssertExpectations undefined (type *MockFieldLogger has no field or method AssertExpectations) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!