Skip to content

Commit fbbecc7

Browse files
Suppress code analysis warnings
1 parent ca6c71e commit fbbecc7

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/Umbraco.StorageProviders.AzureBlob/IO/AzureBlobFileSystem.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics.CodeAnalysis;
4-
using System.IO;
5-
using System.Linq;
6-
using System.Threading.Tasks;
71
using Azure;
82
using Azure.Storage.Blobs;
93
using Azure.Storage.Blobs.Models;
@@ -59,6 +53,7 @@ public AzureBlobFileSystem(AzureBlobFileSystemOptions options, IHostingEnvironme
5953
/// <exception cref="System.ArgumentNullException"><paramref name="blobContainerClient" /> is <c>null</c>.</exception>
6054
/// <exception cref="System.ArgumentNullException"><paramref name="ioHelper" /> is <c>null</c>.</exception>
6155
/// <exception cref="System.ArgumentNullException"><paramref name="contentTypeProvider" /> is <c>null</c>.</exception>
56+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1054:URI-like parameters should not be strings", Justification = "This parameter is only a part of the URL.")]
6257
public AzureBlobFileSystem(string rootUrl, BlobContainerClient blobContainerClient, IIOHelper ioHelper, IContentTypeProvider contentTypeProvider, string? containerRootPath = null)
6358
{
6459
ArgumentNullException.ThrowIfNull(rootUrl);
@@ -263,6 +258,7 @@ public bool FileExists(string path)
263258

264259
/// <inheritdoc />
265260
/// <exception cref="System.ArgumentNullException"><paramref name="fullPathOrUrl" /> is <c>null</c>.</exception>
261+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1054:URI-like parameters should not be strings", Justification = "This method is inherited from an interface.")]
266262
public string GetRelativePath(string fullPathOrUrl)
267263
{
268264
ArgumentNullException.ThrowIfNull(fullPathOrUrl);
@@ -293,6 +289,7 @@ public string GetFullPath(string path)
293289

294290
/// <inheritdoc />
295291
/// <exception cref="System.ArgumentNullException"><paramref name="path" /> is <c>null</c>.</exception>
292+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Design", "CA1055:URI-like return values should not be strings", Justification = "This method is inherited from an interface.")]
296293
public string GetUrl(string? path)
297294
{
298295
ArgumentNullException.ThrowIfNull(path);

0 commit comments

Comments
 (0)