|
| 1 | +--- |
| 2 | +# clang-tidy configuration for pgModeler |
| 3 | +# This file is read by clang-tidy during compilation (CMake build) |
| 4 | +# The .clangd file is read by clangd LSP for editor analysis |
| 5 | + |
| 6 | +# Checks to enable/disable |
| 7 | +# Use 'category-*' to enable all checks in a category |
| 8 | +# Use '-check-name' to disable specific checks |
| 9 | +Checks: > |
| 10 | + -*, |
| 11 | + -misc-*, |
| 12 | + -misc-header-include-cycle, |
| 13 | + -misc-include-cleaner, |
| 14 | + clang-*, |
| 15 | + -clang-analyzer-optin.cplusplus.VirtualCall, |
| 16 | + -clang-analyzer-cplusplus.NewDeleteLeaks, |
| 17 | + -clang-analyzer-optin.core.EnumCastOutOfRange, |
| 18 | + -clang-analyzer-core.CallAndMessage, |
| 19 | + cplusplus.*, |
| 20 | + bugprone.*, |
| 21 | + misc-definitions-in-headers, |
| 22 | + misc-misleading-bidirectional, |
| 23 | + misc-misleading-identifier, |
| 24 | + misc-misplaced-const, |
| 25 | + misc-new-delete-overloads, |
| 26 | + misc-non-copyable-objects, |
| 27 | + misc-override-with-different-visibility, |
| 28 | + misc-redundant-expression, |
| 29 | + misc-static-assert, |
| 30 | + misc-throw-by-value-catch-by-reference, |
| 31 | + # misc-unconventional-assign-operator, |
| 32 | + misc-uniqueptr-reset-release, |
| 33 | + misc-unused-alias-decls, |
| 34 | + misc-unused-parameters, |
| 35 | + misc-unused-using-decls, |
| 36 | + misc-use-anonymous-namespace, |
| 37 | + misc-use-internal-linkage, |
| 38 | + modernize-loop-convert, |
| 39 | + modernize-return-braced-init-list, |
| 40 | + modernize-type-traits, |
| 41 | + modernize-use-bool-literals, |
| 42 | + modernize-use-equals-default, |
| 43 | + modernize-use-equals-delete, |
| 44 | + # modernize-use-nullptr, |
| 45 | + modernize-use-override, |
| 46 | + modernize-use-using, |
| 47 | + readability-delete-null-pointer, |
| 48 | + readability-duplicate-include, |
| 49 | + readability-else-after-return, |
| 50 | + readability-enum-initial-value, |
| 51 | + readability-inconsistent-declaration-parameter-name, |
| 52 | + # readability-magic-numbers, |
| 53 | + readability-math-missing-parentheses, |
| 54 | + # readability-misleading-indentation, |
| 55 | + readability-misplaced-array-index, |
| 56 | + readability-redundant-casting, |
| 57 | + readability-redundant-control-flow, |
| 58 | + readability-redundant-declaration, |
| 59 | + readability-redundant-function-ptr-dereference, |
| 60 | + readability-redundant-inline-specifier, |
| 61 | + readability-redundant-member-init, |
| 62 | + readability-redundant-parentheses, |
| 63 | + readability-redundant-preprocessor, |
| 64 | + readability-reference-to-constructed-temporary, |
| 65 | + # readability-static-accessed-through-instance, |
| 66 | + readability-static-definition-in-anonymous-namespace, |
| 67 | + readability-use-concise-preprocessor-directives, |
| 68 | +
|
| 69 | +# Treat warnings as errors (empty = no errors) |
| 70 | +WarningsAsErrors: '' |
| 71 | + |
| 72 | +# Regex to filter which headers to analyze |
| 73 | +# Only analyze headers from pgModeler project directories |
| 74 | +# This regex matches absolute paths containing /pgmodeler/ followed by apps, libs, or priv-plugins |
| 75 | +HeaderFilterRegex: '.*/pgmodeler/(apps|libs|plugins|priv-plugins)/.*\.(h|hpp|cpp)$' |
| 76 | + |
| 77 | +# Enable all checks by default in system headers (off for performance) |
| 78 | +SystemHeaders: false |
| 79 | + |
| 80 | +# Format style for fix suggestions (follow .clang-format if available) |
| 81 | +FormatStyle: file |
0 commit comments