diff --git a/.clang-tidy b/.clang-tidy index b65d8f4336e1c..0e68ce7e4b3c1 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -39,3 +39,11 @@ CheckOptions: value: "lower_case" - key: readability-identifier-naming.PrivateMemberSuffix value: "_" + +# Lint headers within paths that contain "/flutter/" but not: +# - gen (generated code, the fact it compiles is good enoughâ„¢) +# - third_party (we didn't author most of the code, and can't fix the lints) +# +# Note this is because of our buildroot setup, so the full path of a lint is: +# "../../flutter/impeller/core/runtime_types.h:1:1" as reported. +HeaderFilterRegex: "(!third_party/)(!gen/).*/flutter/.*"