Skip to content

Commit

Permalink
Upgrade to 1.5.1 (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Djoums authored Sep 9, 2024
1 parent d5b0fbf commit b0855eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion RuleTests/EcoCode/EC69.DontCallFunctionsInLoopConditions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
namespace RuleTests.EcoCode;
using System.IO;

namespace RuleTests.EcoCode;

internal static class DontCallFunctionsInLoopConditions
{
Expand All @@ -21,5 +23,9 @@ public static void Run(int p)

do j += i++;
while (i < V1 && i < V2() && i < V3(i) && i < V3(j) && i < V3(k) && i < V3(p) && i < V3(C));

string? d = Path.GetDirectoryName("toto");
while (d != null && !d.Equals(@"S:\", StringComparison.OrdinalIgnoreCase)) // No EC69, d is reassigned in the loop
d = Path.GetDirectoryName(d);
}
}
2 changes: 1 addition & 1 deletion ecoCode-csharp-test-project.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="EcoCode" Version="1.5.0" />
<PackageReference Include="EcoCode" Version="1.5.1" />
</ItemGroup>

</Project>

0 comments on commit b0855eb

Please sign in to comment.