Skip to content

Commit

Permalink
Switch to creedengo (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Djoums authored Jan 7, 2025
1 parent 5bd84b5 commit a6e152f
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.IO;

namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class DontCallFunctionsInLoopConditions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Data;

namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class DontExecuteSqlCommandsInLoops
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Immutable;

namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class DontConcatenateStringsInLoops
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class SpecifyStructLayout
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class VariableCanBeMadeConstant
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class ReplaceEnumToStringWithNameOf
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Net.Http;

namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class AvoidAsyncVoidMethods
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class GCCollectShouldNotBeCalled
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class UseListIndexer
{
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class UseWhereBeforeOrderBy
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class UseLengthToTestEmpyString
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RuleTests.EcoCode;
namespace RuleTests.Creedengo;

internal static class ReturnTaskDirectly
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EcoCode" Version="1.5.3" />
<PackageReference Include="Creedengo" Version="2.0.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tool_send_to_sonar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a6e152f

Please sign in to comment.