-
Notifications
You must be signed in to change notification settings - Fork 73
Multiline function arguments #254
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
Comments
Reference: #125. |
As far as the first example goes, I think the tidyverse does not currently encourage that in my opinion. It just says
So I suggest to first file an issue there and see whether we can extend the style guide in this regard. |
Oh, I see. |
@krlmlr I was just going to label issues we won't solve soonish with |
The label + closing feels like a good idea. Do you have a writeup that describes the labeling strategy? |
Ok, cool. No I don't have a write up, but we could add one. I actually checked out this but then I felt like it's not exactly what we need, so I just adapted it to what we have now. Maybe I can even briefly describe it in a contribution guide following the GitHub Contribution Guidelines? |
We could start with a link to the blog and a description of your changes. Only collaborators can add/change labels, not sure how useful it is to have this info in the contribution guidelines? |
Ok, if you like. I thought it may be useful for non-collaborators just to see what the labels mean and how they are used. |
That level of information feels useful, maybe a paragraph with a link to the full text? |
Ok, I will first create the text that describes what labels we have and how I adapted from the blog and then we can see how we proceed. Is not gonna fill books anyways 😄. |
Now that the discussed pull request tidyverse/style/pull/46 filed by @krlmlr got merged and thus the style guidelines for |
Thanks @martin-mfg for following up on that. As outlined by saamwerk, which guides the labelling for this repo, all issues that are postponed are closed. I elaborated a bit on the description for "Status: Postponed" in lorenzwalthert/saamwerk@6cbb797 just now to make the meaning clearer. Although the issue gains in relevance with the merge of tidyverse/style#46, I don't think I can resolve this soonish (or with styler 1.0.1, see #341) , so I prefer to leave it closed for now. If you want to contribute via a PR, I am happy to review. However, changes are that we can resolve quite a few postponed issues between June and August. |
Uh oh!
There was an error while loading. Please reload this page.
The opening brace should stay on its own line, we should also insert a line break if there is none.
The
test_that()
calls should be an exception: We allow this if the code argument is the last one and all other arguments start on the same line as the argumentIn this case, I think we should add a line break after the opening paren even for
strict = FALSE
, unless the code block is the only argument.Essentially the same as above. (And we never continue after a multi-line argument, the
class =
goes on its own line.)The text was updated successfully, but these errors were encountered: