From ebd17f79d891cc6d71b467f001826107cc1a3a38 Mon Sep 17 00:00:00 2001 From: Owais Kazi Date: Mon, 29 Jan 2024 14:07:53 -0800 Subject: [PATCH] Added spotless for json files Signed-off-by: Owais Kazi --- gradle/formatting.gradle | 2 +- .../resources/org/opensearch/action/bulk/simple-bulk11.json | 2 +- .../resources/org/opensearch/action/search/simple-msearch5.json | 2 +- .../org/opensearch/index/analysis/shingle_analysis.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle/formatting.gradle b/gradle/formatting.gradle index 93e1127c97a56..e773b8bb29cca 100644 --- a/gradle/formatting.gradle +++ b/gradle/formatting.gradle @@ -99,7 +99,7 @@ allprojects { } } format 'misc', { - target '*.md', '*.gradle', '**/*.yaml', '**/*.yml', '**/*.svg' + target '*.md', '*.gradle', '**/*.json', '**/*.yaml', '**/*.yml', '**/*.svg' 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 2242dd01c8145..e36d1b7fc00b8 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" } \ No newline at end of file +{ "field1" : "value3" } 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 ac3fb4b62d693..b5563e55657f9 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" : {}}} \ No newline at end of file +{"query" : {"match_all" : {}}} diff --git a/server/src/test/resources/org/opensearch/index/analysis/shingle_analysis.json b/server/src/test/resources/org/opensearch/index/analysis/shingle_analysis.json index 4a4fc7d2c81b1..1ed56fa6dab4d 100644 --- a/server/src/test/resources/org/opensearch/index/analysis/shingle_analysis.json +++ b/server/src/test/resources/org/opensearch/index/analysis/shingle_analysis.json @@ -20,4 +20,4 @@ } } } -} \ No newline at end of file +}