diff --git a/gradle/formatting.gradle b/gradle/formatting.gradle index e773b8bb29cca..f3a4bf5cc765b 100644 --- a/gradle/formatting.gradle +++ b/gradle/formatting.gradle @@ -101,6 +101,8 @@ allprojects { format 'misc', { target '*.md', '*.gradle', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.svg' + targetExclude '**/simple-bulk11.json', '**/simple-msearch5.json' + trimTrailingWhitespace() endWithNewline() } diff --git a/server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json b/server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json index e36d1b7fc00b8..2242dd01c8145 100644 --- a/server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json +++ b/server/src/test/resources/org/opensearch/action/bulk/simple-bulk11.json @@ -2,4 +2,4 @@ { "field1" : "value1" } { "delete" : { "_index" : "test", "_id" : "2" } } { "create" : { "_index" : "test", "_id" : "3" } } -{ "field1" : "value3" } +{ "field1" : "value3" } \ No newline at end of file diff --git a/server/src/test/resources/org/opensearch/action/search/simple-msearch5.json b/server/src/test/resources/org/opensearch/action/search/simple-msearch5.json index b5563e55657f9..ac3fb4b62d693 100644 --- a/server/src/test/resources/org/opensearch/action/search/simple-msearch5.json +++ b/server/src/test/resources/org/opensearch/action/search/simple-msearch5.json @@ -3,4 +3,4 @@ {"index" : "test2,test3", "preference": "_local"} {"query" : {"match_all" : {}}} {"index" : ["test4", "test1"], "routing": "123"} -{"query" : {"match_all" : {}}} +{"query" : {"match_all" : {}}} \ No newline at end of file