non-YML language definitions are now ignored during build time
This commit is contained in:
parent
05385eeecc
commit
3be8e9626d
2 changed files with 8 additions and 0 deletions
|
|
@ -5,6 +5,10 @@ ext.validateLanguageFiles = { definitionsDir, dictionariesDir, validationDir ->
|
|||
int errorCount = 0
|
||||
|
||||
def errorStream = fileTree(dir: definitionsDir).getFiles().parallelStream().map { definition ->
|
||||
if (!definition.name.endsWith("yml")) {
|
||||
return ""
|
||||
}
|
||||
|
||||
if (errorCount >= MAX_ERRORS) {
|
||||
return "Too many errors! Skipping: ${definition}\n"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue