-
Notifications
You must be signed in to change notification settings - Fork 25
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
Box trailing commas linter #535
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #535 +/- ##
==========================================
+ Coverage 20.85% 26.91% +6.06%
==========================================
Files 10 10
Lines 422 457 +35
==========================================
+ Hits 88 123 +35
Misses 334 334 ☔ View full report in Codecov by Sentry. |
Add argument flag for bracket trailing commas. Default to FALSE. |
* update rhino app template unit test * update e2etest app files * remove what looks like stylr styling
|
* box universal import linter * add box_universal_import_linter to .lintr template * documentation * package housekeeping * removed some lint * namespace box_universal_import_linter * reordered Suggests * update e2etest app files to rhino-box styleguide * address comments/suggestions in PR * fixed version number issue. moved xml2 to imports
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.
LGTM
Changes
box_trailing_commas_linter()
.lintr
templatecheck_functions = c(TRUE, FALSE)
argument.How to test
box_trailing_commas_linter()
existrhino
, version should be1.6.0.9002
, initialize a new rhino application then proceed to declare box imports.rhino::lint_r()
should find and point to all package, module, function imports without a trailing comma.box_trailing_commas_linter = rhino::box_trailing_commas_linter()
to.lintr
.rhino::lint_r()
should find and point to all package, module, function imports without a trailing comma.Known issues
I believe it sees the trailing commas in the example and complains.