1*04408ef5SPatrick WilliamsChecks: '-*, 290629cc4SLei YU bugprone-unchecked-optional-access, 312cf111bSJayanth Othayoth modernize-use-nullptr, 45ae48158SAlexander Hansen readability-function-size, 55ae48158SAlexander Hansen readability-function-cognitive-complexity 65ae48158SAlexander Hansen ' 7*04408ef5SPatrick Williams 85ae48158SAlexander HansenCheckOptions: 9*04408ef5SPatrick Williams- key: readability-function-size.LineThreshold 10*04408ef5SPatrick Williams value: 60 # [1] 11*04408ef5SPatrick Williams- key: readability-function-size.ParameterThreshold 12*04408ef5SPatrick Williams value: 6 # [2] 13*04408ef5SPatrick Williams- key: readability-function-cognitive-complexity.Threshold 14*04408ef5SPatrick Williams value: 25 # [3] 15*04408ef5SPatrick Williams 16*04408ef5SPatrick WilliamsHeaderFilterRegex: '(?!^subprojects).*' 175ae48158SAlexander Hansen 18e6185cf8SPatrick WilliamsWarningsAsErrors: '*' 19e6185cf8SPatrick Williams 205ae48158SAlexander Hansen# [1] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple 215ae48158SAlexander Hansen# [2] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f2-a-function-should-perform-a-single-logical-operation 225ae48158SAlexander Hansen# [3] https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#f3-keep-functions-short-and-simple 235ae48158SAlexander Hansen# However cognitive complexity != cyclomatic complexity. Therefore using the clang-tidy default value, 245ae48158SAlexander Hansen# as cyclomatic complexity seems to not be implemented in clang-tidy. 255ae48158SAlexander Hansen 265ae48158SAlexander Hansen# [1],[2],[3] do not have to be enforced or applied project-wide yet. 27