-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* StyleCop analyzer added, incl. StyleCop.json * rulesets added, link to StyleCop.json fixed (see https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/EnableConfiguration.md) * stylecop fixes * SonarAnalyzer removed; SA1600 deactivated * stylecop fixes * stylecop fixes * stylecop fixes * TypeInitializerException fixed that was caused by accessing a private field that gets defined in code below
- Loading branch information
Showing
223 changed files
with
2,492 additions
and
808 deletions.
There are no files selected for viewing
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
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,33 @@ | ||
using System; | ||
|
||
namespace TestHelper | ||
{ | ||
/// <summary> | ||
/// Location where the diagnostic appears, as determined by path, line number, and column number. | ||
/// </summary> | ||
public struct DiagnosticResultLocation | ||
{ | ||
public DiagnosticResultLocation(string path, int line, int column) | ||
{ | ||
if (line < -1) | ||
{ | ||
throw new ArgumentOutOfRangeException(nameof(line), line, "line must be >= -1"); | ||
} | ||
|
||
if (column < -1) | ||
{ | ||
throw new ArgumentOutOfRangeException(nameof(column), column, "column must be >= -1"); | ||
} | ||
|
||
Path = path; | ||
Line = line; | ||
Column = column; | ||
} | ||
|
||
public string Path { get; } | ||
|
||
public int Line { get; } | ||
|
||
public int Column { get; } | ||
} | ||
} |
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
Oops, something went wrong.