Skip to content

Commit aa22e35

Browse files
lint: allow overlap of solution and test files for d and plsql tracks
This commit allows the `d` and `plsql` tracks to have the values in their `files.solution` and `files.test` keys in the `config.json` to overlap.
1 parent fea7bcc commit aa22e35

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lint/track_config.nim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,7 @@ proc checkExerciseSlugsAndForegone(exercises: Exercises; b: var bool;
666666

667667
proc checkFilePatternsOverlap(filePatterns: FilePatterns; trackSlug: string,
668668
b: var bool; path: Path) =
669+
const overlappingSolutionTestTrackSlugs = ["d", "plsql"]
669670
const uniqueFilePatternCombinations = [
670671
("solution", "test"),
671672
("solution", "example"),
@@ -683,6 +684,9 @@ proc checkFilePatternsOverlap(filePatterns: FilePatterns; trackSlug: string,
683684
seenFilePatterns[key] = patterns.toHashSet
684685

685686
for (key1, key2) in uniqueFilePatternCombinations:
687+
if key1 == "solution" and key2 == "test" and trackSlug in overlappingSolutionTestTrackSlugs:
688+
continue
689+
686690
let duplicatePatterns = seenFilePatterns[key1] * seenFilePatterns[key2]
687691
for duplicatePattern in duplicatePatterns:
688692
let msg =

0 commit comments

Comments
 (0)