blob: 31cac992ce61c238e2802c80b7b11a458225f28a [file] [log] [blame]
Alexander Hansen5ae48152023-09-28 20:05:11 +02001Checks: '
2 -*,
Lei YU90629cc2025-02-06 06:04:33 +00003 bugprone-unchecked-optional-access,
Jayanth Othayoth12cf1112025-03-21 10:28:31 -05004 modernize-use-nullptr,
Alexander Hansen5ae48152023-09-28 20:05:11 +02005 readability-function-size,
6 readability-function-cognitive-complexity
7'
8CheckOptions:
9 - { key: readability-function-size.LineThreshold, value: 60 } # [1]
10 - { key: readability-function-size.ParameterThreshold, value: 6 } # [2]
11 - { key: readability-function-cognitive-complexity.Threshold, value: 25 } # [3]
12
Patrick Williamse6185cf2025-02-07 11:06:53 -050013WarningsAsErrors: '*'
Alexander Hansen278f19d2025-03-13 15:44:57 +010014HeaderFilterRegex: '(?!^subprojects).*'
Patrick Williamse6185cf2025-02-07 11:06:53 -050015
Alexander Hansen5ae48152023-09-28 20:05:11 +020016# [1] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple
17# [2] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f2-a-function-should-perform-a-single-logical-operation
18# [3] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple
19# However cognitive complexity != cyclomatic complexity. Therefore using the clang-tidy default value,
20# as cyclomatic complexity seems to not be implemented in clang-tidy.
21
22# [1],[2],[3] do not have to be enforced or applied project-wide yet.