-
Notifications
You must be signed in to change notification settings - Fork 36
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
Set linter and auto formatter #214
Comments
I also ran regular styler first and then styler.equals in this Rstudio add-in. https://github.com/sorhawell/styler.equals/blob/main/R/saveAndStylerEqualsAddin.R |
Finally seeing this conversation. Based on what is in styler I'm unsure why |
Thanks for the reply. It seems you've pinpointed the cause in Robinlovelace/styler.equals#3 (comment). |
@eitsupi I think this can be closed? |
Just got a notification on this. Seems it can be closed to me. On a different topic, I still didn't get |
@etiennebacher I don't think Rust and R linters are set up in CI yet. |
I didn't understand this was the point of this issue, I thought |
Maintainer of {styler} here, I can maybe help you if you open/point me to an issue in your repo and explain the problem to me. Actually, I think you could just take the code developed as part of this StackOverflow answer developed with my help in r-lib/styler#1170 if that's ok for the R Polars maintainers (and sorhawell in particular) from a licensing point of view. |
Hey @lorenzwalthert I know you have already helped but would you be willing to provide some pointers on the shelved |
Thanks for the offer, but AFAIK the only reason this issue is open is because we need to setup a CI for styler. Currently we use |
Heads-up @eitsupi I think this is fixed upstream in {styler.equals}. Can you check and confirm it work? Will look to release to CRAN and put it out there if so! |
@Robinlovelace Thank you for working on that! |
I think {styer.equals}, as a packaged solution, is more lightweight to use than to define a style guide in this project (if you want tidyverse style + |
Thanks for the suggestion. I will take a look when I have time. |
I was not concerned with the use of But now that @sorhawell is not doing the development, I would prefer if I could simplify things by moving away from the use of @etiennebacher Any thoughts? |
I don't have a preference between We have something that works, I don't think we should spend too much time on this. That said, if you want to change, I have nothing against it. |
Since I usually work on VS Code using the I then use the script to replace them with |
Last comment from my side here: VS Code is a good example for integration with other tools. Now that a packaged style guide exists with {styler.equals} that does what you want (if you still want 😄), you can simply options(languageserver.formatting_style = function(options) {
styler.equals::equals_style(scope = "indention", indent_by = options$tabSize)
}) as per the docs of the language server. |
Awesome! |
Thanks for pointing that, looks great! |
I got a new job and small kids and will most likely not be contributing to any open source for two years or so. All power to the active developers ! :) My secret next open source goal is to introduce |
I think we can close this for now then (also speaking with 1 soon to be 2 lottle ones, good luck with it all and thanks for getting the ball rolling on this and supporting the project as it evolves)! |
Thanks for looking into this. |
I tried
styler.equals
, but unfortunately, this currently seems to do little more than modify the assign operator.So perhaps
styler.equals::style_pkg()
should be executed afterstyler::style_pkg()
.The text was updated successfully, but these errors were encountered: