Branch: refs/heads/master
Home: https://github.com/jenkinsci/pom
Commit: 61e475bfbd8187b801be0f29de3680f6eaaa04ea
https://github.com/jenkinsci/pom/commit/61e475bfbd8187b801be0f29de3680f6eaaa04ea
Author: Vincent Latombe <[email protected]>
Date: 2024-09-24 (Tue, 24 Sep 2024)
Changed paths:
M pom.xml
Log Message:
-----------
Add 'may-spotless-apply' profile (#611)
I often find myself forgetting to apply spotless before committing.
On some repositories, I have set up a pre-commit git hook running `mvn
spotless:check`. However, this has to be set up on each repository that
has spotless check enabled, and disabled on those which don't.
I think this goes one step further, by defining a conventional maven
profile `may-spotless-apply` that will run `spotless:apply` *only* if
spotless is enabled for the given repository.
This allows any user to incorporate `-Pmay-spotless-apply` as part of
their usual build command (or defined in their maven settings active profiles
section),
and have `spotless:apply` automatically called if the project has it enabled.
To unsubscribe from these emails, change your notification settings at
https://github.com/jenkinsci/pom/settings/notifications
--
You received this message because you are subscribed to the Google Groups
"Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/pom/push/refs/heads/master/995e90-61e475%40github.com.