Skip to content

Refactored code.| #1264#1265

Merged
DenBond7 merged 6 commits intomasterfrom
issue_1264_code_formatting
May 31, 2021
Merged

Refactored code.| #1264#1265
DenBond7 merged 6 commits intomasterfrom
issue_1264_code_formatting

Conversation

@DenBond7
Copy link
Collaborator

This PR fixed applying code style. To prevent add just code style changes to commit.

close #1264


Tests (delete all except exactly one):

  • Does not need tests (refactor only, docs or internal changes)

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities

@DenBond7 DenBond7 requested a review from tomholub May 28, 2021 08:10
@tomholub tomholub removed their request for review May 28, 2021 08:23
@DenBond7
Copy link
Collaborator Author

There are no logic changes. Just code style that Android Studio uses by default. This PR will prevent adding code style changes to the upcoming commit and make future PRs shorter(that PRs will include only real changes).

Copy link
Contributor

@IvanPizhenko IvanPizhenko left a comment

Choose a reason for hiding this comment

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

some questionable formatting and missing EOLs at EOFs

withToolBarText("INBOX"),
withToolBarText(
InstrumentationRegistry.getInstrumentation().targetContext.getString(
R
Copy link
Contributor

Choose a reason for hiding this comment

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

This break of "R." looks strange

hasAction(Intent.ACTION_CHOOSER), hasExtra(
`is`(Intent.EXTRA_INTENT), allOf(
hasAction(
Intent
Copy link
Contributor

Choose a reason for hiding this comment

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

Same as "R." in another file - why this is broken down?

)
}
}
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing EOL at EOF

requestCode: Long = 0L,
context: Context,
url: String
): Result<JsonObject>
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing EOL at EOF

getResult {
apiService.getOpenIdConfiguration(url)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

missing EOL at EOF

.substring(messageId.indexOf('@') + 1)
.replace(">", "")
.substring(messageId.indexOf('@') + 1)
.replace(">", "")
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

missing EOL at EOF

val ctor1Parameters =
if (ctor1IsDefaultConstructorMarkerFound) 0 else ctor1.genericParameterTypes.size
val ctor2Parameters =
if (ctor2IsDefaultConstructorMarkerFound) 0 else ctor2.genericParameterTypes.size
return ctor1Parameters.compareTo(ctor2Parameters)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

missing EOL at EOF

}

override fun customise(fixture: JFixture) {
val greedyConstructorRelay: SpecimenBuilder = ClassToConstructorRelay(mostParameterCountConstructorQuery, SpecificTypeSpecification(type))
val greedyConstructorRelay: SpecimenBuilder =
ClassToConstructorRelay(mostParameterCountConstructorQuery, SpecificTypeSpecification(type))
fixture.addBuilderToStartOfPipeline(greedyConstructorRelay)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

missing EOL at EOF

recipientPGPSecretKeyRing = PGPainless.generateKeyRing()
.simpleEcKeyRing("juliet@encrypted.key", RECEIVER_PASSWORD)
.simpleEcKeyRing("juliet@encrypted.key", RECEIVER_PASSWORD)
}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

missing EOL at EOF

.check(doesNotExist())
.check(doesNotExist())
}
} No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

missing EOL at EOF

@tomholub
Copy link
Collaborator

tomholub commented May 29, 2021 via email

@IvanPizhenko
Copy link
Contributor

IvanPizhenko commented May 29, 2021

most of that should be doable by proper tuning of the formatting settings and then enabling "format on save"

@DenBond7 DenBond7 merged commit e336f06 into master May 31, 2021
@DenBond7 DenBond7 deleted the issue_1264_code_formatting branch May 31, 2021 09:24
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.

Code formatting

3 participants

Comments