Skip to content

feat: add rate limiter #3

feat: add rate limiter

feat: add rate limiter #3

Triggered via pull request January 31, 2024 18:28
Status Failure
Total duration 16s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
Lint: pkg/infrared/protocol/packet.go#L55
shadow: declaration of "err" shadows declaration at line 42 (govet)
Lint: pkg/infrared/infrared.go#L170
commentFormatting: put a space between `//` and comment text (gocritic)
Lint: pkg/infrared/rate_limiter.go#L89
mnd: Magic number: 64, in <argument> detected (gomnd)
Lint: pkg/infrared/rate_limiter.go#L210
mnd: Magic number: 3, in <operation> detected (gomnd)
Lint: pkg/infrared/server.go#L180
mnd: Magic number: 30, in <assign> detected (gomnd)
Lint: pkg/infrared/rate_limiter.go#L227
fmt.Sprintf can be replaced with faster strconv.FormatInt (perfsprint)
Lint
issues found
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.