File tree Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Expand file tree Collapse file tree 4 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -91,3 +91,7 @@ ij_kotlin_while_on_new_line = false
91
91
ij_kotlin_wrap_elvis_expressions = 1
92
92
ij_kotlin_wrap_expression_body_functions = 1
93
93
ij_kotlin_wrap_first_method_in_call_chain = false
94
+ ktlint_standard_no-wildcard-imports = disabled
95
+ ktlint_standard_filename = disabled
96
+ ktlint_standard_package-name = disabled
97
+ ktlint_standard_annotation = disabled
Original file line number Diff line number Diff line change 27
27
- name : Checkout repository
28
28
uses : actions/checkout@v4
29
29
with :
30
+ fetch-depth : 0 # required due to setting Spotless ratchetFrom
30
31
submodules : recursive
31
32
32
33
- name : Set up JDK version
39
40
uses : gradle/actions/setup-gradle@v3
40
41
41
42
- name : Run Code Formatting Checks
42
- run : ./gradlew code_format_checks
43
+ run : ./gradlew spotlessCheck
43
44
44
45
unit_tests :
45
46
name : Unit tests
Original file line number Diff line number Diff line change 18
18
- name : Checkout repository
19
19
uses : actions/checkout@v4
20
20
with :
21
+ fetch-depth : 0 # required due to setting Spotless ratchetFrom
21
22
submodules : recursive
22
23
23
24
- name : Set up JDK version
30
31
uses : gradle/actions/setup-gradle@v3
31
32
32
33
- name : Run Code Formatting Checks
33
- run : ./gradlew code_format_checks
34
+ run : ./gradlew spotlessCheck
34
35
35
36
unit_tests :
36
37
name : Unit tests
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.diffplug.spotless'
2
2
3
3
spotless {
4
+ ratchetFrom ' origin/develop'
5
+ kotlin {
6
+ target ' src/*/kotlin/**/*.kt' , ' src/*/java/**/*.kt'
7
+ ktlint(" 1.7.1" )
8
+ trimTrailingWhitespace()
9
+ indentWithSpaces()
10
+ }
4
11
java {
5
12
target ' src/*/java/**/*.java'
6
13
googleJavaFormat(' 1.22.0' ). aosp()
You can’t perform that action at this time.
0 commit comments