cloudposse-archives / copyright-header

© Copyright Header is a utility to manipulate software licenses on source code.

Home Page:https://cloudposse.com/accelerate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: exclude by pattern

lilith opened this issue · comments

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?

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.

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

commented

How about an include pattern ?

Bump.

Any word on this?

+1 for this