Skip to content

Commit

Permalink
Add missing code decorations (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp authored Jun 18, 2024
1 parent 270f065 commit 720169d
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>5.5.0</Version>
<Version>5.5.1</Version>
<AssemblyVersion>1.0.0</AssemblyVersion>
<PackageTags>Polyfill</PackageTags>
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Nullable/NotNullIfNotNullAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated />
#pragma warning disable

#if NETSTANDARD2_0 || NETFRAMEWORK || NETCOREAPP2X

Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Nullable/NotNullWhenAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated />
#pragma warning disable

#if NETSTANDARD2_0 || NETFRAMEWORK || NETCOREAPP2X

Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/BytePolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/DoublePolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/IntPolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/LongPolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/SBytePolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/ShortPolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/UIntPolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/ULongPolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
1 change: 1 addition & 0 deletions src/Polyfill/Numbers/UShortPolyfill.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// <auto-generated />
#pragma warning disable

// ReSharper disable RedundantUsingDirective
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated />
#pragma warning disable

#if !NET6_0_OR_GREATER

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated />
#pragma warning disable

#if !NET6_0_OR_GREATER

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated />
#pragma warning disable

#if !NET5_0_OR_GREATER

Expand Down
8 changes: 7 additions & 1 deletion src/Tests/SanityChecks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ public void CodeChecks()
{
var dir = Path.Combine(SolutionDirectoryFinder.Find(), "Polyfill");
var errors = new List<string>();
foreach (var file in Directory.EnumerateFiles(dir, "*.cs"))
foreach (var file in Directory.EnumerateFiles(dir, "*.cs", SearchOption.AllDirectories))
{
var directoryName = Path.GetDirectoryName(file)!;
if (directoryName.Contains("bin") || directoryName.Contains("obj"))
{
continue;
}

var content = File.ReadAllText(file);
var requiredText = new[]
{
Expand Down

0 comments on commit 720169d

Please sign in to comment.