dotnet / codeformatter

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
MIT License
1.24k stars 244 forks source link

Turned copyright header off by default #221

Closed davkean closed 8 years ago

davkean commented 8 years ago

Fixes: #151.

Before my change there were two options, specifying /nocopyright, or specifying /copyright:foo.txt. If we switched the header off by default, there was no way to opt into the default, therefore, I added enable/disable options to the copyright switch similar to /rule:

To turn on default copyright, you do:

codeformatter test.proj /copyright
codeformatter test.proj /copyright+

To turn off default copyright, you do:

codeformatter test.proj
codeformatter test.proj /copyright-
codeformatter test.proj /nocopyright (for backwards compat - not doc'd)

And like before you can specify a file:

codeformatter test.proj /copyright:copyright.txt
davkean commented 8 years ago

tag @jaredpar @terrajobst

Make note I pulled in https://github.com/dotnet/codeformatter/pull/220, so first two commits will disappear.

davkean commented 8 years ago

ping

terrajobst commented 8 years ago

That makes sense. LGTM.

@Priya91