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
Add option for suppressing styler communication #640
Conversation
Hi Lorenz! Thanks for the patience. I finally got around to this. One thing. I looked a little bit, but couldn't find if or where styler's communication was tested. Mind sharing a code pointer? Thanks! |
Thanks. Two things to debate:
Tests for communication are here: https://github.com/r-lib/styler/blob/master/tests/testthat/test-public_api.R |
I can't think of a situation where "less verbose" makes sense. For my use case, either the messaging is useful (which it almost always is), or it is interfering with something like stdout. I'm happy to update the flag name. Alignment with other packages is good. |
Codecov Report
@@ Coverage Diff @@
## master #640 +/- ##
==========================================
- Coverage 90.41% 90.35% -0.07%
==========================================
Files 47 47
Lines 2181 2188 +7
==========================================
+ Hits 1972 1977 +5
- Misses 209 211 +2
Continue to review full report at Codecov.
|
How come that a significant part of |
Because I have an autoformatter that needs to be manually disabled Sorry, it's fixed. |
Out of curiosity: Which formatter do you use? Could we add that to {precommit} as a hook? |
Thanks @michaelquinn32. |
A precommit would be great! I'm using an internal formatter, but I don't think it matters all that much. prettier, for example, supports markdown: https://github.com/prettier/prettier |
They already made a pre-commit compatible hooks themself: https://prettier.io/docs/en/precommit.html#option-3-pre-commithttpsgithubcompre-commitpre-commit |
This implements FR #637