github.com/whtcorpsinc/MilevaDB-Prod@v0.0.0-20211104133533-f57f4be3b597/causetstore/tools/check/revive.toml (about) 1 ignoreGeneratedHeader = false 2 severity = "error" 3 confidence = 0.8 4 errorCode = -1 5 warningCode = -1 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.superfluous-else] 21 [rule.modifies-parameter] 22 23 # This can be checked by other tools like megacheck 24 [rule.unreachable-code] 25 26 27 # Currently this makes too much noise, but should add it in 28 # and perhaps ignore it in a few files 29 #[rule.confusing-naming] 30 # severity = "warning" 31 #[rule.confusing-results] 32 # severity = "warning" 33 #[rule.unused-parameter] 34 # severity = "warning" 35 #[rule.deep-exit] 36 # severity = "warning" 37 #[rule.flag-parameter] 38 # severity = "warning" 39 40 41 42 # Adding these will slow down the linter 43 # They are already provided by megacheck 44 # [rule.unexported-return] 45 # [rule.time-naming] 46 # [rule.errorf] 47 48 # Adding these will slow down the linter 49 # Not sure if they are already provided by megacheck 50 # [rule.var-declaration] 51 # [rule.context-keys-type]