-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from sharwell/quirks
Rename AnalysisExclusions to TestBehaviors
- Loading branch information
Showing
5 changed files
with
49 additions
and
43 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
...rosoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/AnalysisExclusions.cs
This file was deleted.
Oops, something went wrong.
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
34 changes: 34 additions & 0 deletions
34
src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/TestBehaviors.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,34 @@ | ||
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.CodeAnalysis.Testing | ||
{ | ||
/// <summary> | ||
/// Specifies non-standard analyzer behaviors which impact testing. | ||
/// </summary> | ||
[Flags] | ||
public enum TestBehaviors | ||
{ | ||
/// <summary> | ||
/// No special behaviors apply. | ||
/// </summary> | ||
None = 0, | ||
|
||
/// <summary> | ||
/// Skip the generated code exclusion check. | ||
/// </summary> | ||
/// <remarks> | ||
/// <para>By default, the analyzer test framework verifies that analyzer which report diagnostics do not report | ||
/// diagnostics in generated code. While some analyzers, e.g. security analyzers, are expected to report | ||
/// diagnostics in all code, most analyzers are expected to only report diagnostics in user-created code.</para> | ||
/// </remarks> | ||
SkipGeneratedCodeCheck = 0x01, | ||
|
||
/// <summary> | ||
/// Skip a verification check that diagnostics will not be reported if a <c>#pragma warning disable</c> appears | ||
/// at the beginning of the file. | ||
/// </summary> | ||
SkipSuppressionCheck = 0x02, | ||
} | ||
} |
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