omise / omise-android

Omise Android SDK
https://docs.opn.ooo
Other
50 stars 32 forks source link

Add linter #297

Closed AnasNaouchi closed 11 months ago

AnasNaouchi commented 11 months ago

Description

Add linter to force formatting and standard style in the SDK code only Used linter: ktlint-gradle The lint job in CI is a step before the build command as we do not want to build when the code is not formatted properly

To test the linter locally : ./gradlew sdk:ktlintCheck for violation checks and report generation ./gradlew sdk:ktlinFormat for automatic formatting