Skip to content

add file storage service #49

add file storage service

add file storage service #49

Triggered via pull request June 5, 2024 12:49
Status Success
Total duration 56s
Artifacts

cicd.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: api/framework/Core/Storage/File/Features/FileUploadResponse.cs#L5
Change the type of property 'FileUploadResponse.Url' from 'string' to 'System.Uri' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1056)
build: api/framework/Infrastructure/Common/Extensions/EnumExtensions.cs#L21
Change 'List<string>' in 'Enum.GetDescriptionList()' to use 'Collection<T>', 'ReadOnlyCollection<T>' or 'KeyedCollection<K,V>' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1002)
build: api/framework/Infrastructure/FileStorage/LocalFileStorageService.cs#L19
Specify a culture or use an invariant version to avoid implicit dependency on current culture (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311)
build: api/framework/Infrastructure/FileStorage/LocalFileStorageService.cs#L19
The behavior of 'string.ToLower()' could vary based on the current user's locale settings. Replace this call in 'LocalFileStorageService.UploadAsync<T>(FileUploadRequestCommand, FileType,
build: api/framework/Infrastructure/FileStorage/LocalFileStorageService.cs#L32
'string.Replace(string, string?)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'FSH.Framework.Infrastructure.FileStorage.LocalFileStorageService.UploadAsync<T>(FSH.Framework.Core.Storage.File.Features.FileUploadRequestCommand?, FSH.Framework.Core.Storage.File.FileType, System.Threading.CancellationToken)' with a call to 'string.Replace(string, string?, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
build: api/framework/Infrastructure/FileStorage/LocalFileStorageService.cs#L57
'string.Replace(string, string?)' has a method overload that takes a 'StringComparison' parameter. Replace this call in 'FSH.Framework.Infrastructure.FileStorage.LocalFileStorageService.UploadAsync<T>(FSH.Framework.Core.Storage.File.Features.FileUploadRequestCommand?, FSH.Framework.Core.Storage.File.FileType, System.Threading.CancellationToken)' with a call to 'string.Replace(string, string?, System.StringComparison)' for clarity of intent. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1307)
build: api/framework/Core/Storage/File/Features/FileUploadResponse.cs#L5
Change the type of property 'FileUploadResponse.Url' from 'string' to 'System.Uri' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1056)
build: api/framework/Infrastructure/Common/Extensions/EnumExtensions.cs#L21
Change 'List<string>' in 'Enum.GetDescriptionList()' to use 'Collection<T>', 'ReadOnlyCollection<T>' or 'KeyedCollection<K,V>' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1002)
build: api/framework/Infrastructure/FileStorage/LocalFileStorageService.cs#L19
Specify a culture or use an invariant version to avoid implicit dependency on current culture (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1311)
build: api/framework/Infrastructure/FileStorage/LocalFileStorageService.cs#L19
The behavior of 'string.ToLower()' could vary based on the current user's locale settings. Replace this call in 'LocalFileStorageService.UploadAsync<T>(FileUploadRequestCommand, FileType,