Skip to content

Commit

Permalink
New LGTM suppression syntax - BlobsStorage (#6782)
Browse files Browse the repository at this point in the history
* New LGTM suppression syntax - BlobsStorage

* More LGTM updates

---------

Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
  • Loading branch information
tracyboehrer and Tracy Boehrer authored May 7, 2024
1 parent 91d6a28 commit c5b5aa7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/Microsoft.Bot.Builder.Azure.Blobs/BlobsStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public BlobsStorage(string dataConnectionString, string containerName, StorageTr

_jsonSerializer = jsonSerializer ?? JsonSerializer.Create(new JsonSerializerSettings
{
TypeNameHandling = TypeNameHandling.All, // lgtm [cs/unsafe-type-name-handling]
TypeNameHandling = TypeNameHandling.All, // CodeQL [cs/unsafe-type-name-handling] Serialization to and from a trusted source for state storage.
MaxDepth = null,
});

Expand Down Expand Up @@ -120,7 +120,7 @@ public BlobsStorage(Uri blobContainerUri, TokenCredential tokenCredential, Stora

_jsonSerializer = jsonSerializer ?? JsonSerializer.Create(new JsonSerializerSettings
{
TypeNameHandling = TypeNameHandling.All, // lgtm [cs/unsafe-type-name-handling]
TypeNameHandling = TypeNameHandling.All, // CodeQL [cs/unsafe-type-name-handling] Serialization to and from a trusted source for state storage.
MaxDepth = null,
});

Expand All @@ -146,7 +146,7 @@ internal BlobsStorage(BlobContainerClient containerClient, JsonSerializer jsonSe

_jsonSerializer = jsonSerializer ?? JsonSerializer.Create(new JsonSerializerSettings
{
TypeNameHandling = TypeNameHandling.All, // lgtm [cs/unsafe-type-name-handling]
TypeNameHandling = TypeNameHandling.All, // CodeQL [cs/unsafe-type-name-handling] Serialization to and from a trusted source for state storage.
MaxDepth = null,
});

Expand Down

0 comments on commit c5b5aa7

Please sign in to comment.