-
Notifications
You must be signed in to change notification settings - Fork 579
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
Conversation
bears/csv/CSVLintBear.py
Outdated
- against multiple schema standards; CSV on the Web | ||
|
||
Find out more at: | ||
<https://github.com/theodi/csvlint.rb/blob/master/README.md> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this link necessary ?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
bears/csv/CSVLintBear.py
Outdated
@@ -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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO has
-> does
bears/csv/CSVLintBear.py
Outdated
- 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 |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No
There was a problem hiding this comment.
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
bears/csv/CSVLintBear.py
Outdated
- against multiple schema standards; CSV on the Web | ||
|
||
Find out more at: | ||
<https://github.com/theodi/csvlint.rb/blob/master/README.md> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use SEE_MORE
.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
bears/csv/CSVLintBear.py
Outdated
@@ -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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- delimiter-separated values (dsv) file accessible via URL, File, | |
- delimiter-separated values (DSV) file accessible via URL, File, |
bears/csv/CSVLintBear.py
Outdated
- 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- against multiple schema standard and CSV on the Web | |
- against multiple schema standards and CSV on the Web |
There was a problem hiding this 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
Provide some more details on what respects the csv file is being validated. Closes #2277
There was a problem hiding this 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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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”
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok 👍🏻
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTN 💯
Needs a rebase |
@chay2199 please rebase! |
@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. |
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
them.
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:
corobo mark wip <URL>
to get it outof the review queue.
The more you review, the more your score will grow at coala.io and we will
review your PRs faster!