Skip to content

Commit 13ee471

Browse files
committed
Close #315
1 parent db70477 commit 13ee471

File tree

32 files changed

+59
-32
lines changed

32 files changed

+59
-32
lines changed

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Async/AsyncMethodWithoutAsyncSuffix/AsyncMethodWithoutAsyncSuffixCodeFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace VSDiagnostics.Diagnostics.Async.AsyncMethodWithoutAsyncSuffix
1313
{
14-
[ExportCodeFixProvider(nameof(AsyncMethodWithoutAsyncSuffixCodeFix), LanguageNames.CSharp), Shared]
14+
[ExportCodeFixProvider(DiagnosticId.AsyncMethodWithoutAsyncSuffix + "CF", LanguageNames.CSharp), Shared]
1515
public class AsyncMethodWithoutAsyncSuffixCodeFix : CodeFixProvider
1616
{
1717
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Async/SyncMethodWithAsyncSuffix/SyncMethodWithAsyncSuffixCodeFix.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
namespace VSDiagnostics.Diagnostics.Async.SyncMethodWithSyncSuffix
1313
{
14-
[ExportCodeFixProvider(nameof(SyncMethodWithAsyncSuffixCodeFix), LanguageNames.CSharp), Shared]
14+
[ExportCodeFixProvider(DiagnosticId.SyncMethodWithAsyncSuffix + "CF", LanguageNames.CSharp), Shared]
1515
public class SyncMethodWithAsyncSuffixCodeFix : CodeFixProvider
1616
{
1717
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Attributes/AttributeWithEmptyArgumentList/AttributeWithEmptyArgumentListCodeFix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
using Microsoft.CodeAnalysis.CodeActions;
77
using Microsoft.CodeAnalysis.CodeFixes;
88
using Microsoft.CodeAnalysis.CSharp.Syntax;
9+
using VSDiagnostics.Utilities;
910

1011
namespace VSDiagnostics.Diagnostics.Attributes.AttributeWithEmptyArgumentList
1112
{
12-
[ExportCodeFixProvider(nameof(AttributeWithEmptyArgumentListCodeFix), LanguageNames.CSharp), Shared]
13+
[ExportCodeFixProvider(DiagnosticId.AttributeWithEmptyArgumentList + "CF", LanguageNames.CSharp), Shared]
1314
public class AttributeWithEmptyArgumentListCodeFix : CodeFixProvider
1415
{
1516
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Attributes/EnumCanHaveFlagsAttribute/EnumCanHaveFlagsAttributeCodeFix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
using Microsoft.CodeAnalysis.CSharp;
99
using Microsoft.CodeAnalysis.CSharp.Syntax;
1010
using Microsoft.CodeAnalysis.Editing;
11+
using VSDiagnostics.Utilities;
1112

1213
namespace VSDiagnostics.Diagnostics.Attributes.EnumCanHaveFlagsAttribute
1314
{
14-
[ExportCodeFixProvider(nameof(EnumCanHaveFlagsAttributeCodeFix), LanguageNames.CSharp),
15+
[ExportCodeFixProvider(DiagnosticId.EnumCanHaveFlagsAttribute, LanguageNames.CSharp),
1516
Shared]
1617
public class EnumCanHaveFlagsAttributeCodeFix : CodeFixProvider
1718
{

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Attributes/FlagsEnumValuesAreNotPowersOfTwo/FlagsEnumValuesAreNotPowersOfTwoCodeFix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
using Microsoft.CodeAnalysis.CSharp;
1010
using Microsoft.CodeAnalysis.CSharp.Syntax;
1111
using Microsoft.CodeAnalysis.Formatting;
12+
using VSDiagnostics.Utilities;
1213

1314
namespace VSDiagnostics.Diagnostics.Attributes.FlagsEnumValuesAreNotPowersOfTwo
1415
{
15-
[ExportCodeFixProvider(nameof(FlagsEnumValuesAreNotPowersOfTwoCodeFix), LanguageNames.CSharp), Shared]
16+
[ExportCodeFixProvider(DiagnosticId.FlagsEnumValuesAreNotPowersOfTwo + "CF", LanguageNames.CSharp), Shared]
1617
public class FlagsEnumValuesAreNotPowersOfTwoCodeFix : CodeFixProvider
1718
{
1819
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Attributes/OnPropertyChangedWithoutCallerMemberName/OnPropertyChangedWithoutCallerMemberNameCodeFix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
using Microsoft.CodeAnalysis.CSharp.Syntax;
1010
using Microsoft.CodeAnalysis.Editing;
1111
using Microsoft.CodeAnalysis.Formatting;
12+
using VSDiagnostics.Utilities;
1213

1314
namespace VSDiagnostics.Diagnostics.Attributes.OnPropertyChangedWithoutCallerMemberName
1415
{
15-
[ExportCodeFixProvider(nameof(OnPropertyChangedWithoutCallerMemberNameCodeFix), LanguageNames.CSharp), Shared]
16+
[ExportCodeFixProvider(DiagnosticId.OnPropertyChangedWithoutCallerMemberName + "CF", LanguageNames.CSharp), Shared]
1617
public class OnPropertyChangedWithoutCallerMemberNameCodeFix : CodeFixProvider
1718
{
1819
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Exceptions/ArgumentExceptionWithoutNameofOperator/ArgumentExceptionWithoutNameofOperatorCodeFix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
using Microsoft.CodeAnalysis.CodeFixes;
99
using Microsoft.CodeAnalysis.CSharp;
1010
using Microsoft.CodeAnalysis.CSharp.Syntax;
11+
using VSDiagnostics.Utilities;
1112

1213
namespace VSDiagnostics.Diagnostics.Exceptions.ArgumentExceptionWithoutNameofOperator
1314
{
14-
[ExportCodeFixProvider(nameof(ArgumentExceptionWithoutNameofOperatorCodeFix), LanguageNames.CSharp), Shared]
15+
[ExportCodeFixProvider(DiagnosticId.ArgumentExceptionWithoutNameofOperator + "CF", LanguageNames.CSharp), Shared]
1516
public class ArgumentExceptionWithoutNameofOperatorCodeFix : CodeFixProvider
1617
{
1718
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/Exceptions/RethrowExceptionWithoutLosingStacktrace/RethrowExceptionWithoutLosingStacktraceCodeFix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
using Microsoft.CodeAnalysis.CodeFixes;
88
using Microsoft.CodeAnalysis.CSharp;
99
using Microsoft.CodeAnalysis.CSharp.Syntax;
10+
using VSDiagnostics.Utilities;
1011

1112
namespace VSDiagnostics.Diagnostics.Exceptions.RethrowExceptionWithoutLosingStacktrace
1213
{
13-
[ExportCodeFixProvider(nameof(RethrowExceptionWithoutLosingStacktraceCodeFix), LanguageNames.CSharp), Shared]
14+
[ExportCodeFixProvider(DiagnosticId.RethrowExceptionWithoutLosingStacktrace + "CF", LanguageNames.CSharp), Shared]
1415
public class RethrowExceptionWithoutLosingStacktraceCodeFix : CodeFixProvider
1516
{
1617
public override ImmutableArray<string> FixableDiagnosticIds

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/General/AsToCast/AsToCastCodeFix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
using Microsoft.CodeAnalysis.CSharp;
99
using Microsoft.CodeAnalysis.CSharp.Syntax;
1010
using Microsoft.CodeAnalysis.Formatting;
11+
using VSDiagnostics.Utilities;
1112

1213
namespace VSDiagnostics.Diagnostics.General.AsToCast
1314
{
14-
[ExportCodeFixProvider(nameof(AsToCastCodeFix), LanguageNames.CSharp), Shared]
15+
[ExportCodeFixProvider(DiagnosticId.AsToCast + "CF", LanguageNames.CSharp), Shared]
1516
public class AsToCastCodeFix : CodeFixProvider
1617
{
1718
public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(AsToCastAnalyzer.Rule.Id);

VSDiagnostics/VSDiagnostics/VSDiagnostics/Diagnostics/General/CastToAs/CastToAsCodeFix.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
using Microsoft.CodeAnalysis.CSharp;
99
using Microsoft.CodeAnalysis.CSharp.Syntax;
1010
using Microsoft.CodeAnalysis.Formatting;
11+
using VSDiagnostics.Utilities;
1112

1213
namespace VSDiagnostics.Diagnostics.General.CastToAs
1314
{
14-
[ExportCodeFixProvider(nameof(CastToAsCodeFix), LanguageNames.CSharp), Shared]
15+
[ExportCodeFixProvider(DiagnosticId.CastToAs + "CF", LanguageNames.CSharp), Shared]
1516
public class CastToAsCodeFix : CodeFixProvider
1617
{
1718
public override ImmutableArray<string> FixableDiagnosticIds => ImmutableArray.Create(CastToAsAnalyzer.Rule.Id);

0 commit comments

Comments
 (0)