All Projects → Clever → Csvlint

Clever / Csvlint

Licence: apache-2.0
library and command line tool that validates a CSV file

Labels

Projects that are alternatives of or similar to Csvlint

Freebsd Vscode
Visual Studio Code port for FreeBSD
Stars: ✭ 121 (-4.72%)
Mutual labels:  makefile
Apiproject
[https://www.sofineday.com], golang项目开发脚手架,集成最佳实践(gin+gorm+go-redis+mongo+cors+jwt+json日志库zap(支持日志收集到kafka或mongo)+消息队列kafka+微信支付宝支付gopay+api加密+api反向代理+go modules依赖管理+headless爬虫chromedp+makefile+二进制压缩+livereload热加载)
Stars: ✭ 124 (-2.36%)
Mutual labels:  makefile
Webnn
🧠 Web Neural Network API
Stars: ✭ 126 (-0.79%)
Mutual labels:  makefile
Genericmakefile
A generic makefile for use with small/medium C and C++ projects.
Stars: ✭ 1,587 (+1149.61%)
Mutual labels:  makefile
Pkgsrc
[Please switch to NetBSD/pkgsrc] Automatically updated conversion of the "pkgsrc" module from anoncvs.netbsd.org
Stars: ✭ 123 (-3.15%)
Mutual labels:  makefile
Easymake
A handy makefile for simple C/C++ applications
Stars: ✭ 125 (-1.57%)
Mutual labels:  makefile
Arduino.tmbundle
The TextMate Arduino Bundle
Stars: ✭ 119 (-6.3%)
Mutual labels:  makefile
Mls Protocol
MLS protocol
Stars: ✭ 127 (+0%)
Mutual labels:  makefile
Quickref.dev
Quickref.dev community sources
Stars: ✭ 124 (-2.36%)
Mutual labels:  makefile
Base
Minimal BusyBox Docker container
Stars: ✭ 126 (-0.79%)
Mutual labels:  makefile
Chromium Headless Remote
🐳 Dockerized Chromium in headless remote debugging mode
Stars: ✭ 122 (-3.94%)
Mutual labels:  makefile
Mmake
Mmake is a small program which wraps make to provide additional functionality, such as user-friendly help output, remote includes, and eventually more. It otherwise acts as a pass-through to standard make.
Stars: ✭ 1,593 (+1154.33%)
Mutual labels:  makefile
Onl
Please visit the Open Compute Project repository
Stars: ✭ 125 (-1.57%)
Mutual labels:  makefile
Awesome Dtrace
A curated list of awesome DTrace books, articles, videos, tools and resources.
Stars: ✭ 121 (-4.72%)
Mutual labels:  makefile
Hackable Consumer Hardware
List of hackable consumer hardware products
Stars: ✭ 127 (+0%)
Mutual labels:  makefile
Redo
Smaller, easier, more powerful, and more reliable than make. An implementation of djb's redo.
Stars: ✭ 1,589 (+1151.18%)
Mutual labels:  makefile
Executors
A proposal for a executor programming model for ISO C++
Stars: ✭ 124 (-2.36%)
Mutual labels:  makefile
Openelec.tv
OpenELEC - The living room PC for everyone
Stars: ✭ 1,595 (+1155.91%)
Mutual labels:  makefile
Biscuitos
Common scripts to build BiscuitOS
Stars: ✭ 128 (+0.79%)
Mutual labels:  makefile
3dshomebrew
3DS homebrew tutorial
Stars: ✭ 126 (-0.79%)
Mutual labels:  makefile

csvlint

csvlint is a library and command-line utility for linting CSV files according to RFC 4180.

It assumes that your CSV file has an initial header row.

Everything in this README file refers to the command-line utility. For information about the library, see godoc.

Installing

Standalone executables for multiple platforms are available via Github Releases.

You can also compile from source:

go get github.com/Clever/csvlint/cmd/csvlint

Usage

csvlint [options] /path/to/csv/file

Options

NOTE: The default settings validate that a CSV conforms to RFC 4180. By changing the settings, you can no longer strictly guarantee a CSV conforms to RFC 4180.

  • delimiter: the field delimiter, can be any single unicode character
    • default: "," (comma)
    • valid options: "\t", "|", "ஃ", etc
    • if you want multi-character delimiters, you're probably doing CSVs wrong
  • lazyquotes: allow a quote to appear in an unquoted field and a non-doubled quote to appear in a quoted field. WARNING: your file may pass linting, but not parse in the way you would expect

Examples

$ csvlint bad_quote.csv
Record #1 has error: bare " in non-quoted-field

unable to parse any further

$ csvlint --lazyquotes bad_quote.csv
file is valid

$ csvlint mult_long_columns.csv
Record #2 has error: wrong number of fields in line
Record #4 has error: wrong number of fields in line

$ csvlint --delimiter='\t' mult_long_columns_tabs.csv
Record #2 has error: wrong number of fields in line
Record #4 has error: wrong number of fields in line

$ csvlint one_long_column.csv
Record #2 has error: wrong number of fields in line

$ csvlint perfect.csv
file is valid

Exit codes

csvlint uses three different exit codes to mean different things:

  • 0 - the file is valid
  • 1 - couldn't parse the entire file
  • 2 - could parse the file, but there were lint failures

Vendoring

Please view the dev-handbook for instructions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].