fix: ignored target directory for spotless JSON formatting (#35407)

## Description
This PR ignores the JSON files present in the `target` directory as it
stores the temporary files that are generated during the build.
Fixes #35408

## Automation

/ok-to-test tags="@tag.Sanity"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!IMPORTANT]
> 🟣 🟣 🟣 Your tests are running.
> Tests running at:
<https://github.com/appsmithorg/appsmith/actions/runs/10245947583>
> Commit: 405ab049b5079bfb0f82ec51805bc298f5df7b21
> Workflow: `PR Automation test suite`
> Tags: `@tag.Sanity`
> Spec: ``
> <hr>Mon, 05 Aug 2024 09:09:08 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **New Features**
- Introduced enhanced control over JSON file processing by excluding
JSON files located in the target directory from the build process.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Nilansh Bansal 2024-08-05 14:46:03 +05:30 committed by GitHub
parent 6d47068db7
commit c888543be2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -159,6 +159,9 @@
<formatAnnotations/>
</java>
<json>
<excludes>
<exclude>**/target/**/*.json</exclude>
</excludes>
<includes>
<include>**/*.json</include>
</includes>