Skip to content
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

Add --check-headers command #45

Closed
mheinzel opened this issue Apr 26, 2020 · 3 comments
Closed

Add --check-headers command #45

mheinzel opened this issue Apr 26, 2020 · 3 comments
Assignees
Labels
feature New feature or request
Milestone

Comments

@mheinzel
Copy link

It would work similarly to --replace-headers, but if any of the file's contents changed (#44), Headroom would fail with an error message listing all files that changed.

This would be useful to run in CI to make sure the correct license headers are added to all files.

@vaclavsvejcar
Copy link
Owner

Sounds good, guess this one will be pretty straightforward to implement and can be part of the upcoming version 0.2.2.0.

@vaclavsvejcar vaclavsvejcar added the feature New feature or request label Apr 30, 2020
@vaclavsvejcar vaclavsvejcar added this to the 0.2.2.0 milestone Apr 30, 2020
@vaclavsvejcar
Copy link
Owner

vaclavsvejcar commented May 2, 2020

@mheinzel This feature is now implemented in master and can be run using the headroom run -c or headroom run --check-headers command. It doesn't touch any source files but ends execution with return code 1 in case that any source file contains outdated license header. I'll release it to Hackage with upcoming version, after I'll do some more testing.

@vaclavsvejcar
Copy link
Owner

@mheinzel Final version 0.2.2.0 has been released to hackage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants