diff --git a/.golangci.yaml b/.golangci.yaml index ebd93a4..7e509e5 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -26,6 +26,7 @@ linters: - bodyclose # i don't care in the tests, the implementation itself doesn't do http requests - wsl_v5 - noinlineerr + - unqueryvet settings: nestif: min-complexity: 6 diff --git a/internal/handler/middleware/wrapper.go b/internal/handler/middleware/wrapper.go index d4fb102..65d0140 100644 --- a/internal/handler/middleware/wrapper.go +++ b/internal/handler/middleware/wrapper.go @@ -2,7 +2,7 @@ package middleware import "net/http" -// Chain list of handlers together. +// Wrapper wraps a list of handlers together. func Wrapper(next http.Handler, handlers ...func(http.Handler) http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { lastHandler := next diff --git a/internal/types/transaction.go b/internal/types/transaction.go index f0e263a..5c5bbd0 100644 --- a/internal/types/transaction.go +++ b/internal/types/transaction.go @@ -6,7 +6,7 @@ import ( "github.com/google/uuid" ) -// At the center of the application is the transaction. +// Transaction is at the center of the application. // // Every piece of data should be calculated based on transactions. // This means potential calculation errors can be fixed later in time.