-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
allow "spotlessFiles" project property in gradle plugin to only target specific files #322
Conversation
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Outdated
Show resolved
Hide resolved
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Outdated
Show resolved
Hide resolved
- update change log to reflect namespaced property - remove superfluous assert statement - compile Patterns once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! Looks great except for a very subtle bug that's pretty easy to fix.
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Outdated
Show resolved
Hide resolved
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Outdated
Show resolved
Hide resolved
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Outdated
Show resolved
Hide resolved
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Show resolved
Hide resolved
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Outdated
Show resolved
Hide resolved
plugin-gradle/src/main/java/com/diffplug/gradle/spotless/SpotlessTask.java
Outdated
Show resolved
Hide resolved
This LGTM. I'll cut a release tomorrow unless somebody has more comments or another PR they'd like to get merged in. |
Published as 3.17.0 |
Have you test the file pattern on window? On my windows machine the pattern matching used here always fails when using UNIX path seperator "/" as described in the README. |
Might be worth creating a fresh issue for this. |
FYI, |
Added a -files switch to allow targeting specific files.
This can be part of a solution to #178, the first part being a script that uses git commands to retrieve a list of staged files.