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

Feature request: exclude by pattern #25

Open
lilith opened this issue Feb 19, 2015 · 5 comments
Open

Feature request: exclude by pattern #25

lilith opened this issue Feb 19, 2015 · 5 comments

Comments

@lilith
Copy link

lilith commented Feb 19, 2015

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
Copy link
Collaborator

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
Copy link
Contributor

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

@julien-louis
Copy link

How about an include pattern ?

@pdehlke
Copy link

pdehlke commented Sep 13, 2022

Bump.

Any word on this?

@dtrckd
Copy link

dtrckd commented Nov 5, 2022

+1 for this

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

No branches or pull requests

6 participants