Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions StyleCopPlus.Tests/Complex/Source/Environmental.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,17 @@ public void TestMethod()
}
//# [END]

//# [OK]
//# Don't count aligned * as indention errors.
namespace StyleCopPlus.Tests
{
/*
* multi-line
* comment
*/
}
//# [END]

#endregion

#region CheckWhetherLastCodeLineIsEmpty // Suppressing
Expand Down
7 changes: 6 additions & 1 deletion StyleCopPlus/Plugin/MoreCustom/MoreCustomRules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,12 @@ private void CheckIndentation(
int currentLineNumber,
CustomRulesSettings settings)
{
if (currentLine.Trim().Length == 0)
string trimmed = currentLine.Trim();

if (trimmed.Length == 0)
return;

if (trimmed.StartsWith("*"))
return;

string currentIndent = ExtractIndentation(currentLine);
Expand Down