Skip to content

Commit

Permalink
Add ignore warning pragmas to example and unit test wrapper list files.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingFlow committed Jun 6, 2024
1 parent 0d6d929 commit 2eafdea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DecoratorGenerator.UnitTests/WrapperList.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
using Amazon.DynamoDBv2.DataModel;

#pragma warning disable IDE0044 // Add readonly modifier
#pragma warning disable IDE0051 // Remove unused private members

public struct WrapperList
{
IDynamoDBContext dynamoDBContext;

Check warning on line 8 in DecoratorGenerator.UnitTests/WrapperList.cs

View workflow job for this annotation

GitHub Actions / Unit tests (8.0.x)

The field 'WrapperList.dynamoDBContext' is never used
}

#pragma warning restore IDE0051 // Remove unused private members
#pragma warning restore IDE0044 // Add readonly modifier
6 changes: 6 additions & 0 deletions SampleLibrary/WrapperList.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
using Amazon.DynamoDBv2.DataModel;

#pragma warning disable IDE0044 // Add readonly modifier
#pragma warning disable IDE0051 // Remove unused private members

public struct WrapperList
{
IDynamoDBContext dynamoDBContext;

Check warning on line 8 in SampleLibrary/WrapperList.cs

View workflow job for this annotation

GitHub Actions / Unit tests (8.0.x)

The field 'WrapperList.dynamoDBContext' is never used

Check warning on line 8 in SampleLibrary/WrapperList.cs

View workflow job for this annotation

GitHub Actions / Unit tests (8.0.x)

The field 'WrapperList.dynamoDBContext' is never used
}

#pragma warning restore IDE0051 // Remove unused private members
#pragma warning restore IDE0044 // Add readonly modifier

0 comments on commit 2eafdea

Please sign in to comment.