From 93c66e140006248032ebe4a1fc1fb9187c77e77a Mon Sep 17 00:00:00 2001 From: Dawid Weiss Date: Thu, 30 Sep 2021 15:19:19 +0200 Subject: [PATCH] LUCENE-9713: exclude .idea/ (sync with Solr's version). --- gradle/validation/validate-source-patterns.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gradle/validation/validate-source-patterns.gradle b/gradle/validation/validate-source-patterns.gradle index 224853e6f1c..ee8952a09fb 100644 --- a/gradle/validation/validate-source-patterns.gradle +++ b/gradle/validation/validate-source-patterns.gradle @@ -79,6 +79,7 @@ subprojects { // default excludes. exclude 'build/**' + exclude '**/.idea/**' // ignore txt files in source resources and tests. exclude 'src/**/*.txt' @@ -248,7 +249,7 @@ class ValidateSourcePatternsTask extends DefaultTask { logger.debug('Scanning source file: {}', f); def text = f.getText('UTF-8'); - invalidPatterns.each{ pattern,name -> + invalidPatterns.each { pattern, name -> if (pattern.matcher(text).find()) { reportViolation(f, name); }