-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from Adyen/feature/add_ktlint
Feature/add ktlint
- Loading branch information
Showing
14 changed files
with
794 additions
and
139 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
configurations { | ||
ktlint | ||
} | ||
|
||
dependencies { | ||
ktlint "com.pinterest:ktlint:0.50.0" | ||
} | ||
|
||
tasks.register('ktlintCheck', JavaExec) { | ||
description = "Check Kotlin code style." | ||
group = "verification" | ||
|
||
classpath = configurations.ktlint | ||
main = "com.pinterest.ktlint.Main" | ||
args "src/**/main/**/*.kt", "--reporter=plain", "--reporter=checkstyle,output=${project.buildDir}/reports/klint/klint-results.xml" | ||
} | ||
|
||
check.dependsOn ktlintCheck | ||
|
||
tasks.register('ktlintFormat', JavaExec) { | ||
description = "Fix Kotlin code style deviations." | ||
group = "formatting" | ||
|
||
classpath = configurations.ktlint | ||
main = "com.pinterest.ktlint.Main" | ||
args "-F", "src/main/**/*.kt" | ||
jvmArgs("--add-opens", "java.base/java.lang=ALL-UNNAMED") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
android/src/main/kotlin/com/adyen/adyen_checkout/PlatformApi.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.