-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspotless.gradle
More file actions
41 lines (37 loc) · 1.08 KB
/
spotless.gradle
File metadata and controls
41 lines (37 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target '**/*.kt'
ktlint().editorConfigOverride([
"ktlint_function_naming_ignore_when_annotated_with": "Composable,Preview",
"ij_kotlin_allow_trailing_comma" : "true",
"ij_kotlin_allow_trailing_comma_on_call_site" : "true"
])
trimTrailingWhitespace()
leadingTabsToSpaces()
endWithNewline()
}
kotlinGradle {
target '*.kts'
ktlint()
trimTrailingWhitespace()
leadingTabsToSpaces()
endWithNewline()
}
java {
target '**/*.java'
targetExclude 'build/**'
googleJavaFormat()
trimTrailingWhitespace()
leadingTabsToSpaces()
endWithNewline()
}
cpp {
target '**/*.cpp', '**/*.h', '**/*.hpp'
targetExclude 'external/**', '**/build/**', '**/.cxx/**', '**/third-party/**'
clangFormat('18.1.3').style('Google')
trimTrailingWhitespace()
leadingTabsToSpaces()
endWithNewline()
}
}