-
Notifications
You must be signed in to change notification settings - Fork 2
Add analyzer release tracking #84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2feda70
369a1a2
c54b4ac
7ef267e
04c62fa
bd45e37
6b2d49f
403f5b0
3867ba1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
; Shipped analyzer releases | ||
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md | ||
|
||
## Release 0.0.1.22865 | ||
|
||
### New Rules | ||
|
||
Rule ID | Category | Severity | Notes | ||
--------|----------|----------|------- | ||
Moq1101 | Moq | Warning | CallbackSignatureAnalyzer | ||
Moq1002 | Moq | Warning | ShouldNotAllowParametersForMockedInterfaceAnalyzer | ||
Moq1001 | Moq | Warning | ShouldNotMockSealedClassesAnalyzer | ||
|
||
## Release 0.0.3.40797 | ||
|
||
### New Rules | ||
|
||
Rule ID | Category | Severity | Notes | ||
--------|----------|----------|------- | ||
Moq1003 | Moq | Warning | MatchingConstructorParametersAnalyzer | ||
|
||
## Release 0.0.4.43043 | ||
|
||
### New Rules | ||
|
||
Rule ID | Category | Severity | Notes | ||
--------|----------|----------|------- | ||
Moq1100 | Moq | Warning | CallbackSignatureShouldMatchMockedMethodAnalyzer | ||
Moq1000 | Moq | Warning | ConstructorArgumentsShouldMatchAnalyzer | ||
|
||
## Release 0.0.6 | ||
|
||
### Removed Rules | ||
|
||
Rule ID | Category | Severity | Notes | ||
--------|----------|----------|------- | ||
Moq1003 | Moq | Warning | ConstructorArgumentsShouldMatchAnalyzer | ||
|
||
## Release 0.0.7 | ||
|
||
### New Rules | ||
|
||
Rule ID | Category | Severity | Notes | ||
--------|----------|----------|------- | ||
Moq1200 | Moq | Error | SetupShouldBeUsedOnlyForOverridableMembersAnalyzer | ||
|
||
## Release 0.0.8 | ||
|
||
### New Rules | ||
|
||
Rule ID | Category | Severity | Notes | ||
--------|----------|----------|------- | ||
Moq1300 | Moq | Error | AsShouldBeUsedOnlyForInterfaceAnalyzer | ||
|
||
## Release 0.0.9 | ||
|
||
### New Rules | ||
|
||
Rule ID | Category | Severity | Notes | ||
--------|----------|----------|------- | ||
Moq1201 | Moq | Error | SetupShouldNotIncludeAsyncResultAnalyzer | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
; Unshipped analyzer release | ||
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,13 +5,14 @@ | |
[DiagnosticAnalyzer(LanguageNames.CSharp)] | ||
public class NoConstructorArgumentsForInterfaceMockAnalyzer : DiagnosticAnalyzer | ||
{ | ||
private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor( | ||
private static readonly DiagnosticDescriptor Rule = new( | ||
Diagnostics.NoConstructorArgumentsForInterfaceMockId, | ||
Diagnostics.NoConstructorArgumentsForInterfaceMockTitle, | ||
Diagnostics.NoConstructorArgumentsForInterfaceMockMessage, | ||
Check warning on line 11 in Source/Moq.Analyzers/NoConstructorArgumentsForInterfaceMockAnalyzer.cs
|
||
Diagnostics.Category, | ||
DiagnosticSeverity.Warning, | ||
isEnabledByDefault: true); | ||
isEnabledByDefault: true, | ||
helpLinkUri: $"https://github.com/rjmurillo/moq.analyzers/blob/main/docs/rules/{Diagnostics.NoConstructorArgumentsForInterfaceMockId}.md"); | ||
|
||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics | ||
{ | ||
|
@@ -29,7 +30,7 @@ | |
{ | ||
ObjectCreationExpressionSyntax? objectCreation = (ObjectCreationExpressionSyntax)context.Node; | ||
|
||
// TODO Think how to make this piece more elegant while fast | ||
Check warning on line 33 in Source/Moq.Analyzers/NoConstructorArgumentsForInterfaceMockAnalyzer.cs
|
||
GenericNameSyntax? genericName = objectCreation.Type as GenericNameSyntax; | ||
if (objectCreation.Type is QualifiedNameSyntax qualifiedName) | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,14 @@ | |
[DiagnosticAnalyzer(LanguageNames.CSharp)] | ||
public class NoSealedClassMocksAnalyzer : DiagnosticAnalyzer | ||
{ | ||
private static readonly DiagnosticDescriptor Rule = new DiagnosticDescriptor( | ||
private static readonly DiagnosticDescriptor Rule = new( | ||
Diagnostics.NoSealedClassMocksId, | ||
Diagnostics.NoSealedClassMocksTitle, | ||
Diagnostics.NoSealedClassMocksMessage, | ||
Check warning on line 9 in Source/Moq.Analyzers/NoSealedClassMocksAnalyzer.cs
|
||
Diagnostics.Category, | ||
DiagnosticSeverity.Warning, | ||
isEnabledByDefault: true); | ||
isEnabledByDefault: true, | ||
helpLinkUri: $"https://github.com/rjmurillo/moq.analyzers/blob/main/docs/rules/{Diagnostics.NoSealedClassMocksId}.md"); | ||
|
||
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics | ||
{ | ||
|
@@ -27,7 +28,7 @@ | |
{ | ||
ObjectCreationExpressionSyntax? objectCreation = (ObjectCreationExpressionSyntax)context.Node; | ||
|
||
// TODO Think how to make this piece more elegant while fast | ||
Check warning on line 31 in Source/Moq.Analyzers/NoSealedClassMocksAnalyzer.cs
|
||
GenericNameSyntax? genericName = objectCreation.Type as GenericNameSyntax; | ||
if (objectCreation.Type is QualifiedNameSyntax qualifiedName) | ||
{ | ||
|
Uh oh!
There was an error while loading. Please reload this page.