onebeyond/onebeyond-studio-file-storage

View on GitHub

Showing 9 of 30 total issues

Method DoCopyFileAsync has 46 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected override async Task DoCopyFileAsync(
        FileRecord fromFileRecord,
        FileRecord toFileRecord,
        CancellationToken cancellationToken)
    {
Severity: Minor
Found in src/OneBeyond.Studio.FileStorage.Azure/AzureBlobFileStorage.cs - About 1 hr to fix

    Method DownloadFileContentsAsZipAsync has 40 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public async Task<Stream> DownloadFileContentsAsZipAsync(
            IEnumerable<FileRecord> fileRecords,
            CancellationToken cancellationToken = default)
        {
            EnsureArg.IsNotNull(fileRecords, nameof(fileRecords));
    Severity: Minor
    Found in src/OneBeyond.Studio.FileStorage.Domain/FileStorageBase.cs - About 1 hr to fix

      Method GetSharedAccessUriFromContainer has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static Uri GetSharedAccessUriFromContainer(
              string blobFileId,
              CloudStorageAction action,
              BlobContainerClient containerClient,
              TimeSpan sharedAccessDuration)
      Severity: Minor
      Found in src/OneBeyond.Studio.FileStorage.Azure/Helpers/ContainerHelper.cs - About 1 hr to fix

        Method IsFileCoveredByOptions has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        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

              [TestMethod]
              public void TestBlacklistStrategyFailsWhenContentTypeIsListedWithEntryInSignatureList()
              {
                  var options = new MimeTypeValidationOptions
                  {

            Method UploadFileAsync has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    string fileName, 
                    Stream fileContent, 
                    string fileContentType, 
                    IDictionary<string, string>? tags = null, 
                    CancellationToken cancellationToken = default)
            Severity: Minor
            Found in src/OneBeyond.Studio.FileStorage.Azure/AzureBlobCloudStorage.cs - About 35 mins to fix

              Method UploadFileAsync has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      string fileName,
                      Stream fileContent,
                      string fileContentType,
                      IDictionary<string, string>? tags = null,
                      CancellationToken cancellationToken = default);
              Severity: Minor
              Found in src/OneBeyond.Studio.FileStorage.Domain/ICloudFileStorage.cs - About 35 mins to fix

                Method UploadFileAsync has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        string fileName,
                        byte[] fileContent,
                        string fileContentType,
                        IDictionary<string, string>? tags = null,
                        CancellationToken cancellationToken = default);
                Severity: Minor
                Found in src/OneBeyond.Studio.FileStorage.Domain/ICloudFileStorage.cs - About 35 mins to fix

                  Method UploadFileAsync has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                          string fileName, 
                          byte[] fileContent, 
                          string fileContentType, 
                          IDictionary<string, string>? tags = null, 
                          CancellationToken cancellationToken = default)
                  Severity: Minor
                  Found in src/OneBeyond.Studio.FileStorage.Azure/AzureBlobCloudStorage.cs - About 35 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language