]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fix: small tweaks of config for clang-tidy
authorSONOLET Aymeric <aymeric.sonolet@cea.fr>
Fri, 29 Dec 2023 18:22:05 +0000 (19:22 +0100)
committerSONOLET Aymeric <aymeric.sonolet@cea.fr>
Fri, 29 Dec 2023 18:22:05 +0000 (19:22 +0100)
.clang-tidy
.pre-commit-config.yaml

index ae75e965a86a7f61996c20452b2cef1377c352dd..f79ac434d7426dba57b155896e0845032a8f31a0 100644 (file)
@@ -1,62 +1,66 @@
 ---
-Checks:          'clang-diagnostic-*,clang-analyzer-*,modernize-use-override,modernize-use-nullptr,modernize-use-using,modernize-use-default-member-init,modernize-loop-convert,modernize-use-auto,modernize-redundant-void-arg,modernize-type-traits,modernize-use-bool-literals,modernize-use-equals-default,modernize-use-equals-delete,misc-include-cleaner,misc-const-correctness,misc-unused-parameters'
+Checks: >
+    clang-diagnostic-*,
+    clang-analyzer-*,
+    modernize-use-override,modernize-use-nullptr,modernize-use-using,modernize-use-default-member-init,
+    modernize-loop-convert,modernize-use-auto,modernize-redundant-void-arg,modernize-type-traits,
+    modernize-use-bool-literals,modernize-use-equals-default,modernize-use-equals-delete,
+    misc-include-cleaner,misc-const-correctness,misc-unused-parameters
 WarningsAsErrors: ''
-HeaderFilterRegex: '.*SHAPER.*'
+HeaderFilterRegex: .*SHAPER.*
 AnalyzeTemporaryDtors: false
-FormatStyle:     none
-User:            as259691
+FormatStyle: none
+User: as259691
 CheckOptions:
-  - key:             cert-dcl16-c.NewSuffixes
-    value:           'L;LL;LU;LLU'
-  - key:             cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
-    value:           '0'
-  - key:             cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors
-    value:           '1'
-  - key:             cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
-    value:           '1'
-  - key:             google-readability-braces-around-statements.ShortStatementLines
-    value:           '1'
-  - key:             google-readability-function-size.StatementThreshold
-    value:           '800'
-  - key:             google-readability-namespace-comments.ShortNamespaceLines
-    value:           '10'
-  - key:             google-readability-namespace-comments.SpacesBeforeComments
-    value:           '2'
-  - key:             misc-unused-parameters.StrictMode
-    value:           '0'
-  - key:             modernize-loop-convert.MaxCopySize
-    value:           '16'
-  - key:             modernize-loop-convert.MinConfidence
-    value:           reasonable
-  - key:             modernize-loop-convert.NamingStyle
-    value:           CamelCase
-  - key:             modernize-pass-by-value.IncludeStyle
-    value:           llvm
-  - key:             modernize-replace-auto-ptr.IncludeStyle
-    value:           llvm
-  - key:             modernize-use-auto.MinTypeNameLength
-    value:           '5'
-  - key:             modernize-use-auto.RemoveStars
-    value:           '0'
-  - key:             modernize-use-default-member-init.IgnoreMacros
-    value:           '1'
-  - key:             modernize-use-default-member-init.UseAssignment
-    value:           '0'
-  - key:             modernize-use-equals-default.IgnoreMacros
-    value:           '1'
-  - key:             modernize-use-equals-delete.IgnoreMacros
-    value:           '1'
-  - key:             modernize-use-nullptr.NullMacros
-    value:           'NULL'
-  - key:             modernize-use-override.AllowOverrideAndFinal
-    value:           '0'
-  - key:             modernize-use-override.FinalSpelling
-    value:           final
-  - key:             modernize-use-override.IgnoreDestructors
-    value:           '0'
-  - key:             modernize-use-override.OverrideSpelling
-    value:           override
-  - key:             modernize-use-using.IgnoreMacros
-    value:           '1'
-...
-
+    - key: cert-dcl16-c.NewSuffixes
+      value: L;LL;LU;LLU
+    - key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
+      value: '0'
+    - key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors
+      value: '1'
+    - key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
+      value: '1'
+    - key: google-readability-braces-around-statements.ShortStatementLines
+      value: '1'
+    - key: google-readability-function-size.StatementThreshold
+      value: '800'
+    - key: google-readability-namespace-comments.ShortNamespaceLines
+      value: '10'
+    - key: google-readability-namespace-comments.SpacesBeforeComments
+      value: '2'
+    - key: misc-unused-parameters.StrictMode
+      value: '0'
+    - key: modernize-loop-convert.MaxCopySize
+      value: '16'
+    - key: modernize-loop-convert.MinConfidence
+      value: reasonable
+    - key: modernize-loop-convert.NamingStyle
+      value: CamelCase
+    - key: modernize-pass-by-value.IncludeStyle
+      value: llvm
+    - key: modernize-replace-auto-ptr.IncludeStyle
+      value: llvm
+    - key: modernize-use-auto.MinTypeNameLength
+      value: '5'
+    - key: modernize-use-auto.RemoveStars
+      value: '0'
+    - key: modernize-use-default-member-init.IgnoreMacros
+      value: '1'
+    - key: modernize-use-default-member-init.UseAssignment
+      value: '0'
+    - key: modernize-use-equals-default.IgnoreMacros
+      value: '1'
+    - key: modernize-use-equals-delete.IgnoreMacros
+      value: '1'
+    - key: modernize-use-nullptr.NullMacros
+      value: 'NULL'
+    - key: modernize-use-override.AllowOverrideAndFinal
+      value: '0'
+    - key: modernize-use-override.FinalSpelling
+      value: final
+    - key: modernize-use-override.IgnoreDestructors
+      value: '0'
+    - key: modernize-use-override.OverrideSpelling
+      value: override
+    - key: modernize-use-using.IgnoreMacros
+      value: '1'
index 2006960c0451a7825f0873dfa858814dc46f82bd..70a5c0398be9d9b3ffeddc9905c12dc93172be33 100644 (file)
@@ -97,10 +97,6 @@ repos:
           - id: rst-backticks
           - id: rst-directive-colons
           - id: rst-inline-touching-normal
-    # - repo: https://github.com/rstcheck/rstcheck
-    #   rev: v6.2.0  # Use the sha / tag you want to point at
-    #   hooks:
-    #       - id: rstcheck
     - repo: https://github.com/cheshirekow/cmake-format-precommit
       rev: v0.6.10
       hooks: