Skip to content

Commit 04bd1bc

Browse files
committed
Use one project for all analyzers and downgrade version to 0.0.1
1 parent 0995c9b commit 04bd1bc

15 files changed

+30
-69
lines changed

Flow.Launcher.Localization.Analyzers/AnalyzerReleases.Unshipped.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

Flow.Launcher.Localization.Analyzers/Flow.Launcher.Localization.Analyzers.csproj

Lines changed: 0 additions & 19 deletions
This file was deleted.

Flow.Launcher.Localization.SourceGenerators/AnalyzerReleases.Shipped.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

Flow.Launcher.Localization.SourceGenerators/Flow.Launcher.Localization.SourceGenerators.csproj

Lines changed: 0 additions & 18 deletions
This file was deleted.

Flow.Launcher.Localization.slnx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
<Solution>
2-
<Project Path="Flow.Launcher.Localization.Analyzers/Flow.Launcher.Localization.Analyzers.csproj" />
3-
<Project Path="Flow.Launcher.Localization.SourceGenerators/Flow.Launcher.Localization.SourceGenerators.csproj" />
42
<Project Path="Flow.Launcher.Localization/Flow.Launcher.Localization.csproj" />
53
</Solution>
File renamed without changes.
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
; Shipped analyzer releases
1+
; Unshipped analyzer release
22
; https://github.com/dotnet/roslyn-analyzers/blob/main/src/Microsoft.CodeAnalysis.Analyzers/ReleaseTrackingAnalyzers.Help.md
3+
34
### New Rules
45

56
Rule ID | Category | Severity | Notes
67
--------|----------|----------|-------
8+
FLAN0001 | Localization | Warning | FLAN0001_OldLocalizationApiUsed
9+
FLAN0002 | Localization | Error | FLAN0002_ContextIsAField
10+
FLAN0003 | Localization | Error | FLAN0003_ContextIsNotStatic
11+
FLAN0004 | Localization | Error | FLAN0004_ContextAccessIsTooRestrictive
12+
FLAN0005 | Localization | Error | FLAN0005_ContextIsNotDeclared
713
FLSG0001 | Localization | Warning | FLSG0001_CouldNotFindResourceDictionaries
814
FLSG0002 | Localization | Warning | FLSG0002_CouldNotFindPluginEntryClass
915
FLSG0003 | Localization | Warning | FLSG0003_CouldNotFindContextProperty

Flow.Launcher.Localization.Analyzers/Localize/ContextAvailabilityAnalyzer.cs renamed to Flow.Launcher.Localization/Analyzers/ContextAvailabilityAnalyzer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using System.Collections.Immutable;
22
using System.Linq;
3+
using Flow.Launcher.Localization.Diagnostics;
34
using Microsoft.CodeAnalysis;
45
using Microsoft.CodeAnalysis.CSharp;
56
using Microsoft.CodeAnalysis.CSharp.Syntax;
67
using Microsoft.CodeAnalysis.Diagnostics;
78

8-
namespace Flow.Launcher.Localization.Analyzers.Localize
9+
namespace Flow.Launcher.Localization.Analyzers
910
{
1011
[DiagnosticAnalyzer(LanguageNames.CSharp)]
1112
public class ContextAvailabilityAnalyzer : DiagnosticAnalyzer
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.Composition;
33
using System.Linq;
44
using System.Threading.Tasks;
5+
using Flow.Launcher.Localization.Diagnostics;
56
using Microsoft.CodeAnalysis;
67
using Microsoft.CodeAnalysis.CodeActions;
78
using Microsoft.CodeAnalysis.CodeFixes;
@@ -11,7 +12,7 @@
1112
using Microsoft.CodeAnalysis.Simplification;
1213
using Microsoft.CodeAnalysis.Text;
1314

14-
namespace Flow.Launcher.Localization.Analyzers.Localize
15+
namespace Flow.Launcher.Localization.Analyzers
1516
{
1617
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(ContextAvailabilityAnalyzerCodeFixProvider)), Shared]
1718
public class ContextAvailabilityAnalyzerCodeFixProvider : CodeFixProvider

Flow.Launcher.Localization.Analyzers/Localize/OldGetTranslateAnalyzer.cs renamed to Flow.Launcher.Localization/Analyzers/OldGetTranslateAnalyzer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
using System.Collections.Immutable;
22
using System.Linq;
3+
using Flow.Launcher.Localization.Diagnostics;
34
using Microsoft.CodeAnalysis;
45
using Microsoft.CodeAnalysis.CSharp;
56
using Microsoft.CodeAnalysis.CSharp.Syntax;
67
using Microsoft.CodeAnalysis.Diagnostics;
78

8-
namespace Flow.Launcher.Localization.Analyzers.Localize
9+
namespace Flow.Launcher.Localization.Analyzers
910
{
1011
[DiagnosticAnalyzer(LanguageNames.CSharp)]
1112
public class OldGetTranslateAnalyzer : DiagnosticAnalyzer

0 commit comments

Comments
 (0)