1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-06 15:36:45 +00:00

ktLint check in library

This commit is contained in:
Hannes Achleitner 2021-04-14 10:29:12 +02:00
parent 7dc81fb74c
commit 257f616b0f
2 changed files with 11 additions and 0 deletions

5
.editorconfig Normal file
View File

@ -0,0 +1,5 @@
[*]
max_line_length = 150
[*.{kt, kts}]
disabled_rules=no-consecutive-blank-lines,no-wildcard-imports,import-ordering,max-line-length,import-ordering,no-blank-line-before-rbrace,final-newline,indent,no-multi-spaces,comment-spacing,parameter-list-wrapping

View File

@ -7,8 +7,10 @@ buildscript {
repositories {
google()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "org.jlleitschuh.gradle:ktlint-gradle:10.0.0"
classpath 'com.android.tools.build:gradle:4.1.3'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
@ -21,3 +23,7 @@ allprojects {
maven { url 'https://jitpack.io' }
}
}
subprojects {
apply plugin: "org.jlleitschuh.gradle.ktlint"
}