forked from DotNetAnalyzers/StyleCopAnalyzers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Permanently disable SA1644 (Documentation headers should not contain …
…blank lines) Closes DotNetAnalyzers#164
- Loading branch information
Showing
5 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...op.Analyzers/StyleCop.Analyzers.Test.CSharp7/DocumentationRules/SA1644CSharp7UnitTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. | ||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. | ||
|
||
namespace StyleCop.Analyzers.Test.CSharp7.DocumentationRules | ||
{ | ||
using StyleCop.Analyzers.Test.DocumentationRules; | ||
|
||
public class SA1644CSharp7UnitTests : SA1644UnitTests | ||
{ | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
StyleCop.Analyzers/StyleCop.Analyzers.Test/DocumentationRules/SA1644UnitTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) Tunnel Vision Laboratories, LLC. All Rights Reserved. | ||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. | ||
|
||
namespace StyleCop.Analyzers.Test.DocumentationRules | ||
{ | ||
using Microsoft.CodeAnalysis; | ||
using StyleCop.Analyzers.DocumentationRules; | ||
using Xunit; | ||
|
||
/// <summary> | ||
/// This class contains unit tests for <see cref="SA1644DocumentationHeadersMustNotContainBlankLines"/>. | ||
/// </summary> | ||
public class SA1644UnitTests | ||
{ | ||
[Fact] | ||
public void TestDisabledByDefaultAndNotConfigurable() | ||
{ | ||
var analyzer = new SA1644DocumentationHeadersMustNotContainBlankLines(); | ||
Assert.Single(analyzer.SupportedDiagnostics); | ||
Assert.False(analyzer.SupportedDiagnostics[0].IsEnabledByDefault); | ||
Assert.Contains(WellKnownDiagnosticTags.NotConfigurable, analyzer.SupportedDiagnostics[0].CustomTags); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters