Skip to content

feat:支持新版本的熔断规则设置 #240

feat:支持新版本的熔断规则设置

feat:支持新版本的熔断规则设置 #240

Triggered via pull request November 19, 2023 08:12
Status Failure
Total duration 1m 19s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

golangci-lint.yml

on: pull_request
Matrix: golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

53 errors and 18 warnings
golangci-lint (1.15.x): plugin/circuitbreaker/composite/checker.go#L204
Error return value of `c.circuitBreaker.Report` is not checked (errcheck)
golangci-lint (1.15.x): plugin/circuitbreaker/composite/counter.go#L272
Error return value of `rc.circuitBreaker.localCache.UpdateInstances` is not checked (errcheck)
golangci-lint (1.15.x): plugin/circuitbreaker/composite/rule.go#L223
badCond: `rule1.Level == fault_tolerance.Level_METHOD && rule1.Level == rule2.Level` condition is suspicious (gocritic)
golangci-lint (1.15.x): pkg/flow/circuitbreaker_flow.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.15.x): pkg/flow/configuration/flow.go#L33
unnecessary leading newline (whitespace)
golangci-lint (1.15.x): pkg/flow/configuration/group_flow.go#L43
unnecessary leading newline (whitespace)
golangci-lint (1.15.x): pkg/flow/configuration/group_repo.go#L51
unnecessary leading newline (whitespace)
golangci-lint (1.15.x)
golangci-lint exit with code 2
golangci-lint (1.18.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.18.x): plugin/circuitbreaker/composite/checker.go#L204
Error return value of `c.circuitBreaker.Report` is not checked (errcheck)
golangci-lint (1.18.x): plugin/circuitbreaker/composite/counter.go#L272
Error return value of `rc.circuitBreaker.localCache.UpdateInstances` is not checked (errcheck)
golangci-lint (1.18.x): plugin/circuitbreaker/composite/rule.go#L223
badCond: `rule1.Level == fault_tolerance.Level_METHOD && rule1.Level == rule2.Level` condition is suspicious (gocritic)
golangci-lint (1.18.x): pkg/flow/circuitbreaker_flow.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.18.x): plugin/circuitbreaker/composite/checker.go#L186
unnecessary leading newline (whitespace)
golangci-lint (1.18.x): plugin/circuitbreaker/composite/checker.go#L226
unnecessary leading newline (whitespace)
golangci-lint (1.18.x): plugin/circuitbreaker/composite/counter.go#L70
unnecessary leading newline (whitespace)
golangci-lint (1.18.x)
golangci-lint exit with code 2
golangci-lint (1.19.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.19.x): plugin/circuitbreaker/composite/checker.go#L204
Error return value of `c.circuitBreaker.Report` is not checked (errcheck)
golangci-lint (1.19.x): plugin/circuitbreaker/composite/counter.go#L272
Error return value of `rc.circuitBreaker.localCache.UpdateInstances` is not checked (errcheck)
golangci-lint (1.19.x): plugin/circuitbreaker/composite/rule.go#L223
badCond: `rule1.Level == fault_tolerance.Level_METHOD && rule1.Level == rule2.Level` condition is suspicious (gocritic)
golangci-lint (1.19.x): pkg/flow/circuitbreaker_flow.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.19.x): pkg/flow/configuration/flow.go#L33
unnecessary leading newline (whitespace)
golangci-lint (1.19.x): pkg/flow/configuration/group_flow.go#L43
unnecessary leading newline (whitespace)
golangci-lint (1.19.x): pkg/flow/configuration/group_repo.go#L51
unnecessary leading newline (whitespace)
golangci-lint (1.19.x)
golangci-lint exit with code 2
golangci-lint (1.17.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.17.x): plugin/circuitbreaker/composite/checker.go#L204
Error return value of `c.circuitBreaker.Report` is not checked (errcheck)
golangci-lint (1.17.x): plugin/circuitbreaker/composite/counter.go#L272
Error return value of `rc.circuitBreaker.localCache.UpdateInstances` is not checked (errcheck)
golangci-lint (1.17.x): plugin/circuitbreaker/composite/rule.go#L223
badCond: `rule1.Level == fault_tolerance.Level_METHOD && rule1.Level == rule2.Level` condition is suspicious (gocritic)
golangci-lint (1.17.x): pkg/flow/circuitbreaker_flow.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.17.x): plugin/circuitbreaker/composite/checker.go#L186
unnecessary leading newline (whitespace)
golangci-lint (1.17.x): plugin/circuitbreaker/composite/checker.go#L226
unnecessary leading newline (whitespace)
golangci-lint (1.17.x): plugin/circuitbreaker/composite/counter.go#L70
unnecessary leading newline (whitespace)
golangci-lint (1.17.x)
golangci-lint exit with code 2
golangci-lint (1.20.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.20.x): plugin/circuitbreaker/composite/checker.go#L204
Error return value of `c.circuitBreaker.Report` is not checked (errcheck)
golangci-lint (1.20.x): plugin/circuitbreaker/composite/counter.go#L272
Error return value of `rc.circuitBreaker.localCache.UpdateInstances` is not checked (errcheck)
golangci-lint (1.20.x): plugin/circuitbreaker/composite/rule.go#L223
badCond: `rule1.Level == fault_tolerance.Level_METHOD && rule1.Level == rule2.Level` condition is suspicious (gocritic)
golangci-lint (1.20.x): pkg/flow/circuitbreaker_flow.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.20.x): pkg/flow/configuration/flow.go#L33
unnecessary leading newline (whitespace)
golangci-lint (1.20.x): pkg/flow/configuration/group_flow.go#L43
unnecessary leading newline (whitespace)
golangci-lint (1.20.x): pkg/flow/configuration/group_repo.go#L51
unnecessary leading newline (whitespace)
golangci-lint (1.20.x)
golangci-lint exit with code 2
golangci-lint (1.16.x)
The job was canceled because "_1_15_x" failed.
golangci-lint (1.16.x): plugin/circuitbreaker/composite/checker.go#L204
Error return value of `c.circuitBreaker.Report` is not checked (errcheck)
golangci-lint (1.16.x): plugin/circuitbreaker/composite/counter.go#L272
Error return value of `rc.circuitBreaker.localCache.UpdateInstances` is not checked (errcheck)
golangci-lint (1.16.x): plugin/circuitbreaker/composite/rule.go#L223
badCond: `rule1.Level == fault_tolerance.Level_METHOD && rule1.Level == rule2.Level` condition is suspicious (gocritic)
golangci-lint (1.16.x): pkg/flow/circuitbreaker_flow.go#L1
file-header: the file doesn't have an appropriate header (revive)
golangci-lint (1.16.x): pkg/flow/configuration/flow.go#L33
unnecessary leading newline (whitespace)
golangci-lint (1.16.x): pkg/flow/configuration/group_flow.go#L43
unnecessary leading newline (whitespace)
golangci-lint (1.16.x): pkg/flow/configuration/group_repo.go#L51
unnecessary leading newline (whitespace)
golangci-lint (1.16.x)
golangci-lint exit with code 2
golangci-lint (1.15.x): plugin/ratelimiter/common/ratelimit_slice_window.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint (1.15.x): pkg/model/circuitbreaker.go#L483
error-naming: error var CallAbortedError should have name of the form ErrFoo (revive)
golangci-lint (1.15.x): plugin/servicerouter/rulebase/base.go#L599
import-shadowing: The name 'match' shadows an import name (revive)
golangci-lint (1.18.x): plugin/ratelimiter/common/ratelimit_slice_window.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint (1.18.x): pkg/model/circuitbreaker.go#L483
error-naming: error var CallAbortedError should have name of the form ErrFoo (revive)
golangci-lint (1.18.x): plugin/servicerouter/rulebase/base.go#L599
import-shadowing: The name 'match' shadows an import name (revive)
golangci-lint (1.19.x): plugin/ratelimiter/common/ratelimit_slice_window.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint (1.19.x): pkg/model/circuitbreaker.go#L483
error-naming: error var CallAbortedError should have name of the form ErrFoo (revive)
golangci-lint (1.19.x): plugin/servicerouter/rulebase/base.go#L599
import-shadowing: The name 'match' shadows an import name (revive)
golangci-lint (1.17.x): plugin/ratelimiter/common/ratelimit_slice_window.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint (1.17.x): pkg/model/circuitbreaker.go#L483
error-naming: error var CallAbortedError should have name of the form ErrFoo (revive)
golangci-lint (1.17.x): plugin/servicerouter/rulebase/base.go#L599
import-shadowing: The name 'match' shadows an import name (revive)
golangci-lint (1.20.x): plugin/ratelimiter/common/ratelimit_slice_window.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint (1.20.x): pkg/model/circuitbreaker.go#L483
error-naming: error var CallAbortedError should have name of the form ErrFoo (revive)
golangci-lint (1.20.x): plugin/servicerouter/rulebase/base.go#L599
import-shadowing: The name 'match' shadows an import name (revive)
golangci-lint (1.16.x): plugin/ratelimiter/common/ratelimit_slice_window.go#L66
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (revive)
golangci-lint (1.16.x): pkg/model/circuitbreaker.go#L483
error-naming: error var CallAbortedError should have name of the form ErrFoo (revive)
golangci-lint (1.16.x): plugin/servicerouter/rulebase/base.go#L599
import-shadowing: The name 'match' shadows an import name (revive)