github.com/pingcap/br@v5.3.0-alpha.0.20220125034240-ec59c7b6ce30+incompatible/revive.toml (about) 1 ignoreGeneratedHeader = false 2 severity = "error" 3 confidence = 0.8 4 errorCode = 1 5 warningCode = 0 6 7 [rule.blank-imports] 8 [rule.context-as-argument] 9 [rule.dot-imports] 10 [rule.error-return] 11 [rule.error-strings] 12 [rule.error-naming] 13 [rule.exported] 14 [rule.if-return] 15 [rule.var-naming] 16 [rule.package-comments] 17 [rule.range] 18 [rule.receiver-naming] 19 [rule.indent-error-flow] 20 [rule.empty-block] 21 [rule.superfluous-else] 22 [rule.modifies-parameter] 23 24 # Add these once issues are fixed 25 [rule.confusing-naming] 26 severity = "warning" 27 [rule.confusing-results] 28 severity = "warning" 29 [rule.flag-parameter] 30 severity = "warning" 31 32 # Currently this makes too much noise, but should add it in 33 # and perhaps ignore it in a few files 34 #[rule.unused-parameter] 35 # severity = "warning" 36 #[rule.deep-exit] 37 # severity = "warning" 38 39 40 # Already checked by megacheck 41 # [rule.unreachable-code] 42 43 # Adding these will slow down the linter 44 # They are already provided by megacheck 45 # [rule.unexported-return] 46 # [rule.time-naming] 47 # [rule.errorf] 48 49 # Adding these will slow down the linter 50 # Not sure if they are already provided by megacheck 51 # [rule.var-declaration] 52 # [rule.context-keys-type]