Refactoring: change "// BUNCH: xxx" format

It wasn't obvious how to use this comment properly.
Now it should be clear
This commit is contained in:
Nikita Bobko
2020-05-29 19:56:18 +03:00
committed by Nikita Bobko
parent b34fe77760
commit aa5a5c954f
115 changed files with 136 additions and 136 deletions
@@ -138,7 +138,7 @@ class CodeConformanceTest : TestCase() {
for (sourceFile in FileUtil.findFilesByMask(SOURCES_BUNCH_FILE_PATTERN, root)) {
if (EXCLUDED_FILES_AND_DIRS.any { FileUtil.isAncestor(it, sourceFile, false) }) continue
val matches = Regex("BUNCH: (\\w+)").findAll(sourceFile.readText())
val matches = Regex("BUNCH (\\w+)").findAll(sourceFile.readText())
.map { it.groupValues[1] }.toSet().filterNot { it in extensions }
for (bunch in matches) {
val filename = FileUtil.toSystemIndependentName(sourceFile.absoluteFile.toRelativeString(root))