|
1 |
| - |
2 |
| -apply plugin: 'com.diffplug.spotless' |
3 |
| - |
4 |
| -spotless { |
5 |
| - enforceCheck = false |
6 |
| - java { |
7 |
| - target fileTree('.') { |
8 |
| - include '**/*.java' |
9 |
| - exclude '**/build/**', '**/build-*/**', '**/bin/**' |
10 |
| - } |
11 |
| - toggleOffOn() |
12 |
| - googleJavaFormat() |
13 |
| - removeUnusedImports() |
14 |
| - trimTrailingWhitespace() |
15 |
| - endWithNewline() |
16 |
| - } |
17 |
| - groovyGradle { |
18 |
| - target fileTree('.') { |
19 |
| - include '**/*.gradle' |
20 |
| - exclude '**/build/**', '**/build-*/**', '**/bin/**' |
21 |
| - } |
22 |
| - greclipse() |
23 |
| - indentWithSpaces(4) |
24 |
| - trimTrailingWhitespace() |
25 |
| - endWithNewline() |
26 |
| - } |
27 |
| - json { |
28 |
| - target fileTree('.') { |
29 |
| - include '**/*.json' |
30 |
| - exclude '**/build/**', '**/build-*/**', '**/bin/**', '**/.vscode/**' |
31 |
| - exclude '**/simgui-ds.json', '**/simgui-window.json', '**/simgui.json', '**/networktables.json' |
32 |
| - } |
33 |
| - gson() |
34 |
| - .indentWithSpaces(2) |
35 |
| - } |
36 |
| - format 'xml', { |
37 |
| - target fileTree('.') { |
38 |
| - include '**/*.xml' |
39 |
| - exclude '**/build/**', '**/build-*/**', '**/bin/**' |
40 |
| - } |
41 |
| - eclipseWtp('xml') |
42 |
| - trimTrailingWhitespace() |
43 |
| - indentWithSpaces(2) |
44 |
| - endWithNewline() |
45 |
| - } |
46 |
| - format 'misc', { |
47 |
| - target fileTree('.') { |
48 |
| - include '**/*.md', '**/.gitignore' |
49 |
| - exclude '**/build/**', '**/build-*/**', '**/bin/**' |
50 |
| - } |
51 |
| - trimTrailingWhitespace() |
52 |
| - indentWithSpaces(2) |
53 |
| - endWithNewline() |
54 |
| - } |
55 |
| -} |
| 1 | + |
| 2 | +apply plugin: 'com.diffplug.spotless' |
| 3 | + |
| 4 | +spotless { |
| 5 | + enforceCheck = false |
| 6 | + java { |
| 7 | + target fileTree('.') { |
| 8 | + include '**/*.java' |
| 9 | + exclude '**/build/**', '**/build-*/**', '**/bin/**' |
| 10 | + } |
| 11 | + toggleOffOn() |
| 12 | + googleJavaFormat() |
| 13 | + removeUnusedImports() |
| 14 | + trimTrailingWhitespace() |
| 15 | + endWithNewline() |
| 16 | + } |
| 17 | + groovyGradle { |
| 18 | + target fileTree('.') { |
| 19 | + include '**/*.gradle' |
| 20 | + exclude '**/build/**', '**/build-*/**', '**/bin/**' |
| 21 | + } |
| 22 | + greclipse() |
| 23 | + indentWithSpaces(4) |
| 24 | + trimTrailingWhitespace() |
| 25 | + endWithNewline() |
| 26 | + } |
| 27 | + json { |
| 28 | + target fileTree('.') { |
| 29 | + include '**/*.json' |
| 30 | + exclude '**/build/**', '**/build-*/**', '**/bin/**', '**/.vscode/**' |
| 31 | + exclude '**/simgui-ds.json', '**/simgui-window.json', '**/simgui.json', '**/networktables.json' |
| 32 | + } |
| 33 | + gson() |
| 34 | + .indentWithSpaces(2) |
| 35 | + } |
| 36 | + format 'xml', { |
| 37 | + target fileTree('.') { |
| 38 | + include '**/*.xml' |
| 39 | + exclude '**/build/**', '**/build-*/**', '**/bin/**' |
| 40 | + } |
| 41 | + eclipseWtp('xml') |
| 42 | + trimTrailingWhitespace() |
| 43 | + indentWithSpaces(2) |
| 44 | + endWithNewline() |
| 45 | + } |
| 46 | + format 'misc', { |
| 47 | + target fileTree('.') { |
| 48 | + include '**/*.md', '**/.gitignore' |
| 49 | + exclude '**/build/**', '**/build-*/**', '**/bin/**' |
| 50 | + } |
| 51 | + trimTrailingWhitespace() |
| 52 | + indentWithSpaces(2) |
| 53 | + endWithNewline() |
| 54 | + } |
| 55 | +} |
0 commit comments