-
Notifications
You must be signed in to change notification settings - Fork 21
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
Codify style rules #439
Comments
For those that might be interested (likely no one else) Some properties of use that seem to come up may be: |
Good finds @arahuja. I noticed this possible scalastyle integration in IntelliJ as well: which I've seen in some other projects, I think, and could be worth investigating. |
Per discussion on #475, I prefer avoiding wildcard imports, the most common exception being when importing IntelliJ makes this easy to automate by setting a high number here: |
This just came up on #569: Here are four* alternatives for doing one thing (
|
The
I don't think this is true - an |
Do you have an example? The
I feel pretty confident in saying this is not what we should do/recommend.
Using Furthermore,
Can you elaborate? I'm not sure what you mean by "a changeable If I filled in
If you mean it's like
Of course, The logic in #569 (do one thing if the option is full, another if it's empty) has no analog on a collection-monad, so there's no reason to prefer using the Option's [collection-of-size-1]-style APIs over its [full-xor-empty] APIs; just the opposite, in fact.
Sure… that doesn't mean that
No one is saying More pertinently, OCaml's So hopefully it's clear that Between
|
I recently removed Scalariform due to conflicts between it, my personal preferences, and (most importantly) IntelliJ that I wasn't able to resolve.
In #435, #436, and #437, some questions have been raised about what styles we should enforce, disallow, allow existing violations of, and even allow new deviations from.
I'm personally fine with a maximally hands-off posture where:
In all cases, the ability of IntelliJ to format code according to a style automatically is a strong argument in favor of a given style.
To seed discussion, here's the ScalaDoc tab of my IntelliJ Code Style > Scala preferences:
Let me know if you have something different and feel we should standardize on that.
The text was updated successfully, but these errors were encountered: