From 361598d4d35a9680fdd199978e700a9ca5c9ec4a Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 16 Aug 2021 12:59:02 -0400 Subject: [PATCH] revive: enable additional rules This enables a bunch of rules that are fairly safe for go-ceph. There's a lot more rules, but many of them are not as good a fit. Signed-off-by: John Mulligan --- .revive.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.revive.toml b/.revive.toml index 95c91b7..23631f7 100644 --- a/.revive.toml +++ b/.revive.toml @@ -38,6 +38,13 @@ warningCode = 0 [rule.constant-logical-expr] [rule.unnecessary-stmt] [rule.unused-receiver] +[rule.modifies-parameter] +[rule.modifies-value-receiver] +[rule.range-val-in-closure] +[rule.waitgroup-by-value] +[rule.duplicated-imports] +[rule.struct-tag] +[rule.import-shadowing] [rule.argument-limit] arguments = [7]