From 8b0f02347b573edee6863af8cd9171cbc34dc0d4 Mon Sep 17 00:00:00 2001 From: earloc Date: Sat, 26 Oct 2024 14:24:28 +0200 Subject: [PATCH] Revert "refactor: smash together analyzers and code-fixes" This reverts commit 1ef7b31928525f63e7bc2dc5ffd34745bcc0ddf0. --- TypealizR.sln | 14 ++++++ .../Playground.Console.csproj | 1 + .../CodeFixResources.Designer.cs | 0 .../CodeFixResources.resx | 0 .../ICodeFixer.cs | 0 .../TypealizeR.Analyzers.CodeFixes.csproj | 47 +++++++++++++++++++ .../TypealizeRCodeFixProvider.cs | 0 .../UseIndexerCodeFixer.cs | 0 .../TypealizeR.Analyzers.Tests.csproj | 1 + .../TypealizeR.Analyzers.csproj | 18 ++----- 10 files changed, 68 insertions(+), 13 deletions(-) rename src/{TypealizeR.Analyzers => TypealizeR.Analyzers.CodeFixes}/CodeFixResources.Designer.cs (100%) rename src/{TypealizeR.Analyzers => TypealizeR.Analyzers.CodeFixes}/CodeFixResources.resx (100%) rename src/{TypealizeR.Analyzers => TypealizeR.Analyzers.CodeFixes}/ICodeFixer.cs (100%) create mode 100644 src/TypealizeR.Analyzers.CodeFixes/TypealizeR.Analyzers.CodeFixes.csproj rename src/{TypealizeR.Analyzers => TypealizeR.Analyzers.CodeFixes}/TypealizeRCodeFixProvider.cs (100%) rename src/{TypealizeR.Analyzers => TypealizeR.Analyzers.CodeFixes}/UseIndexerCodeFixer.cs (100%) diff --git a/TypealizR.sln b/TypealizR.sln index 62882f9..9335558 100644 --- a/TypealizR.sln +++ b/TypealizR.sln @@ -36,9 +36,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Analyzers", "Analyzers", "{ EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypealizeR.Analyzers", "src\TypealizeR.Analyzers\TypealizeR.Analyzers.csproj", "{9900F54D-8EAB-470F-9936-BC14B24081F3}" EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypealizeR.Analyzers.CodeFixes", "src\TypealizeR.Analyzers.CodeFixes\TypealizeR.Analyzers.CodeFixes.csproj", "{9729BAAA-29C7-471A-A3EE-9F9409477E16}" +EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TypealizeR.Analyzers.Tests", "src\TypealizeR.Analyzers.Test\TypealizeR.Analyzers.Tests.csproj", "{4B7D4786-87BE-45B5-A8F3-D3BD33E46AB0}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{F1ACB111-3C06-4CB5-B08B-3560F625EF7C}" + ProjectSection(SolutionItems) = preProject + .github\workflows\build.yml = .github\workflows\build.yml + .github\workflows\codeql.yml = .github\workflows\codeql.yml + .github\workflows\publish.yml = .github\workflows\publish.yml + .github\workflows\samples_lts.yml = .github\workflows\samples_lts.yml + .github\workflows\samples_sts.yml = .github\workflows\samples_sts.yml + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -78,6 +87,10 @@ Global {9900F54D-8EAB-470F-9936-BC14B24081F3}.Debug|Any CPU.Build.0 = Debug|Any CPU {9900F54D-8EAB-470F-9936-BC14B24081F3}.Release|Any CPU.ActiveCfg = Release|Any CPU {9900F54D-8EAB-470F-9936-BC14B24081F3}.Release|Any CPU.Build.0 = Release|Any CPU + {9729BAAA-29C7-471A-A3EE-9F9409477E16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9729BAAA-29C7-471A-A3EE-9F9409477E16}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9729BAAA-29C7-471A-A3EE-9F9409477E16}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9729BAAA-29C7-471A-A3EE-9F9409477E16}.Release|Any CPU.Build.0 = Release|Any CPU {4B7D4786-87BE-45B5-A8F3-D3BD33E46AB0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {4B7D4786-87BE-45B5-A8F3-D3BD33E46AB0}.Debug|Any CPU.Build.0 = Debug|Any CPU {4B7D4786-87BE-45B5-A8F3-D3BD33E46AB0}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -91,6 +104,7 @@ Global {CFFB0876-CC7C-466C-9D76-FB1F025E2B80} = {38D4BAEB-9CA0-4868-B8A0-6CBADCB198AC} {0E9B0505-3680-40A2-A0AC-31C9117D1A24} = {38D4BAEB-9CA0-4868-B8A0-6CBADCB198AC} {9900F54D-8EAB-470F-9936-BC14B24081F3} = {9E311478-C17A-4D93-90BE-D94993A7020D} + {9729BAAA-29C7-471A-A3EE-9F9409477E16} = {9E311478-C17A-4D93-90BE-D94993A7020D} {4B7D4786-87BE-45B5-A8F3-D3BD33E46AB0} = {9E311478-C17A-4D93-90BE-D94993A7020D} {F1ACB111-3C06-4CB5-B08B-3560F625EF7C} = {0C8376C6-E8F7-40E2-959A-210C515B06E0} EndGlobalSection diff --git a/src/Playground.Console/Playground.Console.csproj b/src/Playground.Console/Playground.Console.csproj index f595b36..aac52e3 100644 --- a/src/Playground.Console/Playground.Console.csproj +++ b/src/Playground.Console/Playground.Console.csproj @@ -11,6 +11,7 @@ + diff --git a/src/TypealizeR.Analyzers/CodeFixResources.Designer.cs b/src/TypealizeR.Analyzers.CodeFixes/CodeFixResources.Designer.cs similarity index 100% rename from src/TypealizeR.Analyzers/CodeFixResources.Designer.cs rename to src/TypealizeR.Analyzers.CodeFixes/CodeFixResources.Designer.cs diff --git a/src/TypealizeR.Analyzers/CodeFixResources.resx b/src/TypealizeR.Analyzers.CodeFixes/CodeFixResources.resx similarity index 100% rename from src/TypealizeR.Analyzers/CodeFixResources.resx rename to src/TypealizeR.Analyzers.CodeFixes/CodeFixResources.resx diff --git a/src/TypealizeR.Analyzers/ICodeFixer.cs b/src/TypealizeR.Analyzers.CodeFixes/ICodeFixer.cs similarity index 100% rename from src/TypealizeR.Analyzers/ICodeFixer.cs rename to src/TypealizeR.Analyzers.CodeFixes/ICodeFixer.cs diff --git a/src/TypealizeR.Analyzers.CodeFixes/TypealizeR.Analyzers.CodeFixes.csproj b/src/TypealizeR.Analyzers.CodeFixes/TypealizeR.Analyzers.CodeFixes.csproj new file mode 100644 index 0000000..0b5b9de --- /dev/null +++ b/src/TypealizeR.Analyzers.CodeFixes/TypealizeR.Analyzers.CodeFixes.csproj @@ -0,0 +1,47 @@ + + + + netstandard2.0 + TypealizeR.Analyzers + latest + + + + TypealizR.Analyzers.CodeFixes + true + README.md + TypealizR.Analyzers.CodeFixes + earloc + TypealizR + https://github.com/earloc/TypealizR + https://github.com/earloc/TypealizR + git + ../../bin + true + true + MIT + false + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/TypealizeR.Analyzers/TypealizeRCodeFixProvider.cs b/src/TypealizeR.Analyzers.CodeFixes/TypealizeRCodeFixProvider.cs similarity index 100% rename from src/TypealizeR.Analyzers/TypealizeRCodeFixProvider.cs rename to src/TypealizeR.Analyzers.CodeFixes/TypealizeRCodeFixProvider.cs diff --git a/src/TypealizeR.Analyzers/UseIndexerCodeFixer.cs b/src/TypealizeR.Analyzers.CodeFixes/UseIndexerCodeFixer.cs similarity index 100% rename from src/TypealizeR.Analyzers/UseIndexerCodeFixer.cs rename to src/TypealizeR.Analyzers.CodeFixes/UseIndexerCodeFixer.cs diff --git a/src/TypealizeR.Analyzers.Test/TypealizeR.Analyzers.Tests.csproj b/src/TypealizeR.Analyzers.Test/TypealizeR.Analyzers.Tests.csproj index 8beff95..450b5e4 100644 --- a/src/TypealizeR.Analyzers.Test/TypealizeR.Analyzers.Tests.csproj +++ b/src/TypealizeR.Analyzers.Test/TypealizeR.Analyzers.Tests.csproj @@ -22,6 +22,7 @@ + diff --git a/src/TypealizeR.Analyzers/TypealizeR.Analyzers.csproj b/src/TypealizeR.Analyzers/TypealizeR.Analyzers.csproj index a70b2ee..64226e3 100644 --- a/src/TypealizeR.Analyzers/TypealizeR.Analyzers.csproj +++ b/src/TypealizeR.Analyzers/TypealizeR.Analyzers.csproj @@ -4,6 +4,7 @@ netstandard2.0 latest enable + true @@ -36,8 +37,6 @@ - - all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -46,17 +45,10 @@ - - CodeFixResources.resx - True - True - - - - CodeFixResources.Designer.cs - ResXFileCodeGenerator - - + + \ No newline at end of file