Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate column names #107

Closed
pezholio opened this issue Mar 4, 2014 · 2 comments · Fixed by #121
Closed

Duplicate column names #107

pezholio opened this issue Mar 4, 2014 · 2 comments · Fixed by #121

Comments

@pezholio
Copy link
Contributor

pezholio commented Mar 4, 2014

http://csvlint.io/validation/530b5aa263737633f8000000 gives duplicate column name errors, as there's a title line on the first row, then a blank row, followed by headers.

It seems to be a common issue that people put information about the CSV in the first line (or few lines). Should we generate a separate error for this if the first few lines have one column? Something which in the front end would say:

"Your CSV seems to contain unstructured text at the beginning of the file, it is important that your CSV only contains structured data - any background information or metadata should be included on a referring web page or accompanying document"

@ldodds
Copy link
Contributor

ldodds commented Mar 4, 2014

That could be useful. If there were just fewer columns at the beginning, but the rest of the file was consistent then it suggests there's some preamble there that needs to be removed.

Probably more informative to try and spot that rather than have the generic error.

@JeniT
Copy link
Contributor

JeniT commented Mar 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants