cloudposse-archives / copyright-header

© Copyright Header is a utility to manipulate software licenses on source code.
https://cloudposse.com/accelerate
GNU General Public License v3.0
181 stars 61 forks source link

Feature request: exclude by pattern #25

Open lilith opened 9 years ago

lilith commented 9 years ago

I am using C#, but there are many C# files that shouldn't have a license file, as it would mess with the IDE. I would like to exclude .designer.cs and AssemblyInfo.cs while including all other *.cs files. Is there a way to do this in the syntax file?

osterman commented 9 years ago

This is a good feature request.

Currently, excludes are hardcoded:

@exclude = [ /^LICENSE(|\.txt)$/i, /^holders(|\.txt)$/i, /^README/, /^\./]

I'll see about adding an 'exclude' directive to the configuration file.

thomasrussellmurphy commented 8 years ago

Having excludes by pattern that supports ignoring directory names would also be great.

julien-louis commented 5 years ago

How about an include pattern ?

pdehlke commented 2 years ago

Bump.

Any word on this?

dtrckd commented 2 years ago

+1 for this