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

Comments

Projects
None yet
1 participant
@codecadwallader
Owner

codecadwallader commented Apr 2, 2016

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 codecadwallader added this to the v10.1 milestone Apr 17, 2016

@codecadwallader codecadwallader self-assigned this Apr 17, 2016

codecadwallader added a commit that referenced this issue Apr 17, 2016

@codecadwallader

This comment has been minimized.

Owner

codecadwallader commented Apr 17, 2016

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