-
Notifications
You must be signed in to change notification settings - Fork 187
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
Structure of lintr documentation #888
Comments
A few ideas off the top of my head regarding this:
|
PyLint has a large interlinked reference containing all linters, much like a vignette. |
great reference for To me what makes the most sense are (1) and (2) [both]. That way something like I'm not sure I see any value of a vignette beyond what those two would offer. |
How would we split up the linters? I'm seeing three major categories: possible coding errors (e.g. missing bindings, missing or extra arguments), sytle / formatting issues (e.g. spacing, naming) and efficiency / portability issues (e.g. unneeded concatenation, undesirable functions, backports). Any thoughts? |
I think you're on the right track. My original thought was that we'd have "tidyverse linters" and "Google linters", but practically it's not very useful/user-friendly. We want a taxonomy that will be more useful to users and I think it's a good start. Internally I've been tagging our linters with a few keywords:
Is there anything stopping us from listing the same linter under multiple categories? Maybe we should have a Google Spreadsheet with all the linters and possible meta-categories for them and go from there? |
I started a spreadsheet here: https://docs.google.com/spreadsheets/d/1sE87DFwemUQhhZadNG95UwPvYYYPuVjCZE6f5fuuJkc/edit?usp=sharing Anyone linked has edit access (🤞) so feel free to adjust the tags / comment. cc @russHyde Who else should we ping on this effort? NB: I'm using the CRAN version of |
Thanks for including me. Though I appreciate I've largely been absent during the past two years. |
Thanks for providing a start. WDYT about including the data on lintr in CSV form in
I think it would also be useful to add a tag marking |
Here are some more thoughts on the interface and documentation structure:
A simple way to store the tags would be csv with an, e.g. pipe separated, tag list as a single column. |
All sounds good to me.
How does this work given the one->many mapping of linters->tags? linter is only in the Rd of its primary tag? Or duplicated in all pages where it's tagged? Does Rd support that? Maybe only add an
Not quite following here, does it mean Happy to review CLs for this and should be able to contribute code in the next several weeks |
I was thinking one help page per linter, linking to all its tag help pages.
That would be a convenience feature to filter the linters based on a tag name, as this functionality would be needed to auto-generate the tag rds anyway.
|
@MichaelChirico I've started a PR #908 to get a feel for what the implementation would look like. |
Agree it makes sense to have one landing page, but maybe we need
instead? ?linters is already 300 lines long
Originally posted by @MichaelChirico in #887 (comment)
The text was updated successfully, but these errors were encountered: