summaryrefslogtreecommitdiff
path: root/.clang-tidy
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-01-25 22:26:16 +0300
committerEd Tanous <ed@tanous.net>2022-03-12 04:35:05 +0300
commit55f79e6fe156505cdaddd521212a29b2a977193a (patch)
tree968c1c72b622c20defd635f406850af51eb2bfae /.clang-tidy
parent1b829889db64dd738660e62de633f1c028b3444c (diff)
downloadbmcweb-55f79e6fe156505cdaddd521212a29b2a977193a.tar.xz
Enable readability checks
clang-tidy readability checks are overall a good thing, and help us to write consistent and readable code, even if it doesn't change the result. All changes done by the robot. Tested: Code compiles, inspection only (changes made by robot) Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: Iee4a0c74a11eef9f158f0044eae675ebc518b549
Diffstat (limited to '.clang-tidy')
-rw-r--r--.clang-tidy16
1 files changed, 14 insertions, 2 deletions
diff --git a/.clang-tidy b/.clang-tidy
index dfca83aa15..d892bddf9e 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -276,10 +276,18 @@ readability-convert-member-functions-to-static,
readability-delete-null-pointer,
readability-deleted-default,
readability-else-after-return,
+readability-function-size,
+readability-identifier-naming,
readability-implicit-bool-conversion,
+readability-inconsistent-declaration-parameter-name,
+readability-isolate-declaration,
readability-make-member-function-const,
+readability-misleading-indentation,
+readability-misplaced-array-index,
readability-named-parameter,
readability-non-const-parameter,
+readability-qualified-auto,
+readability-redundant-access-specifiers,
readability-redundant-control-flow,
readability-redundant-declaration,
readability-redundant-function-ptr-dereference,
@@ -288,8 +296,13 @@ readability-redundant-preprocessor,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-redundant-string-init,
+readability-simplify-boolean-expr,
+readability-simplify-subscript-expr,
readability-static-accessed-through-instance,
-readability-identifier-naming,
+readability-static-definition-in-anonymous-namespace,
+readability-string-compare,
+readability-suspicious-call-argument,
+readability-uniqueptr-delete-release,
readability-uppercase-literal-suffix'
WarningsAsErrors: '*'
@@ -301,4 +314,3 @@ CheckOptions:
- { key: readability-identifier-naming.ParameterCase, value: camelBack }
- { key: readability-identifier-naming.NamespaceCase, value: lower_case }
- { key: readability-identifier-naming.StructCase, value: CamelCase }
-