mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[build] Add Spotless for JSON (#4956)
This commit is contained in:
@@ -41,6 +41,14 @@ if (!project.hasProperty('skipJavaFormat')) {
|
||||
trimTrailingWhitespace()
|
||||
endWithNewline()
|
||||
}
|
||||
json {
|
||||
target fileTree('.') {
|
||||
include '**/*.json'
|
||||
exclude '**/build/**', '**/build-*/**'
|
||||
}
|
||||
gson()
|
||||
.indentWithSpaces(2)
|
||||
}
|
||||
format 'xml', {
|
||||
target fileTree('.') {
|
||||
include '**/*.xml'
|
||||
|
||||
Reference in New Issue
Block a user