feat: access control refactor for user password enforement #148
Codacy Production / Codacy Static Code Analysis
succeeded
Feb 2, 2024 in 0s
Your pull request is up to standards!
Here is an overview of what got changed by this pull request:
Complexity increasing per file
==============================
- packages/nestjs-user/src/user.controller.pw.e2e-spec.ts 2
- packages/nestjs-access-control/src/enums/action.enum.spec.ts 1
- packages/nestjs-access-control/src/access-control.context.spec.ts 1
- packages/nestjs-access-control/src/decorators/access-control-query.decorator.spec.ts 1
- packages/nestjs-access-control/src/decorators/access-control-query.decorator.ts 1
- packages/nestjs-user/src/services/user-password.service.ts 5
- packages/nestjs-access-control/src/enums/possession.enum.spec.ts 1
- packages/nestjs-user/src/services/user-access-query.service.ts 4
- packages/nestjs-access-control/src/access-control.context.ts 4
- packages/nestjs-access-control/src/access-control.module-definition.ts 1
- packages/nestjs-password/src/config/password-default.config.ts 1
- packages/nestjs-access-control/src/access-control.guard.ts 3
Complexity decreasing per file
==============================
+ packages/nestjs-access-control/src/decorators/access-control-read-one.decorator.ts -1
+ packages/nestjs-access-control/src/decorators/access-control-delete-one.decorator.ts -1
+ packages/nestjs-access-control/src/decorators/access-control-update-one.decorator.ts -1
+ packages/nestjs-access-control/src/decorators/access-control-read-many.decorator.ts -1
+ packages/nestjs-access-control/src/decorators/access-control-create-one.decorator.ts -1
Clones added
============
- packages/nestjs-user/src/user.controller.pw.e2e-spec.ts 5
- packages/nestjs-access-control/src/access-control.context.spec.ts 2
- packages/nestjs-access-control/src/access-control.module-definition.ts 1
Clones removed
==============
+ packages/nestjs-user/src/user.controller.e2e-spec.ts -2
+ packages/nestjs-access-control/src/decorators/access-control-recover-one.decorator.spec.ts -9
+ packages/nestjs-access-control/src/decorators/access-control-create-many.decorator.spec.ts -5
+ packages/nestjs-access-control/src/decorators/access-control-replace-one.decorator.spec.ts -5
+ packages/nestjs-access-control/src/decorators/access-control-read-one.decorator.ts -3
+ packages/nestjs-access-control/src/decorators/access-control-delete-one.decorator.ts -2
+ packages/nestjs-access-control/src/decorators/access-control-read-one.decorator.spec.ts -5
+ packages/nestjs-access-control/src/decorators/access-control-update-one.decorator.ts -5
+ packages/nestjs-access-control/src/decorators/access-control-update-one.decorator.spec.ts -21
+ packages/nestjs-access-control/src/decorators/access-control-read-many.decorator.ts -2
+ packages/nestjs-access-control/src/decorators/access-control-create-one.decorator.spec.ts -5
+ packages/nestjs-access-control/src/decorators/access-control-delete-one.decorator.spec.ts -3
+ packages/nestjs-access-control/src/decorators/access-control-read-many.decorator.spec.ts -5
+ packages/nestjs-access-control/src/access-control.guard.spec.ts -2
+ packages/nestjs-password/src/services/password-creation.service.ts -3
+ packages/nestjs-password/src/interfaces/password-creation-service.interface.ts -1
See the complete overview on Codacy
Loading