forked from flutter/flutter
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add clang-analyzer-* and clang-diagnostic-* to .clang-tidy (flutter#3…
- Loading branch information
Showing
44 changed files
with
191 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
# Prefix check with "-" to ignore. | ||
Checks: "google-*,\ | ||
clang-analyzer-*,\ | ||
clang-diagnostic-*,\ | ||
-google-objc-global-variable-declaration,\ | ||
-google-objc-avoid-throwing-exception" | ||
-google-objc-avoid-throwing-exception,\ | ||
-clang-analyzer-nullability.NullPassedToNonnull,\ | ||
-clang-analyzer-nullability.NullablePassedToNonnull,\ | ||
-clang-analyzer-nullability.NullReturnedFromNonnull,\ | ||
-clang-analyzer-nullability.NullableReturnedFromNonnull" | ||
|
||
# Only warnings treated as errors are reported | ||
# in the "ci/lint.sh" script and pre-push git hook. | ||
# Add checks when all warnings are fixed | ||
# to prevent new warnings being introduced. | ||
# https://github.com/flutter/flutter/issues/93279 | ||
WarningsAsErrors: "clang-analyzer-osx.*,\ | ||
WarningsAsErrors: "clang-analyzer-*,\ | ||
clang-diagnostic-*,\ | ||
google-objc-*,\ | ||
google-explicit-constructor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.