Revert "To use same default for the nightly builds."

This reverts commit b063dc4221.

Reason for revert: DroidMonitor-triggered revert due to breakage https://android-build.googleplex.com/builds/quarterdeck?branch=git_master&target=crosshatch-userdebug&lkgb=7080774&lkbb=7082597&fkbb=7080869, bug 177549474

Test: make
Change-Id: I8b6cf3b56fddde9832e1428a3d1aef00f19637fb
This commit is contained in:
Chris Li
2021-01-14 19:48:49 +00:00
committed by Chih-Hung Hsieh
parent 6c0a9f69e9
commit 46cad069d1

View File

@@ -21,28 +21,23 @@ import (
func init() {
// Most Android source files are not clang-tidy clean yet.
// Default global tidy checks must exclude all checks that
// have found too many false positives.
// Global tidy checks include only google*, performance*,
// and misc-macro-parentheses, but not google-readability*
// or google-runtime-references.
pctx.VariableFunc("TidyDefaultGlobalChecks", func(ctx android.PackageVarContext) string {
if override := ctx.Config().Getenv("DEFAULT_GLOBAL_TIDY_CHECKS"); override != "" {
return override
}
return strings.Join([]string{
"*",
"-altera-*",
"-*",
"bugprone*",
"clang-diagnostic-unused-command-line-argument",
"google*",
"misc-macro-parentheses",
"performance*",
"-bugprone-narrowing-conversions",
"-cppcoreguidelines-*",
"-fuchsia-*",
"-google-readability-*",
"-google-readability*",
"-google-runtime-references",
"-hicpp-*",
"-llvm-*",
"-llvmlibc-*",
"-misc-no-recursion",
"-misc-non-private-member-variables-in-classes",
"-misc-unused-parameters",
"-modernize-*",
"-readability-*",
}, ",")
})