Preparing report...

Report for github.com/Drakkar-Software/Errors-Server

B    Not bad!    Found 12 issues across 7 files

Tweet

gofmt42%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


ineffassign-14%

IneffAssign detects ineffectual assignments in Go code.

    • /home/shawn/go/pkg/mod/github.com/labstack/echo/v4@v4.5.0/middleware/logger.go
    • Line 14: warning: missing go.sum entry for module providing package github.com/valyala/fasttemplate (imported by github.com/labstack/echo/v4/middleware); to add: (ineffassign)
    • Line 13: warning: echo redeclared in this block (ineffassign)
    • Line 12: warning: other declaration of echo (ineffassign)
    • Line 14: warning: could not import github.com/valyala/fasttemplate (invalid package name: "") (ineffassign)
    • Line 62: warning: undeclared name: color (ineffassign)
    • Line 76: warning: undeclared name: color (ineffassign)
    • Line 14: warning: missing go.sum entry for module providing package github.com/valyala/fasttemplate (imported by github.com/labstack/echo/v4/middleware); to add: (ineffassign)
    • Line 13: warning: echo redeclared in this block (ineffassign)
    • Line 12: warning: other declaration of echo (ineffassign)
    • Line 14: warning: could not import github.com/valyala/fasttemplate (invalid package name: "") (ineffassign)
    • Line 62: warning: undeclared name: color (ineffassign)
    • Line 76: warning: undeclared name: color (ineffassign)
    • /home/shawn/go/pkg/mod/go.mongodb.org/mongo-driver@v1.7.1/x/bsonx/bsoncore/document.go
    • Line 16: warning: missing go.sum entry for module providing package github.com/go-stack/stack (imported by go.mongodb.org/mongo-driver/x/bsonx/bsoncore); to add: (ineffassign)
    • Line 16: warning: could not import github.com/go-stack/stack (invalid package name: "") (ineffassign)
    • Line 16: warning: missing go.sum entry for module providing package github.com/go-stack/stack (imported by go.mongodb.org/mongo-driver/x/bsonx/bsoncore); to add: (ineffassign)
    • Line 16: warning: could not import github.com/go-stack/stack (invalid package name: "") (ineffassign)
    • Line 16: warning: missing go.sum entry for module providing package github.com/go-stack/stack (imported by go.mongodb.org/mongo-driver/x/bsonx/bsoncore); to add: (ineffassign)
    • Line 16: warning: could not import github.com/go-stack/stack (invalid package name: "") (ineffassign)
    • Line 16: warning: missing go.sum entry for module providing package github.com/go-stack/stack (imported by go.mongodb.org/mongo-driver/x/bsonx/bsoncore); to add: (ineffassign)
    • Line 16: warning: could not import github.com/go-stack/stack (invalid package name: "") (ineffassign)
    • Line 16: warning: missing go.sum entry for module providing package github.com/go-stack/stack (imported by go.mongodb.org/mongo-driver/x/bsonx/bsoncore); to add: (ineffassign)
    • Line 16: warning: could not import github.com/go-stack/stack (invalid package name: "") (ineffassign)
    • Line 16: warning: missing go.sum entry for module providing package github.com/go-stack/stack (imported by go.mongodb.org/mongo-driver/x/bsonx/bsoncore); to add: (ineffassign)
    • Line 16: warning: could not import github.com/go-stack/stack (invalid package name: "") (ineffassign)
    • /home/shawn/go/pkg/mod/go.mongodb.org/mongo-driver@v1.7.1/x/mongo/driver/compression.go
    • Line 15: warning: missing go.sum entry for module providing package github.com/golang/snappy (imported by go.mongodb.org/mongo-driver/x/mongo/driver); to add: (ineffassign)
    • Line 15: warning: could not import github.com/golang/snappy (invalid package name: "") (ineffassign)
    • Line 15: warning: missing go.sum entry for module providing package github.com/golang/snappy (imported by go.mongodb.org/mongo-driver/x/mongo/driver); to add: (ineffassign)
    • Line 15: warning: could not import github.com/golang/snappy (invalid package name: "") (ineffassign)
    • Line 15: warning: missing go.sum entry for module providing package github.com/golang/snappy (imported by go.mongodb.org/mongo-driver/x/mongo/driver); to add: (ineffassign)
    • Line 15: warning: could not import github.com/golang/snappy (invalid package name: "") (ineffassign)
    • Line 15: warning: missing go.sum entry for module providing package github.com/golang/snappy (imported by go.mongodb.org/mongo-driver/x/mongo/driver); to add: (ineffassign)
    • Line 15: warning: could not import github.com/golang/snappy (invalid package name: "") (ineffassign)
    • Line 15: warning: missing go.sum entry for module providing package github.com/golang/snappy (imported by go.mongodb.org/mongo-driver/x/mongo/driver); to add: (ineffassign)
    • Line 15: warning: could not import github.com/golang/snappy (invalid package name: "") (ineffassign)
    • Line 15: warning: missing go.sum entry for module providing package github.com/golang/snappy (imported by go.mongodb.org/mongo-driver/x/mongo/driver); to add: (ineffassign)
    • Line 15: warning: could not import github.com/golang/snappy (invalid package name: "") (ineffassign)
    • /home/shawn/go/pkg/mod/github.com/labstack/echo/v4@v4.5.0/echo.go
    • Line 58: warning: missing go.sum entry for module providing package github.com/labstack/gommon/color (imported by github.com/labstack/echo/v4); to add: (ineffassign)
    • Line 59: warning: missing go.sum entry for module providing package github.com/labstack/gommon/log (imported by github.com/labstack/echo/v4); to add: (ineffassign)
    • Line 58: warning: could not import github.com/labstack/gommon/color (invalid package name: "") (ineffassign)
    • Line 59: warning: could not import github.com/labstack/gommon/log (invalid package name: "") (ineffassign)
    • Line 58: warning: missing go.sum entry for module providing package github.com/labstack/gommon/color (imported by github.com/labstack/echo/v4); to add: (ineffassign)
    • Line 59: warning: missing go.sum entry for module providing package github.com/labstack/gommon/log (imported by github.com/labstack/echo/v4); to add: (ineffassign)
    • Line 58: warning: could not import github.com/labstack/gommon/color (invalid package name: "") (ineffassign)
    • Line 59: warning: could not import github.com/labstack/gommon/log (invalid package name: "") (ineffassign)
    • Line 58: warning: missing go.sum entry for module providing package github.com/labstack/gommon/color (imported by github.com/labstack/echo/v4); to add: (ineffassign)
    • Line 40: warning: could not import bytes (no metadata for bytes) (ineffassign)
    • Line 41: warning: could not import context (no metadata for context) (ineffassign)
    • Line 42: warning: could not import crypto/tls (no metadata for crypto/tls) (ineffassign)
    • Line 43: warning: could not import errors (no metadata for errors) (ineffassign)
    • Line 44: warning: could not import fmt (no metadata for fmt) (ineffassign)
    • Line 45: warning: could not import io (no metadata for io) (ineffassign)
    • Line 46: warning: could not import io/ioutil (no metadata for io/ioutil) (ineffassign)
    • Line 47: warning: could not import log (no metadata for log) (ineffassign)
    • Line 48: warning: could not import net (no metadata for net) (ineffassign)
    • Line 49: warning: could not import net/http (no metadata for net/http) (ineffassign)
    • Line 50: warning: could not import net/url (no metadata for net/url) (ineffassign)
    • Line 51: warning: could not import os (no metadata for os) (ineffassign)
    • Line 52: warning: could not import path/filepath (no metadata for path/filepath) (ineffassign)
    • Line 53: warning: could not import reflect (no metadata for reflect) (ineffassign)
    • Line 54: warning: could not import runtime (no metadata for runtime) (ineffassign)
    • Line 55: warning: could not import sync (no metadata for sync) (ineffassign)
    • Line 56: warning: could not import time (no metadata for time) (ineffassign)
    • Line 58: warning: could not import github.com/labstack/gommon/color (no metadata for github.com/labstack/gommon/color) (ineffassign)
    • Line 59: warning: could not import github.com/labstack/gommon/log (no metadata for github.com/labstack/gommon/log) (ineffassign)
    • Line 60: warning: could not import golang.org/x/crypto/acme (no metadata for golang.org/x/crypto/acme) (ineffassign)
    • Line 61: warning: could not import golang.org/x/crypto/acme/autocert (no metadata for golang.org/x/crypto/acme/autocert) (ineffassign)
    • Line 62: warning: could not import golang.org/x/net/http2 (no metadata for golang.org/x/net/http2) (ineffassign)
    • Line 63: warning: could not import golang.org/x/net/http2/h2c (no metadata for golang.org/x/net/http2/h2c) (ineffassign)
    • Line 119: warning: undeclared name: Context (ineffassign)
    • Line 78: warning: undeclared name: Router (ineffassign)
    • Line 79: warning: undeclared name: Router (ineffassign)
    • Line 122: warning: undeclared name: Context (ineffassign)
    • Line 92: warning: undeclared name: Binder (ineffassign)
    • Line 131: warning: undeclared name: Context (ineffassign)
    • Line 132: warning: undeclared name: Context (ineffassign)
    • Line 137: warning: undeclared name: Context (ineffassign)
    • Line 96: warning: undeclared name: Logger (ineffassign)
    • Line 97: warning: undeclared name: IPExtractor (ineffassign)
    • Line 299: warning: undeclared name: Context (ineffassign)
    • Line 303: warning: undeclared name: Context (ineffassign)
    • Line 337: warning: undeclared name: Context (ineffassign)
    • Line 349: warning: undeclared name: Router (ineffassign)
    • Line 354: warning: undeclared name: Router (ineffassign)
    • Line 360: warning: undeclared name: Context (ineffassign)
    • Line 562: warning: undeclared name: Group (ineffassign)
    • Line 570: warning: undeclared name: Group (ineffassign)
    • Line 622: warning: undeclared name: Context (ineffassign)
    • Line 628: warning: undeclared name: Context (ineffassign)
    • Line 932: warning: undeclared name: Router (ineffassign)
    • Line 59: warning: missing go.sum entry for module providing package github.com/labstack/gommon/log (imported by github.com/labstack/echo/v4); to add: (ineffassign)
    • Line 40: warning: could not import bytes (no metadata for bytes) (ineffassign)
    • Line 41: warning: could not import context (no metadata for context) (ineffassign)
    • Line 42: warning: could not import crypto/tls (no metadata for crypto/tls) (ineffassign)
    • Line 43: warning: could not import errors (no metadata for errors) (ineffassign)
    • Line 44: warning: could not import fmt (no metadata for fmt) (ineffassign)
    • Line 45: warning: could not import io (no metadata for io) (ineffassign)
    • Line 46: warning: could not import io/ioutil (no metadata for io/ioutil) (ineffassign)
    • Line 47: warning: could not import log (no metadata for log) (ineffassign)
    • Line 48: warning: could not import net (no metadata for net) (ineffassign)
    • Line 49: warning: could not import net/http (no metadata for net/http) (ineffassign)
    • Line 50: warning: could not import net/url (no metadata for net/url) (ineffassign)
    • Line 51: warning: could not import os (no metadata for os) (ineffassign)
    • Line 52: warning: could not import path/filepath (no metadata for path/filepath) (ineffassign)
    • Line 53: warning: could not import reflect (no metadata for reflect) (ineffassign)
    • Line 54: warning: could not import runtime (no metadata for runtime) (ineffassign)
    • Line 55: warning: could not import sync (no metadata for sync) (ineffassign)
    • Line 56: warning: could not import time (no metadata for time) (ineffassign)
    • Line 58: warning: could not import github.com/labstack/gommon/color (no metadata for github.com/labstack/gommon/color) (ineffassign)
    • Line 59: warning: could not import github.com/labstack/gommon/log (no metadata for github.com/labstack/gommon/log) (ineffassign)
    • Line 60: warning: could not import golang.org/x/crypto/acme (no metadata for golang.org/x/crypto/acme) (ineffassign)
    • Line 61: warning: could not import golang.org/x/crypto/acme/autocert (no metadata for golang.org/x/crypto/acme/autocert) (ineffassign)
    • Line 62: warning: could not import golang.org/x/net/http2 (no metadata for golang.org/x/net/http2) (ineffassign)
    • Line 63: warning: could not import golang.org/x/net/http2/h2c (no metadata for golang.org/x/net/http2/h2c) (ineffassign)
    • Line 119: warning: undeclared name: Context (ineffassign)
    • Line 78: warning: undeclared name: Router (ineffassign)
    • Line 79: warning: undeclared name: Router (ineffassign)
    • Line 122: warning: undeclared name: Context (ineffassign)
    • Line 92: warning: undeclared name: Binder (ineffassign)
    • Line 131: warning: undeclared name: Context (ineffassign)
    • Line 132: warning: undeclared name: Context (ineffassign)
    • Line 137: warning: undeclared name: Context (ineffassign)
    • Line 96: warning: undeclared name: Logger (ineffassign)
    • Line 97: warning: undeclared name: IPExtractor (ineffassign)
    • Line 299: warning: undeclared name: Context (ineffassign)
    • Line 303: warning: undeclared name: Context (ineffassign)
    • Line 337: warning: undeclared name: Context (ineffassign)
    • Line 349: warning: undeclared name: Router (ineffassign)
    • Line 354: warning: undeclared name: Router (ineffassign)
    • Line 360: warning: undeclared name: Context (ineffassign)
    • Line 562: warning: undeclared name: Group (ineffassign)
    • Line 570: warning: undeclared name: Group (ineffassign)
    • Line 622: warning: undeclared name: Context (ineffassign)
    • Line 628: warning: undeclared name: Context (ineffassign)
    • Line 932: warning: undeclared name: Router (ineffassign)
    • Line 59: warning: echo redeclared in this block (ineffassign)
    • Line 58: warning: other declaration of echo (ineffassign)
    • Line 74: warning: undeclared name: color (ineffassign)
    • Line 58: warning: missing go.sum entry for module providing package github.com/labstack/gommon/color (imported by github.com/labstack/echo/v4); to add: (ineffassign)
    • Line 40: warning: could not import bytes (no metadata for bytes) (ineffassign)
    • Line 41: warning: could not import context (no metadata for context) (ineffassign)
    • Line 42: warning: could not import crypto/tls (no metadata for crypto/tls) (ineffassign)
    • Line 43: warning: could not import errors (no metadata for errors) (ineffassign)
    • Line 44: warning: could not import fmt (no metadata for fmt) (ineffassign)
    • Line 45: warning: could not import io (no metadata for io) (ineffassign)
    • Line 46: warning: could not import io/ioutil (no metadata for io/ioutil) (ineffassign)
    • Line 47: warning: could not import log (no metadata for log) (ineffassign)
    • Line 48: warning: could not import net (no metadata for net) (ineffassign)
    • Line 49: warning: could not import net/http (no metadata for net/http) (ineffassign)
    • Line 50: warning: could not import net/url (no metadata for net/url) (ineffassign)
    • Line 51: warning: could not import os (no metadata for os) (ineffassign)
    • Line 52: warning: could not import path/filepath (no metadata for path/filepath) (ineffassign)
    • Line 53: warning: could not import reflect (no metadata for reflect) (ineffassign)
    • Line 54: warning: could not import runtime (no metadata for runtime) (ineffassign)
    • Line 55: warning: could not import sync (no metadata for sync) (ineffassign)
    • Line 56: warning: could not import time (no metadata for time) (ineffassign)
    • Line 58: warning: could not import github.com/labstack/gommon/color (no metadata for github.com/labstack/gommon/color) (ineffassign)
    • Line 59: warning: could not import github.com/labstack/gommon/log (no metadata for github.com/labstack/gommon/log) (ineffassign)
    • Line 60: warning: could not import golang.org/x/crypto/acme (no metadata for golang.org/x/crypto/acme) (ineffassign)
    • Line 61: warning: could not import golang.org/x/crypto/acme/autocert (no metadata for golang.org/x/crypto/acme/autocert) (ineffassign)
    • Line 62: warning: could not import golang.org/x/net/http2 (no metadata for golang.org/x/net/http2) (ineffassign)
    • Line 63: warning: could not import golang.org/x/net/http2/h2c (no metadata for golang.org/x/net/http2/h2c) (ineffassign)
    • Line 119: warning: undeclared name: Context (ineffassign)
    • Line 78: warning: undeclared name: Router (ineffassign)
    • Line 79: warning: undeclared name: Router (ineffassign)
    • Line 122: warning: undeclared name: Context (ineffassign)
    • Line 92: warning: undeclared name: Binder (ineffassign)
    • Line 131: warning: undeclared name: Context (ineffassign)
    • Line 132: warning: undeclared name: Context (ineffassign)
    • Line 137: warning: undeclared name: Context (ineffassign)
    • Line 96: warning: undeclared name: Logger (ineffassign)
    • Line 97: warning: undeclared name: IPExtractor (ineffassign)
    • Line 299: warning: undeclared name: Context (ineffassign)
    • Line 303: warning: undeclared name: Context (ineffassign)
    • Line 337: warning: undeclared name: Context (ineffassign)
    • Line 349: warning: undeclared name: Router (ineffassign)
    • Line 354: warning: undeclared name: Router (ineffassign)
    • Line 360: warning: undeclared name: Context (ineffassign)
    • Line 562: warning: undeclared name: Group (ineffassign)
    • Line 570: warning: undeclared name: Group (ineffassign)
    • Line 622: warning: undeclared name: Context (ineffassign)
    • Line 628: warning: undeclared name: Context (ineffassign)
    • Line 932: warning: undeclared name: Router (ineffassign)
    • Line 59: warning: missing go.sum entry for module providing package github.com/labstack/gommon/log (imported by github.com/labstack/echo/v4); to add: (ineffassign)
    • Line 40: warning: could not import bytes (no metadata for bytes) (ineffassign)
    • Line 41: warning: could not import context (no metadata for context) (ineffassign)
    • Line 42: warning: could not import crypto/tls (no metadata for crypto/tls) (ineffassign)
    • Line 43: warning: could not import errors (no metadata for errors) (ineffassign)
    • Line 44: warning: could not import fmt (no metadata for fmt) (ineffassign)
    • Line 45: warning: could not import io (no metadata for io) (ineffassign)
    • Line 46: warning: could not import io/ioutil (no metadata for io/ioutil) (ineffassign)
    • Line 47: warning: could not import log (no metadata for log) (ineffassign)
    • Line 48: warning: could not import net (no metadata for net) (ineffassign)
    • Line 49: warning: could not import net/http (no metadata for net/http) (ineffassign)
    • Line 50: warning: could not import net/url (no metadata for net/url) (ineffassign)
    • Line 51: warning: could not import os (no metadata for os) (ineffassign)
    • Line 52: warning: could not import path/filepath (no metadata for path/filepath) (ineffassign)
    • Line 53: warning: could not import reflect (no metadata for reflect) (ineffassign)
    • Line 54: warning: could not import runtime (no metadata for runtime) (ineffassign)
    • Line 55: warning: could not import sync (no metadata for sync) (ineffassign)
    • Line 56: warning: could not import time (no metadata for time) (ineffassign)
    • Line 58: warning: could not import github.com/labstack/gommon/color (no metadata for github.com/labstack/gommon/color) (ineffassign)
    • Line 59: warning: could not import github.com/labstack/gommon/log (no metadata for github.com/labstack/gommon/log) (ineffassign)
    • Line 60: warning: could not import golang.org/x/crypto/acme (no metadata for golang.org/x/crypto/acme) (ineffassign)
    • Line 61: warning: could not import golang.org/x/crypto/acme/autocert (no metadata for golang.org/x/crypto/acme/autocert) (ineffassign)
    • Line 62: warning: could not import golang.org/x/net/http2 (no metadata for golang.org/x/net/http2) (ineffassign)
    • Line 63: warning: could not import golang.org/x/net/http2/h2c (no metadata for golang.org/x/net/http2/h2c) (ineffassign)
    • Line 119: warning: undeclared name: Context (ineffassign)
    • Line 78: warning: undeclared name: Router (ineffassign)
    • Line 79: warning: undeclared name: Router (ineffassign)
    • Line 122: warning: undeclared name: Context (ineffassign)
    • Line 92: warning: undeclared name: Binder (ineffassign)
    • Line 131: warning: undeclared name: Context (ineffassign)
    • Line 132: warning: undeclared name: Context (ineffassign)
    • Line 137: warning: undeclared name: Context (ineffassign)
    • Line 96: warning: undeclared name: Logger (ineffassign)
    • Line 97: warning: undeclared name: IPExtractor (ineffassign)
    • Line 299: warning: undeclared name: Context (ineffassign)
    • Line 303: warning: undeclared name: Context (ineffassign)
    • Line 337: warning: undeclared name: Context (ineffassign)
    • Line 349: warning: undeclared name: Router (ineffassign)
    • Line 354: warning: undeclared name: Router (ineffassign)
    • Line 360: warning: undeclared name: Context (ineffassign)
    • Line 562: warning: undeclared name: Group (ineffassign)
    • Line 570: warning: undeclared name: Group (ineffassign)
    • Line 622: warning: undeclared name: Context (ineffassign)
    • Line 628: warning: undeclared name: Context (ineffassign)
    • Line 932: warning: undeclared name: Router (ineffassign)
    • Line 59: warning: echo redeclared in this block (ineffassign)
    • Line 58: warning: other declaration of echo (ineffassign)
    • Line 74: warning: undeclared name: color (ineffassign)
    • /home/shawn/go/pkg/mod/github.com/labstack/echo/v4@v4.5.0/log.go
    • Line 16: warning: undeclared name: log (ineffassign)
    • Line 17: warning: undeclared name: log (ineffassign)
    • Line 21: warning: undeclared name: log (ineffassign)
    • Line 24: warning: undeclared name: log (ineffassign)
    • Line 27: warning: undeclared name: log (ineffassign)
    • Line 30: warning: undeclared name: log (ineffassign)
    • Line 33: warning: undeclared name: log (ineffassign)
    • Line 35: warning: undeclared name: log (ineffassign)
    • Line 38: warning: undeclared name: log (ineffassign)
    • Line 16: warning: undeclared name: log (ineffassign)
    • Line 17: warning: undeclared name: log (ineffassign)
    • Line 21: warning: undeclared name: log (ineffassign)
    • Line 24: warning: undeclared name: log (ineffassign)
    • Line 27: warning: undeclared name: log (ineffassign)
    • Line 30: warning: undeclared name: log (ineffassign)
    • Line 33: warning: undeclared name: log (ineffassign)
    • Line 35: warning: undeclared name: log (ineffassign)
    • Line 38: warning: undeclared name: log (ineffassign)
    • /home/shawn/go/pkg/mod/github.com/labstack/echo/v4@v4.5.0/middleware/body_limit.go
    • Line 9: warning: missing go.sum entry for module providing package github.com/labstack/gommon/bytes (imported by github.com/labstack/echo/v4/middleware); to add: (ineffassign)
    • Line 9: warning: could not import github.com/labstack/gommon/bytes (invalid package name: "") (ineffassign)
    • Line 9: warning: missing go.sum entry for module providing package github.com/labstack/gommon/bytes (imported by github.com/labstack/echo/v4/middleware); to add: (ineffassign)
    • Line 9: warning: could not import github.com/labstack/gommon/bytes (invalid package name: "") (ineffassign)
    • /home/shawn/go/pkg/mod/github.com/labstack/echo/v4@v4.5.0/middleware/csrf.go
    • Line 11: warning: missing go.sum entry for module providing package github.com/labstack/gommon/random (imported by github.com/labstack/echo/v4/middleware); to add: (ineffassign)
    • Line 11: warning: could not import github.com/labstack/gommon/random (invalid package name: "") (ineffassign)
    • Line 11: warning: missing go.sum entry for module providing package github.com/labstack/gommon/random (imported by github.com/labstack/echo/v4/middleware); to add: (ineffassign)
    • Line 11: warning: could not import github.com/labstack/gommon/random (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!