feat: Extend InviteUserCommandHandler to include a virtual method for creating a contact. #301
Annotations
10 warnings
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/ProfileSchema.cs(261,1): warning S103: Split this 350 characters long line (which is greater than 300 authorized). (https://rules.sonarsource.com/csharp/RSPEC-103) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Authorization/ProfileAuthorizationHandler.cs(31,39): warning S3776: Refactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Authorization/ProfileAuthorizationHandler.cs(31,39): warning S1541: The Cyclomatic Complexity of this method is 30 which is greater than 10 authorized. (https://rules.sonarsource.com/csharp/RSPEC-1541) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Authorization/ProfileAuthorizationHandler.cs(31,39): warning S138: This method 'HandleRequirementAsync' has 135 lines, which is greater than the 80 lines authorized. Split it into smaller methods. (https://rules.sonarsource.com/csharp/RSPEC-138) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Commands/ChangeOrganizationContactRoleCommandHandler.cs(68,13): warning S2259: 'user' is null on at least one execution path. (https://rules.sonarsource.com/csharp/RSPEC-2259) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/VendorType.cs(14,12): warning S1541: The Cyclomatic Complexity of this constructor is 12 which is greater than 10 authorized. (https://rules.sonarsource.com/csharp/RSPEC-1541) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Extensions/MemberExtensions.cs(18,64): warning S109: Assign this magic number '20' to a well-named variable or constant, and use that instead. (https://rules.sonarsource.com/csharp/RSPEC-109) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Commands/InviteUserCommandHandler.cs(51,59): warning S3776: Refactor this method to reduce its Cognitive Complexity from 27 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Commands/InviteUserCommandHandler.cs(81,25): warning S134: Refactor this code to not nest more than 3 control flow statements. (https://rules.sonarsource.com/csharp/RSPEC-134) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Build
/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/Schemas/AddressTypeEnum.cs(12,46): warning S109: Assign this magic number '2' to a well-named variable or constant, and use that instead. (https://rules.sonarsource.com/csharp/RSPEC-109) [/home/runner/work/vc-module-profile-experience-api/vc-module-profile-experience-api/src/VirtoCommerce.ProfileExperienceApiModule.Data/VirtoCommerce.ProfileExperienceApiModule.Data.csproj]
|
Loading