3 ms·
Is there something like CSVlint? Would be useful particular in the output stage, a kind of functional runtime test to make sure your program's output is valid a
by javajosh 5y ago
Is there something like CSVlint? Would be useful particular in the output stage, a kind of functional runtime test to make sure your program's output is valid and consumable.
- zabzonk 5y agoValidating CSV syntax is kind of hard - in the worst case you would have to read the entire CSV file.
- hermitcrab 5y agoEven then it seems that there aren't that many checks you can do, other than: -warning if different rows have different numbers of columns -warning if the file ends without closing escaping Without meta data you can't check data types. A missing escape character might result in a valid CSV (just not the one intended).