Skip to content

Conversation

@DarkDimius
Copy link
Contributor

We had huge amount of trailing whitespaces in ends of lines,
huge amount of files not ending in new line,
absence of spaces around + in many files,
and several dozens of tabs and missing spaces after ifs.

Dotty uses returns, nulls, and has methods with huge cyclomatic compexity
In Dotty we frequently want to make method look like it returns a constructor, when it's actually not.
Commonly used in dotty syntax isn't respected by scalastyle:
```
if (...) bar
else if (...) foo
else foo
```
We use structural types in return values,
sometimes we override equals without overriding hashcode
…e counterexample.

TreeUnpickler: 494, rewriting to reduce/fold isn't equivalent. !exists(false) isn't easier to read.
@DarkDimius
Copy link
Contributor Author

@odersky please review.
It's better to get this in ASAP in order to not have merge conflicts.

@odersky
Copy link
Contributor

odersky commented Apr 9, 2015

LGTM!

On Thu, Apr 9, 2015 at 6:20 PM, Dmitry Petrashko notifications@github.com
wrote:

@odersky https://github.com/odersky please review.
It's better to get this in ASAP in order to not have merge conflicts.


Reply to this email directly or view it on GitHub
#469 (comment).

Martin Odersky
EPFL

DarkDimius added a commit that referenced this pull request Apr 9, 2015
Add stylechecking to test suite, fix style errors
@DarkDimius DarkDimius merged commit 52d6ac3 into scala:master Apr 9, 2015
odersky added a commit to dotty-staging/dotty that referenced this pull request Apr 12, 2015
Add stylechecking to test suite, fix style errors
@allanrenucci allanrenucci deleted the stylecheck branch December 14, 2017 19:24
tgodzik added a commit to tgodzik/scala3 that referenced this pull request Jul 23, 2025
Backport "standardize on `-Vprint:...` (still support `-Xprint:...` as alias)" to 3.3 LTS
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