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

Improve Documentation of CSVLintBear #2884

Closed
wants to merge 1 commit into from
Closed

Improve Documentation of CSVLintBear #2884

wants to merge 1 commit into from

Conversation

chay2199
Copy link
Contributor

@chay2199 chay2199 commented Mar 5, 2019

Provide some more details on what
respects the csv file is being validated.

Closes #2277

For short term contributors: we understand that getting your commits well
defined like we require is a hard task and takes some learning. If you
look to help without wanting to contribute long term there's no need
for you to learn this. Just drop us a message and we'll take care of brushing
up your stuff for merge!

Checklist

  • I read the commit guidelines and I've followed
    them.
  • I ran coala over my code locally. (All commits have to pass
    individually.
    It is not sufficient to have "fixup commits" on your PR,
    our bot will still report the issues for the previous commit.) You will
    likely receive a lot of bot comments and build failures if coala does not
    pass on every single commit!

After you submit your pull request, DO NOT click the 'Update Branch' button.
When asked for a rebase, consult coala.io/rebase
instead.

Please consider helping us by reviewing other peoples pull requests as well:

The more you review, the more your score will grow at coala.io and we will
review your PRs faster!

- against multiple schema standards; CSV on the Web

Find out more at:
<https://github.com/theodi/csvlint.rb/blob/master/README.md>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this link necessary ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary but it can provide more information about the validation process. So should I remove it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it gives more information, then OK 👍

@@ -9,6 +9,15 @@
class CSVLintBear: # pragma nt: no cover
"""
Verifies using ``csvlint`` if ``.csv`` files are valid CSV or not.
The ``CSVLintBear`` has validation that checks:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO has -> does

- delimiter-separated values (dsv) file accessible via URL, File,
or an IO-style object (e.g. StringIO)
- against CSV dialects
- against multiple schema standards; CSV on the Web
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does CSV on the web means ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CSV on the web provides standard ways to express useful metadata about CSV files and other kinds of tabular data.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, it isn't a validation check right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No

Copy link
Contributor

@KVGarg KVGarg Mar 7, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just replace semi-colon with and to differentiate between “ schema standards“ and “csv on the web”
Because both of them are different

- against multiple schema standards; CSV on the Web

Find out more at:
<https://github.com/theodi/csvlint.rb/blob/master/README.md>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use SEE_MORE.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkhanale so you want me to replace "Find out more at:" with "SEE_MORE" followed by the link?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git grep SEE_MORE. You can find lot of examples.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it! Thanks for the review.

@@ -9,6 +9,12 @@
class CSVLintBear: # pragma nt: no cover
"""
Verifies using ``csvlint`` if ``.csv`` files are valid CSV or not.
The ``CSVLintBear`` does validation that checks:
- structural formatting of a CSV file
- delimiter-separated values (dsv) file accessible via URL, File,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- delimiter-separated values (dsv) file accessible via URL, File,
- delimiter-separated values (DSV) file accessible via URL, File,

- delimiter-separated values (dsv) file accessible via URL, File,
or an IO-style object (e.g. StringIO)
- against CSV dialects
- against multiple schema standard and CSV on the Web
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- against multiple schema standard and CSV on the Web
- against multiple schema standards and CSV on the Web

Copy link
Contributor

@frextrite frextrite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change commit title(additionally the PR title) to reflect which file is being updated in the current PR

@chay2199 chay2199 changed the title Improve documentation of CSVLintBear CSVLintBear.py: Improve Documentation Mar 8, 2019
@chay2199 chay2199 changed the title CSVLintBear.py: Improve Documentation Improve Documentation of CSVLintBear Mar 8, 2019
@chay2199 chay2199 closed this Mar 8, 2019
@li-boxuan li-boxuan reopened this Mar 9, 2019
Provide some more details on what
respects the csv file is being validated.

Closes #2277
Copy link
Member

@bkhanale bkhanale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to squash commits into one.

The ``CSVLintBear`` does validation that checks:
- structural formatting of a CSV file
- delimiter-separated values (DSV) file accessible via URL, File,
or an IO-style object (e.g. StringIO)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need alignment of sentences in one column.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KVGarg I can't understand you properly. Are you talking about the misalignment of line no. 15?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, need a tab space before “or”

Copy link
Contributor Author

@chay2199 chay2199 Mar 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was like that early on but coala or some build showed an error because of it. That is why I changed it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok 👍🏻

Copy link
Contributor

@KVGarg KVGarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTN 💯

@jayvdb
Copy link
Member

jayvdb commented Jul 21, 2019

Needs a rebase

@jayvdb
Copy link
Member

jayvdb commented Aug 22, 2019

@chay2199 please rebase!

@chay2199
Copy link
Contributor Author

@jayvdb @li-boxuan I am extremely sorry, but my fork of coala-bears repo got corrupted and it no longer exists now. This PR is without a parent, please close this one and I'll make a new one for the same issue.

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

Successfully merging this pull request may close these issues.

Improve documentation of CSVLintBear
8 participants