Skip to content

Commit

Permalink
Update to 1.5.0 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Djoums authored Jul 13, 2024
1 parent 3f4963a commit c648c3f
Show file tree
Hide file tree
Showing 31 changed files with 1,724 additions and 323 deletions.
250 changes: 0 additions & 250 deletions .editorconfig

This file was deleted.

6 changes: 3 additions & 3 deletions GlobalSuppressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"CA1812:Avoid uninstantiated internal classes",
Justification = "Unneeded spam",
Scope = "namespaceanddescendants",
Target = "~N:EcoCode.LiveWarnings")]
Target = "~N:RuleTests")]

[assembly: SuppressMessage("Performance",
"CA1852:Seal internal types",
Justification = "Unneeded spam",
Scope = "namespaceanddescendants",
Target = "~N:EcoCode.LiveWarnings")]
Target = "~N:RuleTests")]

[assembly: SuppressMessage("Globalization",
"CA1303:Do not pass literals as localized parameters",
Justification = "Unneeded spam",
Scope = "namespaceanddescendants",
Target = "~N:EcoCode.LiveWarnings")]
Target = "~N:RuleTests")]
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

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

namespace EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

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 EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

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 EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

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

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

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 EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

internal static class AvoidAsyncVoidMethods
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
namespace EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

// Because EC85 is a compiler warning, it will only appear in the error list after a compilation, but not in the editor.
// Because EC85 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',
// but only if the option '<AnalysisMode>all</AnalysisMode>' is set in the .csproj file.

internal static class MakeTypeSealed
{
Expand Down Expand Up @@ -165,7 +167,7 @@ public class TestA2 { internal virtual void Method() { } } // EC85: make type se
public class TestA3 { protected virtual void Method() { } }
public class TestA4 { protected internal virtual void Method() { } } // EC85: make type sealed
public class TestA5 { private protected virtual void Method() { } } // EC85: make type sealed

internal class TestB1 { public virtual void Method() { } } // EC85: make type sealed
internal class TestB2 { internal virtual void Method() { } } // EC85: make type sealed
internal class TestB3 { protected virtual void Method() { } } // EC85: make type sealed
Expand All @@ -186,13 +188,13 @@ public class TestA2 { internal virtual void Method() { } } // EC85: make type se
public class TestA3 { protected virtual void Method() { } } // EC85: make type sealed
public class TestA4 { protected internal virtual void Method() { } } // EC85: make type sealed
public class TestA5 { private protected virtual void Method() { } } // EC85: make type sealed

internal class TestB1 { public virtual void Method() { } } // EC85: make type sealed
internal class TestB2 { internal virtual void Method() { } } // EC85: make type sealed
internal class TestB3 { protected virtual void Method() { } } // EC85: make type sealed
internal class TestB4 { protected internal virtual void Method() { } } // EC85: make type sealed
internal class TestB5 { private protected virtual void Method() { } } // EC85: make type sealed

private class TestC1 { public virtual void Method() { } } // EC85: make type sealed
private class TestC2 { internal virtual void Method() { } } // EC85: make type sealed
private class TestC3 { protected virtual void Method() { } } // EC85: make type sealed
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

internal static class GCCollectShouldNotBeCalled
{
Expand All @@ -7,8 +7,8 @@ public static void Run()
// GC.Collect();

GC.Collect(); // EC86
System.GC.Collect(); // EC86

GC.Collect(); // EC86

GC.Collect(0);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

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

[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 EcoCode.LiveWarnings;
namespace RuleTests.EcoCode;

internal static class UseWhereBeforeOrderBy
{
Expand Down
Loading

0 comments on commit c648c3f

Please sign in to comment.