Update code_cover.yml #101
Annotations
42 warnings
Seed Data Project coverage report:
MyRestaurant.Business/Errors/RestException.cs#L34
Member 'RestException.GetObjectData(SerializationInfo, StreamingContext)' overrides obsolete member 'Exception.GetObjectData(SerializationInfo, StreamingContext)'. Add the Obsolete attribute to 'RestException.GetObjectData(SerializationInfo, StreamingContext)'.
|
Seed Data Project coverage report:
MyRestaurant.Business/Errors/RestException.cs#L23
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
|
Seed Data Project coverage report:
MyRestaurant.Business/Errors/RestException.cs#L41
'Exception.GetObjectData(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
|
Seed Data Project coverage report:
MyRestaurant.Business/Repositories/AccountRepository.cs#L61
Possible null reference argument for parameter 'userName' in 'Task<User?> UserManager<User>.FindByNameAsync(string userName)'.
|
Seed Data Project coverage report:
MyRestaurant.Business/Repositories/AccountRepository.cs#L70
Possible null reference argument for parameter 'roles' in 'Task<IdentityResult> UserManager<User>.AddToRolesAsync(User user, IEnumerable<string> roles)'.
|
Seed Data Project coverage report:
MyRestaurant.Api/Controllers/V1/Controllers/SupplierController.cs#L21
Possible null reference argument for parameter 'name' in 'Task<SupplierEnvelop> ISupplierRepository.GetSuppliersAsync(int? limit, int? offset, string name, string city, string contactPerson)'.
|
Seed Data Project coverage report:
MyRestaurant.Api/Controllers/V1/Controllers/SupplierController.cs#L21
Possible null reference argument for parameter 'city' in 'Task<SupplierEnvelop> ISupplierRepository.GetSuppliersAsync(int? limit, int? offset, string name, string city, string contactPerson)'.
|
Seed Data Project coverage report:
MyRestaurant.Api/Controllers/V1/Controllers/SupplierController.cs#L21
Possible null reference argument for parameter 'contactPerson' in 'Task<SupplierEnvelop> ISupplierRepository.GetSuppliersAsync(int? limit, int? offset, string name, string city, string contactPerson)'.
|
Seed Data Project coverage report:
MyRestaurant.Api/Controllers/V1/Controllers/AccountController.cs#L88
Possible null reference return.
|
Seed Data Project coverage report:
MyRestaurant.Api/Program.cs#L92
Possible null reference argument for parameter 's' in 'byte[] Encoding.GetBytes(string s)'.
|
API Project coverage report:
MyRestaurant.Api.Tests/Controllers/V1/Fixtures/PurchaseOrderControllerFixture.cs#L56
Cannot convert null literal to non-nullable reference type.
|
API Project coverage report:
MyRestaurant.Api.Tests/Controllers/V1/Fixtures/PurchaseOrderControllerFixture.cs#L94
Cannot convert null literal to non-nullable reference type.
|
API Project coverage report:
MyRestaurant.Api.Tests/Controllers/V1/Fixtures/PurchaseOrderControllerFixture.cs#L116
Cannot convert null literal to non-nullable reference type.
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/Account/LoginDtoValidatorTest.cs#L36
Cannot convert null literal to non-nullable reference type.
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/Account/RegisterAdminDtoValidatorTest.cs#L69
Cannot convert null literal to non-nullable reference type.
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/Account/RefreshDtoValidatorTest.cs#L18
Null should not be used for type parameter 'value' of type 'string'. Use a non-null value, or convert the parameter to a nullable type. (https://xunit.net/xunit.analyzers/rules/xUnit1012)
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/UnitOfMeasure/EditUnitOfMeasureDtoValidatorTest.cs#L17
Null should not be used for type parameter 'value' of type 'string'. Use a non-null value, or convert the parameter to a nullable type. (https://xunit.net/xunit.analyzers/rules/xUnit1012)
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/Account/LoginDtoValidatorTest.cs#L62
Null should not be used for type parameter 'value' of type 'string'. Use a non-null value, or convert the parameter to a nullable type. (https://xunit.net/xunit.analyzers/rules/xUnit1012)
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/Account/RegisterAdminDtoValidatorTest.cs#L17
Null should not be used for type parameter 'value' of type 'string'. Use a non-null value, or convert the parameter to a nullable type. (https://xunit.net/xunit.analyzers/rules/xUnit1012)
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/Account/RegisterAdminDtoValidatorTest.cs#L34
Null should not be used for type parameter 'value' of type 'string'. Use a non-null value, or convert the parameter to a nullable type. (https://xunit.net/xunit.analyzers/rules/xUnit1012)
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/Account/RegisterAdminDtoValidatorTest.cs#L95
Null should not be used for type parameter 'value' of type 'string'. Use a non-null value, or convert the parameter to a nullable type. (https://xunit.net/xunit.analyzers/rules/xUnit1012)
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/UnitOfMeasure/CreateUnitOfMeasureDtoValidatorTest.cs#L17
Null should not be used for type parameter 'value' of type 'string'. Use a non-null value, or convert the parameter to a nullable type. (https://xunit.net/xunit.analyzers/rules/xUnit1012)
|
Business Project coverage report:
MyRestaurant.Business.Tests/Validators/V1/Account/RegisterNormalDtoValidatorTest.cs#L18
Null should not be used for type parameter 'value' of type 'string'. Use a non-null value, or convert the parameter to a nullable type. (https://xunit.net/xunit.analyzers/rules/xUnit1012)
|
Service Project coverage report:
MyRestaurant.Core/AuditExtensions.cs#L9
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
|
Service Project coverage report:
MyRestaurant.Services/UserAccessor/UserAccessorService.cs#L35
Possible null reference assignment.
|
Service Project coverage report:
MyRestaurant.Services/UserAccessor/UserAccessorService.cs#L36
Possible null reference assignment.
|
Service Project coverage report:
MyRestaurant.Services/UserAccessor/UserAccessorService.cs#L37
Possible null reference assignment.
|
Service Project coverage report:
MyRestaurant.Services/JwtToken/JwtTokenService.cs#L98
Possible null reference argument for parameter 'value' in 'Claim.Claim(string type, string value)'.
|
Service Project coverage report:
MyRestaurant.Services.Tests/UserAccessor/UserAccessorServiceTest.cs#L71
Possible null reference argument for parameter 'value' in 'IReturnsResult<IHttpContextAccessor> IReturns<IHttpContextAccessor, ClaimsPrincipal>.Returns(ClaimsPrincipal value)'.
|
Service Project coverage report:
MyRestaurant.Services.Tests/JwtToken/JwtTokenServiceTest.cs#L85
Possible null reference argument for parameter 'type' in 'Claim.Claim(string type, string value)'.
|
Service Project coverage report:
MyRestaurant.Services.Tests/JwtToken/JwtTokenServiceTest.cs#L85
Possible null reference argument for parameter 'value' in 'Claim.Claim(string type, string value)'.
|
Service Project coverage report:
MyRestaurant.Services.Tests/JwtToken/JwtTokenServiceTest.cs#L90
Argument of type 'List<string?>' cannot be used for parameter 'value' of type 'IList<string>' in 'IReturnsResult<UserManager<User>> ReturnsExtensions.ReturnsAsync<UserManager<User>, IList<string>>(IReturns<UserManager<User>, Task<IList<string>>> mock, IList<string> value)' due to differences in the nullability of reference types.
|
Build For Sonar Scan:
MyRestaurant.Models/MyRestaurantObject.cs#L3
Remove this empty class, write its code or make it an "interface". (https://rules.sonarsource.com/csharp/RSPEC-2094)
|
Build For Sonar Scan:
MyRestaurant.Core/AuditExtensions.cs#L9
The type 'TKey' cannot be used as type parameter 'TKey' in the generic type or method 'Dictionary<TKey, TValue>'. Nullability of type argument 'TKey' doesn't match 'notnull' constraint.
|
Build For Sonar Scan:
MyRestaurant.Core/Configurations/Mapping/GoodsReceivedNoteFreeItemMapping.cs#L16
Define a constant instead of using this literal 'decimal(18, 2)' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build For Sonar Scan:
MyRestaurant.Core/Configurations/Mapping/GoodsReceivedNoteItemMapping.cs#L16
Define a constant instead of using this literal 'decimal(18, 2)' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build For Sonar Scan:
MyRestaurant.Core/Migrations/20201224065200_InitialCreate.cs#L10
Define a constant instead of using this literal 'AspNetRoles' 5 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build For Sonar Scan:
MyRestaurant.Core/Migrations/20201224065200_InitialCreate.cs#L13
Define a constant instead of using this literal 'uniqueidentifier' 8 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build For Sonar Scan:
MyRestaurant.Core/Migrations/20201224065200_InitialCreate.cs#L14
Define a constant instead of using this literal 'nvarchar(256)' 6 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build For Sonar Scan:
MyRestaurant.Core/Migrations/20201224065200_InitialCreate.cs#L16
Define a constant instead of using this literal 'nvarchar(max)' 13 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build For Sonar Scan:
MyRestaurant.Core/Migrations/20201224065200_InitialCreate.cs#L24
Define a constant instead of using this literal 'AspNetUsers' 8 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Build For Sonar Scan:
MyRestaurant.Core/Migrations/20201224065200_InitialCreate.cs#L109
Define a constant instead of using this literal 'nvarchar(450)' 4 times. (https://rules.sonarsource.com/csharp/RSPEC-1192)
|
Loading