copywrite icon indicating copy to clipboard operation
copywrite copied to clipboard

Support overriding `ensureCorrectName` (e.g. support `LICENSE.md` instead of `LICENSE`)

Open titanism opened this issue 2 years ago • 2 comments

Can we please have a feature that lets us turn off this error if the file extension is present, e.g. .md?

https://github.com/hashicorp/copywrite/blob/807a790c13dfe5f09df5e7a3438dc09eb08487c0/licensecheck/licensecheck.go#L21

titanism avatar Oct 27 '23 18:10 titanism

Hey @titanism - I can understand the use case here. How would you like to see it implemented? Would you prefer something in the .copywrite.hcl config, or strictly a CLI flag?

Do you see it as a toggle, or do think there would be preference for being able to specify what the license file path/name should be? Just thinking through the ergonomics there.

CalebAlbers avatar Oct 31 '23 21:10 CalebAlbers

I think having both CLI and config would be great, the CLI flag overriding config of course if present.

titanism avatar Oct 31 '23 21:10 titanism