Rate limit system #7
Annotations
18 errors and 2 warnings
structcheck:
internal/usecase/base_handler.go#L21
`next` is unused
|
unused:
internal/usecase/limit_handler_test.go#L19
func `limitHandlerSuite.setupTest` is unused
|
depguard:
internal/controller/http/v1/notification.go#L6
import 'notifier/internal/entity' is not allowed from list 'Main'
|
depguard:
internal/usecase/base_handler.go#L5
import 'notifier/internal/entity' is not allowed from list 'Main'
|
depguard:
internal/usecase/limit_handler.go#L5
import 'notifier/internal/entity' is not allowed from list 'Main'
|
depguard:
internal/usecase/limit_handler_test.go#L7
import 'github.com/stretchr/testify/suite' is not allowed from list 'Main'
|
govet:
internal/usecase/base_handler.go#L50
copylocks: call of NewStatusHandler copies lock value: sync.Mutex
|
govet:
internal/usecase/base_handler.go#L51
copylocks: call of NewNewsHandler copies lock value: sync.Mutex
|
govet:
internal/usecase/base_handler.go#L52
copylocks: call of NewMarketingHandler copies lock value: sync.Mutex
|
govet:
internal/usecase/limit_handler.go#L15
copylocks: NewStatusHandler passes lock by value: sync.Mutex
|
govet:
internal/usecase/limit_handler.go#L20
copylocks: literal copies lock value from m: sync.Mutex
|
govet:
internal/usecase/limit_handler.go#L40
copylocks: NewMarketingHandler passes lock by value: sync.Mutex
|
govet:
internal/usecase/limit_handler.go#L45
copylocks: literal copies lock value from m: sync.Mutex
|
govet:
internal/usecase/limit_handler.go#L65
copylocks: NewNewsHandler passes lock by value: sync.Mutex
|
govet:
internal/usecase/limit_handler.go#L70
copylocks: literal copies lock value from m: sync.Mutex
|
govet:
internal/usecase/limit_handler_test.go#L25
copylocks: TestChainOfResponsibility passes lock by value: notifier/internal/usecase.limitHandlerSuite contains github.com/stretchr/testify/suite.Suite contains sync.RWMutex
|
stylecheck:
internal/usecase/base_handler.go#L1
ST1000: at least one file in a package should have a package comment
|
stylecheck:
internal/usecase/limit_handler.go#L1
ST1000: at least one file in a package should have a package comment
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v1, actions/checkout@v2, actions/cache@v2, yuzutech/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-go@v1, actions/checkout@v2, actions/cache@v2, yuzutech/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|