Skip to content

Commit

Permalink
implicit usings
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLloyd committed Dec 4, 2023
1 parent fd68d1c commit 9415c68
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 54 deletions.
22 changes: 1 addition & 21 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 0 additions & 4 deletions CsCheck/Causal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@

namespace CsCheck;

using System;
using System.Text;
using System.Linq;
using System.Threading;
using System.Diagnostics;
using System.Collections.Generic;

/// <summary>Causal profiling functionality.</summary>
public static class Causal
Expand Down
6 changes: 0 additions & 6 deletions CsCheck/Check.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/// <summary>Main random testing Check functions.</summary>
public static partial class Check
Expand Down
8 changes: 4 additions & 4 deletions CsCheck/CsCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ CsCheck also makes concurrency, performance and regression testing simple and fa
<PackageProjectUrl>http://github.com/AnthonyLloyd/CsCheck</PackageProjectUrl>
<PackageIcon>CsCheck.png</PackageIcon>
<PackageTags>quickcheck;random;model-based;metamorphic;concurrency;performance;causal-profiling;regression;testing</PackageTags>
<Version>3.0.1</Version>
<Version>3.1.0</Version>
<PackageReleaseNotes>
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.
</PackageReleaseNotes>
<TargetFramework>net6.0</TargetFramework>
<LangVersion>preview</LangVersion>
<WarningLevel>999</WarningLevel>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<SignAssembly>true</SignAssembly>
<DelaySign>false</DelaySign>
Expand Down
4 changes: 0 additions & 4 deletions CsCheck/Dbg.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions CsCheck/Gen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

namespace CsCheck;

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;

Expand Down
4 changes: 0 additions & 4 deletions CsCheck/Hash.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 0 additions & 2 deletions CsCheck/PCG.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

namespace CsCheck;

using System;
using System.Threading;
using System.Diagnostics;
using System.Numerics;

Expand Down
2 changes: 0 additions & 2 deletions CsCheck/Timer.cs
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 0 additions & 4 deletions CsCheck/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion Tests/Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<LangVersion>preview</LangVersion>
<LangVersion>preview</LangVersion>
<WarningLevel>999</WarningLevel>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsPackable>false</IsPackable>
Expand All @@ -20,5 +21,6 @@
<PackageReference Include="Meziantou.Xunit.ParallelTestFramework" Version="2.1.0" />
<PackageReference Include="Rationals" Version="2.3.0" />
<ProjectReference Include="..\CsCheck\CsCheck.csproj" />
<Using Include="Xunit" />
</ItemGroup>
</Project>

0 comments on commit 9415c68

Please sign in to comment.