Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b063dc42 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh
Browse files

To use same default for the nightly builds.

* disable misc-no-recursion check

Bug: 173736193
Test: make with WITH_TIDY=1
Change-Id: Ibdf90d520f67b26f7adade4698868a47afa01161
parent 016370b1
Loading
Loading
Loading
Loading
+15 −10
Original line number Diff line number Diff line
@@ -21,23 +21,28 @@ import (

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