Showing 9 of 30 total issues
Method DoCopyFileAsync
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
protected override async Task DoCopyFileAsync(
FileRecord fromFileRecord,
FileRecord toFileRecord,
CancellationToken cancellationToken)
{
Method DownloadFileContentsAsZipAsync
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async Task<Stream> DownloadFileContentsAsZipAsync(
IEnumerable<FileRecord> fileRecords,
CancellationToken cancellationToken = default)
{
EnsureArg.IsNotNull(fileRecords, nameof(fileRecords));
Method GetSharedAccessUriFromContainer
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static Uri GetSharedAccessUriFromContainer(
string blobFileId,
CloudStorageAction action,
BlobContainerClient containerClient,
TimeSpan sharedAccessDuration)
Method IsFileCoveredByOptions
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private bool IsFileCoveredByOptions(Func<byte[], int, int> getContentSignature, string mimeType)
{
var mimeTypeSignatures = ListSignaturesByMimeType(mimeType);
if (!mimeTypeSignatures.Any())
Method TestBlacklistStrategyFailsWhenContentTypeIsListedWithEntryInSignatureList
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
[TestMethod]
public void TestBlacklistStrategyFailsWhenContentTypeIsListedWithEntryInSignatureList()
{
var options = new MimeTypeValidationOptions
{
Method UploadFileAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string fileName,
Stream fileContent,
string fileContentType,
IDictionary<string, string>? tags = null,
CancellationToken cancellationToken = default)
Method UploadFileAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string fileName,
Stream fileContent,
string fileContentType,
IDictionary<string, string>? tags = null,
CancellationToken cancellationToken = default);
Method UploadFileAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string fileName,
byte[] fileContent,
string fileContentType,
IDictionary<string, string>? tags = null,
CancellationToken cancellationToken = default);
Method UploadFileAsync
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
string fileName,
byte[] fileContent,
string fileContentType,
IDictionary<string, string>? tags = null,
CancellationToken cancellationToken = default)