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

Cleaning: Add exclusion rule for other auto-generated files #248

Closed
codecadwallader opened this issue Apr 2, 2016 · 1 comment
Closed

Comments

@codecadwallader
Copy link
Owner

Migrated from https://trello.com/c/WTkal55t with 10 votes

Currently CodeMaid excludes 2 types of files from being processed:

  • T4 generated files
  • Files where the name matches a regex pattern

For other auto generated files, it would be useful if there is an option to exclude files which contain the auto-generated header. An example is when creating a webreference or servicereference to an asmx or wcf webservice a file reference.cs is created.

The header has the following syntax:

//--------------------------------------------------------------------
// <auto-generated>
// Description
// </auto-generated>
//--------------------------------------------------------------------

WSDL reference files are another great example. These files can be huge, example at codecadwallader/codemaid: Issue #135

@codecadwallader
Copy link
Owner Author

We'll now check and disable cleanup whenever the phrase <auto-generated is detected in a document.

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

No branches or pull requests

1 participant