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

[ETCM-522][ETCM-523] Apply scalafix scalafmt rules #1034

Merged
merged 5 commits into from
Jul 2, 2021

Conversation

dzajkowski
Copy link
Contributor

@dzajkowski dzajkowski commented Jul 1, 2021

First commit introduces the new scala fix and fmt rules.
Second commit makes the checks on all modules mandatory on CI.
Fourth commit applies the rules to the codebase.

@dzajkowski dzajkowski force-pushed the kaizen/apply-scalafix-scalafmt-rules branch from 119c260 to eb07b45 Compare July 1, 2021 12:40
@dzajkowski dzajkowski changed the title Kaizen/apply scalafix scalafmt rules [Kaizen] Apply scalafix scalafmt rules Jul 1, 2021
@dzajkowski dzajkowski force-pushed the kaizen/apply-scalafix-scalafmt-rules branch from eb07b45 to 79c622e Compare July 1, 2021 12:51
@dzajkowski dzajkowski changed the title [Kaizen] Apply scalafix scalafmt rules [ETCM-522][ETCM-523] Apply scalafix scalafmt rules Jul 1, 2021
@dzajkowski dzajkowski force-pushed the kaizen/apply-scalafix-scalafmt-rules branch from 79c622e to 202f240 Compare July 1, 2021 13:21
@dzajkowski dzajkowski force-pushed the kaizen/apply-scalafix-scalafmt-rules branch from 010474a to bf8fd97 Compare July 1, 2021 14:45
@@ -63,18 +65,17 @@ object ECDSASignature {
val pointSign = chainId match {
case Some(id) if v == negativePointSign => (id * 2 + newNegativePointSign).toByte
case Some(id) if v == positivePointSign => (id * 2 + newPositivePointSign).toByte
case None => v
case _ => throw new IllegalStateException(s"Unexpected pointSign. ChainId: ${chainId}, v: ${v}")
case None => v
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want that alignment? not sure it makes things prettier

@dzajkowski dzajkowski force-pushed the kaizen/apply-scalafix-scalafmt-rules branch from af977df to 232ccde Compare July 1, 2021 15:11
@dzajkowski dzajkowski force-pushed the kaizen/apply-scalafix-scalafmt-rules branch from 232ccde to 52c71e4 Compare July 1, 2021 16:59
@dzajkowski dzajkowski merged commit 4860368 into develop Jul 2, 2021
@dzajkowski dzajkowski deleted the kaizen/apply-scalafix-scalafmt-rules branch July 2, 2021 17:57
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