Skip to content

Commit 523e00e

Browse files
committed
cicd: enable lazyquotes flag
1 parent d5b02ba commit 523e00e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
curl -sSL https://github.com/Clever/csvlint/releases/download/v0.3.0/csvlint-v0.3.0-linux-amd64.tar.gz | tar xz --strip-components=1
1616
for filename in data/v2/csv/*.csv; do
1717
echo "$filename"
18-
./csvlint "$filename"
18+
./csvlint -lazyquotes "$filename" # TODO: remove lazyquotes when https://github.com/Clever/csvlint/issues/45 will be addressed
1919
done
2020
sqlite:
2121
runs-on: ubuntu-latest
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Check if a csv has all required commas
2+
3+
var fs = require("fs");
4+
5+
var allLines = fs.readFileSync('./data/v2/csv/pokemon_moves.csv').toString().split('\n');
6+
7+
allLines.forEach(function (line) {
8+
var count = (line.match(/,/g) || []).length;
9+
if (count === 5) {
10+
line = line + ","
11+
}else if ( count === 6) {
12+
console.log('found mastery')
13+
} else if (count < 5) {
14+
console.log('?')
15+
}
16+
fs.appendFileSync("./data/v2/csv/pokemon_moves1.csv", line.toString() + "\n");
17+
});

0 commit comments

Comments
 (0)