Skip to content
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

Switch from style to transformers #2838

Merged
merged 9 commits into from
Nov 7, 2019
Merged

Conversation

tvatter
Copy link
Contributor

@tvatter tvatter commented Oct 16, 2019

The styler package writers recommend using the transformers argument rather than the style argument for more flexibility: r-lib/styler#500.

This was also addressed in this issue: r-lib/styler#340.

It does not change the behavior for most users, but one can now do something like use ale_r_styler_options to tweak specific elements of the fixer (e.g., do tidyverse_style(strict = FALSE) to change from the default strict = TRUE) rather than having to change the whole style (e.g. change from tidyverse_style to something completely different). With the current code, only the later was allowed, and the former wasn't possible. With the PR, both are allowed.

PS: Sorry for all the commits. My fork wasn't clean. It would be great if you could squash everything when merging.

@tvatter
Copy link
Contributor Author

tvatter commented Nov 6, 2019

Any news on that? No rush at all, but that's a straightforward modification for a fixer that already exist... If it helps, it was @w0rp who did the review of the code when I initially added styler as a fixer for R.

@w0rp w0rp merged commit db6b1b5 into dense-analysis:master Nov 7, 2019
@w0rp
Copy link
Member

w0rp commented Nov 7, 2019

Cheers! 🍻

Sorry for the delay. I catch up on emails now and then.

@tvatter
Copy link
Contributor Author

tvatter commented Nov 7, 2019

No problem, thanks a lot!

AntoineGagne added a commit to AntoineGagne/ale that referenced this pull request Nov 20, 2019
* master:
  Clean up the nimpretty code
  add nimpretty fixer
  Default errorview in pwsh7 now concise
  Add tagged entry for symbols to documentation
  Switch variables to dictionary key
  Add scriptencoding to `completion.vim`
  Fix typo
  Add documentation for ale-symbols feature
  Allow the user to set their own completion values
  Switch from style to transformers (dense-analysis#2838)
  Fix a test failing in AppVeyor
  Revert "Add definition of c/clangd's language as C (dense-analysis#2791)"
  Add nimcheck end_col options
  Allow the use of StandardX for StandardJS linting and fixing. See https://github.com/standard/standardx
  Remove standardts fixer in favor of allowing standard.vim fixer to handle JavaScript or TypeScript options.
  Make sure README and docs are synced.
  Add StandardJS for TypeScript linting and fixing.
  Fix crystal-lang non file-tied message handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants