Skip to content

Commit

Permalink
Merge pull request #1681 from Adyen/renovate/ktlint_version
Browse files Browse the repository at this point in the history
Update dependency com.pinterest.ktlint:ktlint-cli to v1.3.1
  • Loading branch information
jreij authored Jul 18, 2024
2 parents b5076d5 + bb03415 commit 51afbd5
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ ktlint_standard_trailing-comma-on-call-site = disabled
ktlint_standard_trailing-comma-on-declaration-site = disabled
ktlint_standard_function-signature = disabled
ktlint_function_naming_ignore_when_annotated_with = Composable
ktlint_standard_function-expression-body = disabled
ktlint_standard_class-signature = disabled
max_line_length = 120
ij_kotlin_align_in_columns_case_branch = false
ij_kotlin_align_multiline_binary_operation = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ internal object KcpValidationUtils {
fun validateKcpBirthDateOrTaxNumber(birthDateOrTaxNumber: String): FieldState<String> {
val inputLength = birthDateOrTaxNumber.length
val validation = when {
inputLength == KCP_BIRTH_DATE_LENGTH && DateUtils.matchesFormat(
birthDateOrTaxNumber,
KCP_BIRTH_DATE_FORMAT
) -> Validation.Valid
inputLength == KCP_BIRTH_DATE_LENGTH &&
DateUtils.matchesFormat(birthDateOrTaxNumber, KCP_BIRTH_DATE_FORMAT)
-> Validation.Valid

inputLength == KCP_TAX_NUMBER_LENGTH -> Validation.Valid
else -> Validation.Invalid(R.string.checkout_kcp_birth_date_or_tax_number_invalid)
}
Expand Down
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ext {
// Code quality
detekt_version = "1.23.6"
jacoco_version = '0.8.12'
ktlint_version = '1.2.1'
ktlint_version = '1.3.1'
sonarqube_version = '5.0.0.4638'
binary_compatibility_validator_version = "0.14.0"

Expand Down
Loading

0 comments on commit 51afbd5

Please sign in to comment.