Detekt: fix FunctionParameterNaming

This commit is contained in:
Benoit Marty 2022-05-12 17:56:05 +02:00
parent c303b9afd3
commit 6f3b9c78b0
3 changed files with 6 additions and 9 deletions

View file

@ -61,9 +61,6 @@ complexity:
active: false
naming:
FunctionParameterNaming:
# TODO Enable it
active: false
VariableNaming:
# TODO Enable it
active: false

View file

@ -309,9 +309,9 @@ class Login2Variant(
activity.finish()
}
private fun updateWithState(LoginViewState2: LoginViewState2) {
private fun updateWithState(loginViewState2: LoginViewState2) {
// Loading
setIsLoading(LoginViewState2.isLoading)
setIsLoading(loginViewState2.isLoading)
}
// Hack for AccountCreatedFragment

View file

@ -288,8 +288,8 @@ class FtueAuthVariant(
.show()
}
private fun onServerSelectionDone(OnboardingViewEvents: OnboardingViewEvents.OnServerSelectionDone) {
when (OnboardingViewEvents.serverType) {
private fun onServerSelectionDone(onboardingViewEvents: OnboardingViewEvents.OnServerSelectionDone) {
when (onboardingViewEvents.serverType) {
ServerType.MatrixOrg -> Unit // In this case, we wait for the login flow
ServerType.EMS,
ServerType.Other -> activity.addFragmentToBackstack(
@ -301,9 +301,9 @@ class FtueAuthVariant(
}
}
private fun onSignModeSelected(OnboardingViewEvents: OnboardingViewEvents.OnSignModeSelected) = withState(onboardingViewModel) { state ->
private fun onSignModeSelected(onboardingViewEvents: OnboardingViewEvents.OnSignModeSelected) = withState(onboardingViewModel) { state ->
// state.signMode could not be ready yet. So use value from the ViewEvent
when (OnboardingViewEvents.signMode) {
when (onboardingViewEvents.signMode) {
SignMode.Unknown -> error("Sign mode has to be set before calling this method")
SignMode.SignUp -> Unit // This case is processed in handleOnboardingViewEvents
SignMode.SignIn -> handleSignInSelected(state)