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

Extend assignment_linter() to enforce '=' by default for assignment #2441

Open
MichaelChirico opened this issue Dec 14, 2023 · 1 comment · May be fixed by #2698
Open

Extend assignment_linter() to enforce '=' by default for assignment #2441

MichaelChirico opened this issue Dec 14, 2023 · 1 comment · May be fixed by #2698
Labels
feature a feature request or enhancement

Comments

@MichaelChirico
Copy link
Collaborator

Currently, we don't have a way for enforcing a style guide rule other than <-, but not all authors prefer this.

We should extend assignment_linter() to allow for a different default operator (with either <- or = allowed).

@MichaelChirico MichaelChirico added the feature a feature request or enhancement label Dec 14, 2023
@IndrajeetPatil
Copy link
Collaborator

Agreed. This will also help users who prefer (e.g.) {formatR} over {styler} as a formatter for R:

library(formatR)
tidy_source(text = "x = 1")
#> x = 1

Created on 2023-12-14 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants