From a6e152f2b0c5af16d1c90c3c6f7d895d1580d3bd Mon Sep 17 00:00:00 2001 From: Vianney de Bellabre Date: Tue, 7 Jan 2025 22:26:52 +0100 Subject: [PATCH] Switch to creedengo (#20) --- README.md | 2 +- .../GCI69.DontCallFunctionsInLoopConditions.cs | 2 +- .../GCI72.DontExecuteSqlCommandsInLoops.cs | 2 +- .../GCI75.DontConcatenateStringsInLoops.cs | 2 +- RuleTests/{EcoCode => Creedengo}/GCI81.SpecifyStructLayout.cs | 2 +- .../{EcoCode => Creedengo}/GCI82.VariableCanBeMadeConstant.cs | 2 +- .../GCI83.ReplaceEnumToStringWithNameOf.cs | 2 +- RuleTests/{EcoCode => Creedengo}/GCI84.AvoidAsyncVoidMethods.cs | 2 +- RuleTests/{EcoCode => Creedengo}/GCI85.MakeTypeSealed.cs | 2 +- .../{EcoCode => Creedengo}/GCI86.GCCollectShouldNotBeCalled.cs | 2 +- RuleTests/{EcoCode => Creedengo}/GCI87.UseListIndexer.cs | 2 +- .../GCI88.DisposeResourceAsynchronusly.cs | 2 +- RuleTests/{EcoCode => Creedengo}/GCI91.UseWhereBeforeOrderBy.cs | 2 +- .../{EcoCode => Creedengo}/GCI92.UseLengthToTestEmptyStrings.cs | 2 +- RuleTests/{EcoCode => Creedengo}/GCI93.ReturnTaskDirectly.cs | 2 +- ...-test-project.csproj => creedengo-csharp-test-project.csproj | 2 +- ...csharp-test-project.sln => creedengo-csharp-test-project.sln | 2 +- tool_send_to_sonar.sh | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) rename RuleTests/{EcoCode => Creedengo}/GCI69.DontCallFunctionsInLoopConditions.cs (96%) rename RuleTests/{EcoCode => Creedengo}/GCI72.DontExecuteSqlCommandsInLoops.cs (95%) rename RuleTests/{EcoCode => Creedengo}/GCI75.DontConcatenateStringsInLoops.cs (99%) rename RuleTests/{EcoCode => Creedengo}/GCI81.SpecifyStructLayout.cs (96%) rename RuleTests/{EcoCode => Creedengo}/GCI82.VariableCanBeMadeConstant.cs (96%) rename RuleTests/{EcoCode => Creedengo}/GCI83.ReplaceEnumToStringWithNameOf.cs (97%) rename RuleTests/{EcoCode => Creedengo}/GCI84.AvoidAsyncVoidMethods.cs (95%) rename RuleTests/{EcoCode => Creedengo}/GCI85.MakeTypeSealed.cs (99%) rename RuleTests/{EcoCode => Creedengo}/GCI86.GCCollectShouldNotBeCalled.cs (94%) rename RuleTests/{EcoCode => Creedengo}/GCI87.UseListIndexer.cs (98%) rename RuleTests/{EcoCode => Creedengo}/GCI88.DisposeResourceAsynchronusly.cs (97%) rename RuleTests/{EcoCode => Creedengo}/GCI91.UseWhereBeforeOrderBy.cs (96%) rename RuleTests/{EcoCode => Creedengo}/GCI92.UseLengthToTestEmptyStrings.cs (85%) rename RuleTests/{EcoCode => Creedengo}/GCI93.ReturnTaskDirectly.cs (97%) rename ecoCode-csharp-test-project.csproj => creedengo-csharp-test-project.csproj (90%) rename ecoCode-csharp-test-project.sln => creedengo-csharp-test-project.sln (85%) diff --git a/README.md b/README.md index 857c78a..2809cbe 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -A project that can be used to test the latest version of the [creedengo-charp](https://github.com/green-code-initiative/creedengo-csharp) NuGet package. +A project that can be used to test the latest version of the [creedengo-csharp](https://github.com/green-code-initiative/creedengo-csharp) NuGet package. ### 1. Set up your local environment diff --git a/RuleTests/EcoCode/GCI69.DontCallFunctionsInLoopConditions.cs b/RuleTests/Creedengo/GCI69.DontCallFunctionsInLoopConditions.cs similarity index 96% rename from RuleTests/EcoCode/GCI69.DontCallFunctionsInLoopConditions.cs rename to RuleTests/Creedengo/GCI69.DontCallFunctionsInLoopConditions.cs index ca55667..fe446f5 100644 --- a/RuleTests/EcoCode/GCI69.DontCallFunctionsInLoopConditions.cs +++ b/RuleTests/Creedengo/GCI69.DontCallFunctionsInLoopConditions.cs @@ -1,6 +1,6 @@ using System.IO; -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class DontCallFunctionsInLoopConditions { diff --git a/RuleTests/EcoCode/GCI72.DontExecuteSqlCommandsInLoops.cs b/RuleTests/Creedengo/GCI72.DontExecuteSqlCommandsInLoops.cs similarity index 95% rename from RuleTests/EcoCode/GCI72.DontExecuteSqlCommandsInLoops.cs rename to RuleTests/Creedengo/GCI72.DontExecuteSqlCommandsInLoops.cs index cae2c49..162e9d8 100644 --- a/RuleTests/EcoCode/GCI72.DontExecuteSqlCommandsInLoops.cs +++ b/RuleTests/Creedengo/GCI72.DontExecuteSqlCommandsInLoops.cs @@ -1,6 +1,6 @@ using System.Data; -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class DontExecuteSqlCommandsInLoops { diff --git a/RuleTests/EcoCode/GCI75.DontConcatenateStringsInLoops.cs b/RuleTests/Creedengo/GCI75.DontConcatenateStringsInLoops.cs similarity index 99% rename from RuleTests/EcoCode/GCI75.DontConcatenateStringsInLoops.cs rename to RuleTests/Creedengo/GCI75.DontConcatenateStringsInLoops.cs index 72053c4..3569e77 100644 --- a/RuleTests/EcoCode/GCI75.DontConcatenateStringsInLoops.cs +++ b/RuleTests/Creedengo/GCI75.DontConcatenateStringsInLoops.cs @@ -1,6 +1,6 @@ using System.Collections.Immutable; -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class DontConcatenateStringsInLoops { diff --git a/RuleTests/EcoCode/GCI81.SpecifyStructLayout.cs b/RuleTests/Creedengo/GCI81.SpecifyStructLayout.cs similarity index 96% rename from RuleTests/EcoCode/GCI81.SpecifyStructLayout.cs rename to RuleTests/Creedengo/GCI81.SpecifyStructLayout.cs index e0a4419..9e874f6 100644 --- a/RuleTests/EcoCode/GCI81.SpecifyStructLayout.cs +++ b/RuleTests/Creedengo/GCI81.SpecifyStructLayout.cs @@ -1,6 +1,6 @@ using System.Runtime.InteropServices; -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class SpecifyStructLayout { diff --git a/RuleTests/EcoCode/GCI82.VariableCanBeMadeConstant.cs b/RuleTests/Creedengo/GCI82.VariableCanBeMadeConstant.cs similarity index 96% rename from RuleTests/EcoCode/GCI82.VariableCanBeMadeConstant.cs rename to RuleTests/Creedengo/GCI82.VariableCanBeMadeConstant.cs index bdc248f..bbaa2ab 100644 --- a/RuleTests/EcoCode/GCI82.VariableCanBeMadeConstant.cs +++ b/RuleTests/Creedengo/GCI82.VariableCanBeMadeConstant.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class VariableCanBeMadeConstant { diff --git a/RuleTests/EcoCode/GCI83.ReplaceEnumToStringWithNameOf.cs b/RuleTests/Creedengo/GCI83.ReplaceEnumToStringWithNameOf.cs similarity index 97% rename from RuleTests/EcoCode/GCI83.ReplaceEnumToStringWithNameOf.cs rename to RuleTests/Creedengo/GCI83.ReplaceEnumToStringWithNameOf.cs index 54b4ade..365c22b 100644 --- a/RuleTests/EcoCode/GCI83.ReplaceEnumToStringWithNameOf.cs +++ b/RuleTests/Creedengo/GCI83.ReplaceEnumToStringWithNameOf.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class ReplaceEnumToStringWithNameOf { diff --git a/RuleTests/EcoCode/GCI84.AvoidAsyncVoidMethods.cs b/RuleTests/Creedengo/GCI84.AvoidAsyncVoidMethods.cs similarity index 95% rename from RuleTests/EcoCode/GCI84.AvoidAsyncVoidMethods.cs rename to RuleTests/Creedengo/GCI84.AvoidAsyncVoidMethods.cs index 85621ed..2439463 100644 --- a/RuleTests/EcoCode/GCI84.AvoidAsyncVoidMethods.cs +++ b/RuleTests/Creedengo/GCI84.AvoidAsyncVoidMethods.cs @@ -1,6 +1,6 @@ using System.Net.Http; -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class AvoidAsyncVoidMethods { diff --git a/RuleTests/EcoCode/GCI85.MakeTypeSealed.cs b/RuleTests/Creedengo/GCI85.MakeTypeSealed.cs similarity index 99% rename from RuleTests/EcoCode/GCI85.MakeTypeSealed.cs rename to RuleTests/Creedengo/GCI85.MakeTypeSealed.cs index 339e4dd..3362af5 100644 --- a/RuleTests/EcoCode/GCI85.MakeTypeSealed.cs +++ b/RuleTests/Creedengo/GCI85.MakeTypeSealed.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; // Because GCI85 is a compiler warning, it can't appear live in the editor. // It can appear in the Error List after a compilation or after using 'Run Code Analysis', diff --git a/RuleTests/EcoCode/GCI86.GCCollectShouldNotBeCalled.cs b/RuleTests/Creedengo/GCI86.GCCollectShouldNotBeCalled.cs similarity index 94% rename from RuleTests/EcoCode/GCI86.GCCollectShouldNotBeCalled.cs rename to RuleTests/Creedengo/GCI86.GCCollectShouldNotBeCalled.cs index a92b9e0..05c2c20 100644 --- a/RuleTests/EcoCode/GCI86.GCCollectShouldNotBeCalled.cs +++ b/RuleTests/Creedengo/GCI86.GCCollectShouldNotBeCalled.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class GCCollectShouldNotBeCalled { diff --git a/RuleTests/EcoCode/GCI87.UseListIndexer.cs b/RuleTests/Creedengo/GCI87.UseListIndexer.cs similarity index 98% rename from RuleTests/EcoCode/GCI87.UseListIndexer.cs rename to RuleTests/Creedengo/GCI87.UseListIndexer.cs index 3a7f096..cde7679 100644 --- a/RuleTests/EcoCode/GCI87.UseListIndexer.cs +++ b/RuleTests/Creedengo/GCI87.UseListIndexer.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class UseListIndexer { diff --git a/RuleTests/EcoCode/GCI88.DisposeResourceAsynchronusly.cs b/RuleTests/Creedengo/GCI88.DisposeResourceAsynchronusly.cs similarity index 97% rename from RuleTests/EcoCode/GCI88.DisposeResourceAsynchronusly.cs rename to RuleTests/Creedengo/GCI88.DisposeResourceAsynchronusly.cs index e855407..1e6b70c 100644 --- a/RuleTests/EcoCode/GCI88.DisposeResourceAsynchronusly.cs +++ b/RuleTests/Creedengo/GCI88.DisposeResourceAsynchronusly.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; [SuppressMessage("Reliability", "CA2000:Dispose objects before losing scope", Justification = "Valid warning but we don't need it here")] internal static class DisposeResourceAsynchronusly diff --git a/RuleTests/EcoCode/GCI91.UseWhereBeforeOrderBy.cs b/RuleTests/Creedengo/GCI91.UseWhereBeforeOrderBy.cs similarity index 96% rename from RuleTests/EcoCode/GCI91.UseWhereBeforeOrderBy.cs rename to RuleTests/Creedengo/GCI91.UseWhereBeforeOrderBy.cs index 74dded3..b0edda8 100644 --- a/RuleTests/EcoCode/GCI91.UseWhereBeforeOrderBy.cs +++ b/RuleTests/Creedengo/GCI91.UseWhereBeforeOrderBy.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class UseWhereBeforeOrderBy { diff --git a/RuleTests/EcoCode/GCI92.UseLengthToTestEmptyStrings.cs b/RuleTests/Creedengo/GCI92.UseLengthToTestEmptyStrings.cs similarity index 85% rename from RuleTests/EcoCode/GCI92.UseLengthToTestEmptyStrings.cs rename to RuleTests/Creedengo/GCI92.UseLengthToTestEmptyStrings.cs index b250853..b44e938 100644 --- a/RuleTests/EcoCode/GCI92.UseLengthToTestEmptyStrings.cs +++ b/RuleTests/Creedengo/GCI92.UseLengthToTestEmptyStrings.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class UseLengthToTestEmpyString { diff --git a/RuleTests/EcoCode/GCI93.ReturnTaskDirectly.cs b/RuleTests/Creedengo/GCI93.ReturnTaskDirectly.cs similarity index 97% rename from RuleTests/EcoCode/GCI93.ReturnTaskDirectly.cs rename to RuleTests/Creedengo/GCI93.ReturnTaskDirectly.cs index 0780efe..aaf418d 100644 --- a/RuleTests/EcoCode/GCI93.ReturnTaskDirectly.cs +++ b/RuleTests/Creedengo/GCI93.ReturnTaskDirectly.cs @@ -1,4 +1,4 @@ -namespace RuleTests.EcoCode; +namespace RuleTests.Creedengo; internal static class ReturnTaskDirectly { diff --git a/ecoCode-csharp-test-project.csproj b/creedengo-csharp-test-project.csproj similarity index 90% rename from ecoCode-csharp-test-project.csproj rename to creedengo-csharp-test-project.csproj index d0a99a9..2c58f81 100644 --- a/ecoCode-csharp-test-project.csproj +++ b/creedengo-csharp-test-project.csproj @@ -15,7 +15,7 @@ - + diff --git a/ecoCode-csharp-test-project.sln b/creedengo-csharp-test-project.sln similarity index 85% rename from ecoCode-csharp-test-project.sln rename to creedengo-csharp-test-project.sln index 7b4d3c9..20a366f 100644 --- a/ecoCode-csharp-test-project.sln +++ b/creedengo-csharp-test-project.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.9.34714.143 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ecoCode-csharp-test-project", "ecoCode-csharp-test-project.csproj", "{6AAA1AD9-DC43-4F33-898A-663C42B06DCA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "creedengo-csharp-test-project", "creedengo-csharp-test-project.csproj", "{6AAA1AD9-DC43-4F33-898A-663C42B06DCA}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/tool_send_to_sonar.sh b/tool_send_to_sonar.sh index 7ef7066..540367a 100755 --- a/tool_send_to_sonar.sh +++ b/tool_send_to_sonar.sh @@ -6,7 +6,7 @@ then exit 1 fi -PROJECT_KEY=ecoCode-csharp-test-project +PROJECT_KEY=creedengo-csharp-test-project SONAR_TOKEN=$1 dotnet sonarscanner begin /k:"$PROJECT_KEY" /d:sonar.host.url="http://localhost:9000" /d:sonar.login="$SONAR_TOKEN"