From 346fb93318b0714e0413fbf0dc9d4b176ec5b3a7 Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Sun, 27 Dec 2015 07:51:37 -0800 Subject: [PATCH] Stop ignoring StyleCop.json StyleCop.Analyzers is the modern re-invention of StyleCop, and uses a StyleCop.json file that the default .gitignore file made very difficult to check in, and easy to think was checked in but isn't. See https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/32057fff82adf7cfb92aa50aef69a6b030eedf31/documentation/Configuration.md#source-control for the documented case. Looking through history, this line was last touched to make it case insensitive, and before that the line was in the original VisualStudio.gitignore file, without justification for why it should ignore all file extensions. From my experience with stylecop, the only file I remember it creating was stylecop.cache. I would change `[Ss]tyle[Cc]op.*` to `[Ss]tyle[Cc]op.cache` but there is already a line for suppressing all *.cache files (which wasn't there when the stylecop line was originally added). So I believe this line is now obsolete, and as I explain above, actually problematic. --- VisualStudio.gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/VisualStudio.gitignore b/VisualStudio.gitignore index 249d20f9..314c9211 100644 --- a/VisualStudio.gitignore +++ b/VisualStudio.gitignore @@ -172,7 +172,6 @@ BundleArtifacts/ # Others ClientBin/ -[Ss]tyle[Cc]op.* ~$* *~ *.dbmdl