| Alexander Hansen | 5ae4815 | 2023-09-28 20:05:11 +0200 | [diff] [blame] | 1 | Checks: ' | 
|  | 2 | -*, | 
| Lei YU | 90629cc | 2025-02-06 06:04:33 +0000 | [diff] [blame] | 3 | bugprone-unchecked-optional-access, | 
| Alexander Hansen | 5ae4815 | 2023-09-28 20:05:11 +0200 | [diff] [blame] | 4 | readability-function-size, | 
|  | 5 | readability-function-cognitive-complexity | 
|  | 6 | ' | 
|  | 7 | CheckOptions: | 
|  | 8 | - { key: readability-function-size.LineThreshold,             value: 60 } # [1] | 
|  | 9 | - { key: readability-function-size.ParameterThreshold,        value: 6 }  # [2] | 
|  | 10 | - { key: readability-function-cognitive-complexity.Threshold, value: 25 } # [3] | 
|  | 11 |  | 
| Patrick Williams | e6185cf | 2025-02-07 11:06:53 -0500 | [diff] [blame] | 12 | WarningsAsErrors: '*' | 
| Alexander Hansen | 278f19d | 2025-03-13 15:44:57 +0100 | [diff] [blame] | 13 | HeaderFilterRegex: '(?!^subprojects).*' | 
| Patrick Williams | e6185cf | 2025-02-07 11:06:53 -0500 | [diff] [blame] | 14 |  | 
| Alexander Hansen | 5ae4815 | 2023-09-28 20:05:11 +0200 | [diff] [blame] | 15 | # [1] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple | 
|  | 16 | # [2] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f2-a-function-should-perform-a-single-logical-operation | 
|  | 17 | # [3] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple | 
|  | 18 | # However cognitive complexity != cyclomatic complexity. Therefore using the clang-tidy default value, | 
|  | 19 | # as cyclomatic complexity seems to not be implemented in clang-tidy. | 
|  | 20 |  | 
|  | 21 | # [1],[2],[3] do not have to be enforced or applied project-wide yet. |