mirror of
https://github.com/ceph/go-ceph
synced 2024-12-14 18:37:17 +00:00
75fdc694be
Revive is a tool similar to golint but can be configured. Add an initial configuration for revive. This configuration reduces the initial issue list to something more manageable and that can be worked on incrementally rather than trying to boil to ocean to make the checker happy. Signed-off-by: John Mulligan <jmulligan@redhat.com>
34 lines
655 B
TOML
34 lines
655 B
TOML
|
|
ignoreGeneratedHeader = false
|
|
severity = "warning"
|
|
confidence = 0.8
|
|
errorCode = 1
|
|
warningCode = 0
|
|
|
|
[directive.specify-disable-reason]
|
|
|
|
[rule.blank-imports]
|
|
[rule.context-as-argument]
|
|
[rule.context-keys-type]
|
|
[rule.dot-imports]
|
|
[rule.error-return]
|
|
[rule.error-strings]
|
|
[rule.error-naming]
|
|
#[rule.exported]
|
|
[rule.if-return]
|
|
[rule.increment-decrement]
|
|
#[rule.var-naming]
|
|
[rule.var-declaration]
|
|
[rule.package-comments]
|
|
[rule.range]
|
|
[rule.receiver-naming]
|
|
[rule.time-naming]
|
|
[rule.unexported-return]
|
|
#[rule.indent-error-flow]
|
|
[rule.errorf]
|
|
[rule.empty-block]
|
|
[rule.superfluous-else]
|
|
[rule.unused-parameter]
|
|
[rule.unreachable-code]
|
|
[rule.redefines-builtin-id]
|