Skip to content

Add -PspotlessShowAllFailures to list every failing file - #3214

Open
dualfroz wants to merge 2 commits into
diffplug:mainfrom
dualfroz:fix/2418-show-all-failures
Open

dualfroz wants to merge 2 commits into
diffplug:mainfrom
dualfroz:fix/2418-show-all-failures

Conversation

@dualfroz

Copy link
Copy Markdown
Contributor

spotlessCheck only printed "Violations also present in N other files." once 10 or more were left after the diff. running it with -PspotlessShowAllFailures (or setting it in gradle.properties) now lists every file by name, default output is unchanged. went with a boolean property instead of a max like discussed, i think a task option wouldnt work on the aggregate spotlessCheck task. closes #2418

Changelog entries under [Unreleased] in CHANGES.md and plugin-gradle/CHANGES.md:

  • a summary of the change
  • either
    • a link to the issue you are resolving (for small changes)
    • a link to the PR you just created (for big changes likely to have discussion)

spotlessCheck stops naming files once ten or more are left after the
diff and only prints a count. The new property makes it list all of
them by name, the default output stays the same. The switch lives on
DiffMessageFormatter.Builder so plugin-maven can reuse it later.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ability to list all failing files with spotlessCheck

1 participant