Rename Mongo-specific repository methods to storage-neutral names, reduce overloads #116
build.yml
on: pull_request
Build and analyze
10m 29s
Annotations
11 warnings
|
Build and analyze
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-dotnet@v4, actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Build and analyze:
src/Business/Grand.Business.Catalog/Services/Products/InventoryManageService.cs#L346
Merge this if statement with the enclosing one.
|
|
Build and analyze:
src/Business/Grand.Business.Catalog/Services/Products/InventoryManageService.cs#L278
Refactor this method to reduce its Cognitive Complexity from 51 to the 15 allowed.
|
|
Build and analyze:
src/Business/Grand.Business.Catalog/Services/Products/InventoryManageService.cs#L172
Refactor this method to reduce its Cognitive Complexity from 19 to the 15 allowed.
|
|
Build and analyze:
src/Business/Grand.Business.Catalog/Services/Products/ProductService.cs#L879
Loops should be simplified using the "Where" LINQ method
|
|
Build and analyze:
src/Business/Grand.Business.Catalog/Services/Products/ProductService.cs#L867
Refactor this method to reduce its Cognitive Complexity from 22 to the 15 allowed.
|
|
Build and analyze:
src/Business/Grand.Business.Catalog/Services/Products/SpecificationAttributeService.cs#L170
Rename parameter 'specificationAttributeOptionId' to 'specificationAttributeOption' to match the interface declaration.
|
|
Build and analyze:
src/Business/Grand.Business.Common/Utilities/PowerExcelMapper.cs#L50
'PowerExcelExtensions.Rows(ISheet)' is obsolete: 'This method is obsolete. Use the new method instead.'
|
|
Build and analyze:
src/Core/Grand.Data/LiteDb/LiteDBRepository.cs#L431
'System.NullReferenceException' should not be thrown by user code.
|
|
Build and analyze:
src/Core/Grand.Data/LiteDb/LiteDBRepository.cs#L284
Remove the unused local variable 'bsonValue'.
|
|
Build and analyze:
src/Core/Grand.Data/LiteDb/LiteDBRepository.cs#L287
Use a comparison to 'default(U)' instead or add a constraint to 'U' so that it can't be a value type.
|