-
Notifications
You must be signed in to change notification settings - Fork 580
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
FormatRBear: Allow to disable parameter-options for formatR #514
Comments
Thanks for reporting this issue! Your aid is required, fellow coalaian. Help us triage and solving this issue! CC @sils1297, @AbdealiJK |
can i work on this one ? |
sure! |
The options: `r_keep_comments` and `r_use_arrows` passed to to tidy_source, don't really need to be checked. This commit disables `r_keep_comments` if it is `None`, the same goes for `r_use_arrows` Fixes coala#514
Ah in the PR message this issue was referenced... but it's not solved yet |
I think |
Yes what you are saying is true. So is the requirement that in some places we should use the arrow and in other places we should still be using equal to sign? For example if we have r_use_arrows=true start_line_num=10 end_line_num=20, we can have arrows in line numbers from 10 to 20. Is that what is required? Can you please explain in a little detail what the requirements are? Thanks! |
If the setting is not touched inside a coafile, no check shall happen at all. For example:
This can be achieved via setting the default value for (Though this setting is only allowed to be either |
If I do not modify the r_use_arrows, and have both = and <- in my r file, nothing changes. The <- and = are both still intact. Here's an asciinema recording that I made. Hope this closes this issue. |
Oh than I was wrong :3 (Btw it's interesting what patch is applied in your asciinema as I can't see any change in the file :3) |
Are you talking about Applied 'ApplyPatchAction' on 'test.r' from 'FormatRBear' ? I just did a diff before and after the change. The bear adds a newline at the end of the file. |
ah alright, nothing serious then :D |
What else was needed in this ? I mean why is still open? Was anything missing? |
seems like it just wasn't continued^^ |
If I have understood the issue then we have to remove functionalities such as r_keep_comments , r_use_arrows. Do we have to remove r_braces_on_next_line ? |
No don't remove them, allow the bear to "ignore" the settings.
And we want by default having sth like |
Default options of r_braces_on_next_line, r_use_arrows are disabled. Closes coala#514
Sometimes certain style rules shall not be checked at all, we should allow to disable them (like
r_use_arrows
).CC @AsnelChristian
The text was updated successfully, but these errors were encountered: