From 9415c6856f37ebfda721f0a65486bbfc8a03f41a Mon Sep 17 00:00:00 2001 From: Anthony Lloyd Date: Mon, 4 Dec 2023 14:09:10 +0000 Subject: [PATCH] implicit usings --- .editorconfig | 22 +--------------------- CsCheck/Causal.cs | 4 ---- CsCheck/Check.cs | 6 ------ CsCheck/CsCheck.csproj | 8 ++++---- CsCheck/Dbg.cs | 4 ---- CsCheck/Gen.cs | 2 -- CsCheck/Hash.cs | 4 ---- CsCheck/PCG.cs | 2 -- CsCheck/Timer.cs | 2 -- CsCheck/Utils.cs | 4 ---- Tests/Tests.csproj | 4 +++- 11 files changed, 8 insertions(+), 54 deletions(-) diff --git a/.editorconfig b/.editorconfig index edd900b..7dc5d11 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,25 +8,6 @@ trim_trailing_whitespace = true csharp_style_namespace_declarations = file_scoped:warning -<<<<<<< Updated upstream -dotnet_diagnostic.rcs1123.severity = none # Roslynator - Add parentheses when necessary -dotnet_diagnostic.rcs1110.severity = none # Roslynator - Declare type inside namespace -dotnet_diagnostic.rcs1196.severity = none # Roslynator - Call extension method as instance method -dotnet_diagnostic.rcs1154.severity = none # Roslynator - Sort enum members -dotnet_diagnostic.rcs1001.severity = none # Roslynator - Add braces (when expression spans over multiple lines) -dotnet_diagnostic.RCS1003.severity = none # RCS1003: Add braces to if-else (when expression spans over multiple lines). - -dotnet_diagnostic.MA0011.severity = none # MA0011: IFormatProvider is missing -dotnet_diagnostic.MA0069.severity = none # MA0069: Non-constant static fields should not be visible -dotnet_diagnostic.MA0048.severity = none # MA0048: File name must match type name -dotnet_diagnostic.MA0003.severity = none # MA0003: Add parameter name to improve readability -dotnet_diagnostic.MA0047.severity = none # MA0047: Declare types in namespaces -dotnet_diagnostic.MA0051.severity = none # MA0051: Method is too long -dotnet_diagnostic.MA0076.severity = none # MA0076: Do not use implicit culture-sensitive ToString in interpolated strings -dotnet_diagnostic.MA0075.severity = none # MA0075: Do not use implicit culture-sensitive ToString -dotnet_diagnostic.MA0001.severity = none # MA0001: StringComparison is missing -dotnet_diagnostic.MA0016.severity = none # MA0016: Prefer using collection abstraction instead of implementation -======= dotnet_diagnostic.CA1307.severity = none # Specify StringComparison for clarity dotnet_diagnostic.CA1051.severity = none # Do not declare visible instance fields dotnet_diagnostic.CA1062.severity = none # Validate arguments of public methods @@ -62,5 +43,4 @@ dotnet_diagnostic.MA0051.severity = none # Method is too long dotnet_diagnostic.MA0076.severity = none # Do not use implicit culture-sensitive ToString in interpolated strings dotnet_diagnostic.MA0075.severity = none # Do not use implicit culture-sensitive ToString dotnet_diagnostic.MA0001.severity = none # StringComparison is missing -dotnet_diagnostic.MA0016.severity = none # Prefer using collection abstraction instead of implementation ->>>>>>> Stashed changes +dotnet_diagnostic.MA0016.severity = none # Prefer using collection abstraction instead of implementation \ No newline at end of file diff --git a/CsCheck/Causal.cs b/CsCheck/Causal.cs index f3f1755..b3b5e92 100644 --- a/CsCheck/Causal.cs +++ b/CsCheck/Causal.cs @@ -14,12 +14,8 @@ namespace CsCheck; -using System; using System.Text; -using System.Linq; -using System.Threading; using System.Diagnostics; -using System.Collections.Generic; /// Causal profiling functionality. public static class Causal diff --git a/CsCheck/Check.cs b/CsCheck/Check.cs index 05a18db..39affbd 100644 --- a/CsCheck/Check.cs +++ b/CsCheck/Check.cs @@ -14,15 +14,9 @@ namespace CsCheck; -using System; -using System.Collections.Generic; using System.Diagnostics; -using System.IO; -using System.Linq; using System.Runtime.CompilerServices; using System.Text; -using System.Threading; -using System.Threading.Tasks; /// Main random testing Check functions. public static partial class Check diff --git a/CsCheck/CsCheck.csproj b/CsCheck/CsCheck.csproj index 592121a..d5c79d5 100644 --- a/CsCheck/CsCheck.csproj +++ b/CsCheck/CsCheck.csproj @@ -22,17 +22,17 @@ CsCheck also makes concurrency, performance and regression testing simple and fa http://github.com/AnthonyLloyd/CsCheck CsCheck.png quickcheck;random;model-based;metamorphic;concurrency;performance;causal-profiling;regression;testing - 3.0.1 + 3.1.0 More obvious stack trace for exceptions in user code. -Added Faster IInvoke overload. -Added 100 unrolling for IInvokes. -Increased Faster % to two decimal places. +Added Faster IInvoke overload and 100 unrolling for IInvokes. +Increased Faster % to two decimal places and added times ratio. net6.0 preview 999 enable + enable true true false diff --git a/CsCheck/Dbg.cs b/CsCheck/Dbg.cs index 88be52f..62abe8b 100644 --- a/CsCheck/Dbg.cs +++ b/CsCheck/Dbg.cs @@ -12,12 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.IO; -using System.Linq; using System.Collections; using System.Diagnostics; -using System.Collections.Generic; using System.Runtime.CompilerServices; using CsCheck; using System.Runtime.InteropServices; diff --git a/CsCheck/Gen.cs b/CsCheck/Gen.cs index ee07aca..4e423ec 100644 --- a/CsCheck/Gen.cs +++ b/CsCheck/Gen.cs @@ -14,8 +14,6 @@ namespace CsCheck; -using System; -using System.Collections.Generic; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; diff --git a/CsCheck/Hash.cs b/CsCheck/Hash.cs index d9a4c5e..021c260 100644 --- a/CsCheck/Hash.cs +++ b/CsCheck/Hash.cs @@ -14,11 +14,7 @@ namespace CsCheck; -using System; -using System.IO; using System.Text; -using System.Threading; -using System.Collections.Generic; using System.Collections.Concurrent; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; diff --git a/CsCheck/PCG.cs b/CsCheck/PCG.cs index 2185447..771a0f1 100644 --- a/CsCheck/PCG.cs +++ b/CsCheck/PCG.cs @@ -14,8 +14,6 @@ namespace CsCheck; -using System; -using System.Threading; using System.Diagnostics; using System.Numerics; diff --git a/CsCheck/Timer.cs b/CsCheck/Timer.cs index 92628ec..f7e9d9c 100644 --- a/CsCheck/Timer.cs +++ b/CsCheck/Timer.cs @@ -1,9 +1,7 @@ namespace CsCheck; -using System; using System.Diagnostics; using System.Runtime.CompilerServices; -using System.Threading.Tasks; #pragma warning disable IDE0059 // Unnecessary assignment of a value diff --git a/CsCheck/Utils.cs b/CsCheck/Utils.cs index 1543838..99cada1 100644 --- a/CsCheck/Utils.cs +++ b/CsCheck/Utils.cs @@ -15,12 +15,8 @@ [assembly: System.Runtime.CompilerServices.InternalsVisibleTo("Tests, PublicKey=002400000480000094000000060200000024000052534131000400000100010089f5f142bc30ab84c70e4ccd0b09a684c3d822a99d269cac850f155421fced34048c0e3869a38db5cca81cd8ffcb7469a79422c3a2438a234c7534885471c1cc856ae40461a1ec4a4c5b1d897ba50f70ff486801a482505e0ec506c22da4a6ac5a1d8417e47985aa95caffd180dab750815989d43fcf0a7ee06ce8f1825106d0")] namespace CsCheck; -using System; using System.Text; -using System.Linq; -using System.Threading; using System.Collections; -using System.Collections.Generic; using System.Runtime.CompilerServices; using System.Collections.Concurrent; using System.Diagnostics; diff --git a/Tests/Tests.csproj b/Tests/Tests.csproj index aedbdd5..cbe6902 100644 --- a/Tests/Tests.csproj +++ b/Tests/Tests.csproj @@ -1,9 +1,10 @@  net8.0 - preview + preview 999 enable + enable true true false @@ -20,5 +21,6 @@ + \ No newline at end of file