-
Notifications
You must be signed in to change notification settings - Fork 171
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
Option to list files that will be modified #28
Comments
#25 added a But all that wouldn't help much in a CI environment because what you really want is a more clear signal to indicate whether at least one file is missing a license. You wouldn't want to inspect the output every time, especially in automated scripts and CIs. What you probably want is for |
OTOH it isn't clear what zero exit code would mean then. Is it "ok, all files already have a license; none were modified" or "ok, added license where missing; all files now have a license". Currently, there's no distinction and zero exit code simply means: ok, all files known to the program have a license now regardless of whether any of them were modified. |
Well, not really. The
Yes.
I agree. This issue is for a new flag
|
Yeah, that's precisely it. Would you mind sending a pull request? |
1 similar comment
Yeah, that's precisely it. Would you mind sending a pull request? |
The capability to list files that will be modified, but without modifying them, will be very useful.
This will also allow
addlicense
to be used in CI environments, git-hooks, etc., to ensure licensing compliance.The text was updated successfully, but these errors were encountered: