Merge "Use tidyExternalVendor for external/googletest"
This commit is contained in:
commit
095aac0614
1 changed files with 2 additions and 0 deletions
|
@ -115,6 +115,7 @@ var DefaultLocalTidyChecks = []PathBasedTidyCheck{
|
|||
{"external/", tidyExternalVendor},
|
||||
{"external/google", tidyDefault},
|
||||
{"external/webrtc", tidyDefault},
|
||||
{"external/googletest/", tidyExternalVendor},
|
||||
{"frameworks/compile/mclinker/", tidyExternalVendor},
|
||||
{"hardware/qcom", tidyExternalVendor},
|
||||
{"vendor/", tidyExternalVendor},
|
||||
|
@ -133,6 +134,7 @@ func reverseTidyChecks(in []PathBasedTidyCheck) []PathBasedTidyCheck {
|
|||
}
|
||||
|
||||
func TidyChecksForDir(dir string) string {
|
||||
dir = dir + "/"
|
||||
for _, pathCheck := range reversedDefaultLocalTidyChecks {
|
||||
if strings.HasPrefix(dir, pathCheck.PathPrefix) {
|
||||
return pathCheck.Checks
|
||||
|
|
Loading…
Reference in a new issue