licensure icon indicating copy to clipboard operation
licensure copied to clipboard

`check` mode for CI pipeline integration

Open MathisWellmann opened this issue 2 years ago • 2 comments

It would be cool to add a --check flag that would essentially operate like normal but instead of writing to the file (or outputting the code) it would only output whether the desired license header is included. This could be super useful in a CI pipeline that could enforce that every newly added file complies with the configured .licensure.yml file. What do you think? I'd be willing to put in the effort if this idea resonates with you.

P.S.: Awesome tool generally. I stumbled across it while looking for a tool that would automate this tedious work and within 30m all was setup and configured for my project. Will definitely keep using it in all my repos

MathisWellmann avatar Sep 13 '23 11:09 MathisWellmann

I think this is a great idea!

chasinglogic avatar Sep 16 '23 09:09 chasinglogic

Would welcome a PR for sure. I'm about to go on holiday for two weeks but will look at this when I'm back.

chasinglogic avatar Sep 16 '23 09:09 chasinglogic

This has been implemented since 2021 I just forgot about it. But @aminya implemented this.

chasinglogic avatar May 24 '24 14:05 chasinglogic