2
Vote

Ignore SP2001 Within Multi-Line Comments

description

It would be convenient if SP2001 would ignore, or could be configured to ignore, indentation within a multi-line comment. I personally like to line up each comment line with the * character and I like to use tabs so the rule always flags my multi-line comments.

comments

Mailaender wrote Jan 31, 2015 at 11:35 AM

Yes, it raises a lot of false positives and conflicts with multi-line comments like those enforced in file headers:
#region Copyright & License Information
/*
 * Copyright 2007-2015 The developers team (see AUTHORS)
 * This file is part of project, which is free software. It is made
 * available to you under the terms of the GNU General Public License
 * as published by the Free Software Foundation. For more information,
 * see COPYING.
 */
#endregion
It wants every of those lines indented with tab characters which gives many false positives.

Mailaender wrote Jan 31, 2015 at 11:50 AM

I filed https://github.com/shuruev/StyleCopPlus/pull/5 but can't add tests as those projects don't compile with MonoDevelop.