WebUI: Use Map instead of Mootools Hash in Torrents table
[qBittorrent.git] / .clang-tidy
blobfec7d003d15dd3817b5eeac04c69e57dc65126ac
1 Checks: >
2   bugprone-*,
3   cert-*,
4   concurrency-*,
5   cppcoreguidelines-*,
6   misc-*,
7   modernize-*,
8   performance-*,
9   portability-*,
10   readability-*,
11   -# not applicable at all,
12   -bugprone-easily-swappable-parameters,
13   -bugprone-implicit-widening-of-multiplication-result,
14   -bugprone-macro-parentheses,
15   -cppcoreguidelines-avoid-c-arrays,
16   -cppcoreguidelines-avoid-magic-numbers,
17   -cppcoreguidelines-avoid-non-const-global-variables,
18   -cppcoreguidelines-macro-usage,
19   -cppcoreguidelines-non-private-member-variables-in-classes,
20   -cppcoreguidelines-owning-memory,
21   -cppcoreguidelines-pro-bounds-array-to-pointer-decay,
22   -cppcoreguidelines-pro-bounds-constant-array-index,
23   -cppcoreguidelines-pro-bounds-pointer-arithmetic,
24   -cppcoreguidelines-pro-type-const-cast,
25   -cppcoreguidelines-pro-type-reinterpret-cast,
26   -cppcoreguidelines-pro-type-union-access,
27   -cppcoreguidelines-pro-type-vararg,
28   -cppcoreguidelines-special-member-functions,
29   -cppcoreguidelines-virtual-class-destructor,
30   -misc-no-recursion,
31   -misc-non-private-member-variables-in-classes,
32   -misc-unused-parameters,
33   -modernize-avoid-c-arrays,
34   -modernize-pass-by-value,
35   -modernize-use-auto,
36   -modernize-use-nodiscard,
37   -modernize-use-trailing-return-type,
38   -readability-function-cognitive-complexity,
39   -readability-function-size,
40   -readability-identifier-length,
41   -readability-implicit-bool-conversion,
42   -readability-isolate-declaration,
43   -readability-magic-numbers,
44   -readability-named-parameter,
45   -readability-redundant-access-specifiers,
46   -readability-simplify-boolean-expr,
47   -readability-uppercase-literal-suffix,
48   -# only sometimes useful,
49   -bugprone-narrowing-conversions,
50   -cert-dcl58-cpp,
51   -cert-err33-c,
52   -cert-err58-cpp,
53   -clang-analyzer-core.CallAndMessage,
54   -clang-analyzer-cplusplus.NewDelete,
55   -clang-analyzer-cplusplus.NewDeleteLeaks,
56   -concurrency-mt-unsafe,
57   -cppcoreguidelines-init-variables,
58   -cppcoreguidelines-narrowing-conversions,
59   -cppcoreguidelines-prefer-member-initializer,
60   -cppcoreguidelines-pro-type-static-cast-downcast,
61   -misc-definitions-in-headers,
62   -modernize-concat-nested-namespaces,
63   -modernize-loop-convert,
64   -modernize-raw-string-literal,
65   -modernize-unary-static-assert,
66   -performance-no-automatic-move,
67   -readability-convert-member-functions-to-static,
68   -readability-else-after-return,
69   -readability-redundant-declaration,
70   -# obsoleted,
71   -cert-dcl21-cpp
73 CheckOptions:
74   - { key: cppcoreguidelines-explicit-virtual-functions.IgnoreDestructors, value: true }
75   - { key: modernize-use-override.IgnoreDestructors, value: true }
76   - { key: performance-for-range-copy.AllowedTypes, value: "QJsonValue" }
77   - { key: performance-for-range-copy.WarnOnAllAutoCopies, value: true }
78   - { key: readability-braces-around-statements.ShortStatementLines, value: 3 }
80 HeaderFilterRegex: ".+/src/.*\\.h"
81 WarningsAsErrors: "*"