blob: 06437802fe1e1ff4417d84bf9ad0b72ae9b2bbf2 [file] [log] [blame]
Patrick Williams04408ef2025-05-23 16:06:04 -04001Checks: '-*,
Lei YU90629cc2025-02-06 06:04:33 +00002 bugprone-unchecked-optional-access,
Jayanth Othayoth12cf1112025-03-21 10:28:31 -05003 modernize-use-nullptr,
Alexander Hansen5ae48152023-09-28 20:05:11 +02004 readability-function-size,
5 readability-function-cognitive-complexity
Patrick Williams04408ef2025-05-23 16:06:04 -04006 '
7
Alexander Hansen5ae48152023-09-28 20:05:11 +02008CheckOptions:
Patrick Williams04408ef2025-05-23 16:06:04 -04009- key: readability-function-size.LineThreshold
10 value: 60 # [1]
11- key: readability-function-size.ParameterThreshold
12 value: 6 # [2]
13- key: readability-function-cognitive-complexity.Threshold
14 value: 25 # [3]
15
16HeaderFilterRegex: '(?!^subprojects).*'
Alexander Hansen5ae48152023-09-28 20:05:11 +020017
Patrick Williamse6185cf2025-02-07 11:06:53 -050018WarningsAsErrors: '*'
Patrick Williamse6185cf2025-02-07 11:06:53 -050019
Alexander Hansen5ae48152023-09-28 20:05:11 +020020# [1] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple
21# [2] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f2-a-function-should-perform-a-single-logical-operation
22# [3] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple
23# However cognitive complexity != cyclomatic complexity. Therefore using the clang-tidy default value,
24# as cyclomatic complexity seems to not be implemented in clang-tidy.
25
26# [1],[2],[3] do not have to be enforced or applied project-wide yet.