Skip to content

Commit

Permalink
Remove platform linux from checks. Very rough, but better it seems th…
Browse files Browse the repository at this point in the history
…an disabling enum cast checks
  • Loading branch information
andy31415 committed Feb 22, 2024
1 parent 12e5e6b commit 69eb225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ Checks: >
-clang-analyzer-cplusplus.Move,
-clang-analyzer-deadcode.DeadStores,
-clang-analyzer-nullability.NullablePassedToNonnull,
-clang-analyzer-optin.core.EnumCastOutOfRange,
-clang-analyzer-optin.cplusplus.UninitializedObject,
-clang-analyzer-optin.cplusplus.VirtualCall,
-clang-analyzer-optin.osx.cocoa.localizability.EmptyLocalizationContextChecker,
Expand Down
6 changes: 5 additions & 1 deletion scripts/run-clang-tidy-on-compile-commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ def Check(self):
"--file-exclude-regex",
# NOTE: if trying '/third_party/' note that a lot of sources are routed through
# paths like `../../examples/chip-tool/third_party/connectedhomeip/src/`
default="/(repo|zzz_generated)/",
#
# NOTE: src/platform/Linux disabled due to glib errors. Seemed like a better
# tradeoff that completely disabling EnumCastoutOfRange which seems
# to catch errors
default="/(repo|zzz_generated|src/platform/Linux)/",
help="Regular expression to apply to the file paths for running. Skip overrides includes.",
)
@click.option(
Expand Down

0 comments on commit 69eb225

Please sign in to comment.