We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fdb791 commit 236e66cCopy full SHA for 236e66c
1 file changed
src/main/java/org/variantsync/diffdetective/datasets/DatasetDescription.java
@@ -1,5 +1,6 @@
1
package org.variantsync.diffdetective.datasets;
2
3
+import org.tinylog.Logger;
4
import org.variantsync.diffdetective.util.LaTeX;
5
import org.variantsync.diffdetective.util.StringUtils;
6
@@ -47,6 +48,17 @@ public static List<DatasetDescription> fromMarkdown(final Path markdownFile) thr
47
48
return lines
49
.skip(2) // Skip header
50
.map(line -> line.split("\\|"))
51
+ .filter(cells -> {
52
+ if (cells.length != 7) {
53
+ Logger.error("Skipping ill-formed line "
54
+ + String.join("|", cells)
55
+ + "! Expected 7 entries in a table (separated by |) but got "
56
+ + cells.length
57
+ + "!");
58
+ return false;
59
+ }
60
+ return true;
61
+ })
62
.filter(cells ->
63
isYes(cells[2]) && // hasCode
64
isYes(cells[3]) // isGitRepo
0 commit comments