mirror of
https://github.com/ceph/go-ceph
synced 2025-02-04 12:31:57 +00:00
testing: add a project-wide toml config file for revive
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>
This commit is contained in:
parent
5ea85a9419
commit
75fdc694be
33
.revive.toml
Normal file
33
.revive.toml
Normal file
@ -0,0 +1,33 @@
|
||||
|
||||
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]
|
Loading…
Reference in New Issue
Block a user