Skip to content

Commit

Permalink
Improve deptrac configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg authored and NikolaIvanovski committed Dec 19, 2023
1 parent be9d5ae commit 2ccd852
Showing 1 changed file with 16 additions and 25 deletions.
41 changes: 16 additions & 25 deletions deptrac.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
deptrac:
paths:
- ./src/
- ./vendor/oxid-esales/oxideshop-ce/source/
- ./vendor/oxid-esales/oxideshop-unified-namespace-generator/
# - ./vendor/oxid-esales/oxideshop-ce/source/
# - ./vendor/oxid-esales/oxideshop-unified-namespace-generator/
layers:
- name: Controller
collectors:
- type: class
value: .*GraphQL.*Controller\\.*
- type: classLike
value: OxidEsales\\.*GraphQL.*Controller\\.*
- name: Service
collectors:
- type: class
value: .*GraphQL.*Service\\.*
- type: classLike
value: OxidEsales\\.*GraphQL.*Service\\.*
- name: Infrastructure
collectors:
- type: class
value: .*GraphQL.*Repository\\.*
- type: class
value: .*GraphQL.*Infrastructure\\.*
- type: classLike
value: OxidEsales\\.*GraphQL.*Repository\\.*
- type: classLike
value: OxidEsales\\.*GraphQL.*Infrastructure\\.*
- name: InternalService
collectors:
- type: directory
regex: .*vendor/oxid-esales/oxideshop-ce/source/Internal.*
- type: classLike
regex: OxidEsales\\Eshop.*\\Internal\\.*
- name: Core
collectors:
- type: directory
regex: .*vendor/oxid-esales/oxideshop-ce/source/(Application|Core).*
# regex: .*vendor/oxid-esales/oxideshop-ce/source/^(?!Internal).*
- type: directory
value: .*vendor/oxid-esales/oxideshop-unified-namespace-generator/.*

- type: classLike
regex: OxidEsales\\Eshop(\w+)?\\(?!Internal)

ruleset:
Controller:
Expand All @@ -40,11 +36,6 @@ deptrac:
Infrastructure:
- Core
- InternalService
InternalService:
- InternalService
- Core
Core:
- InternalService
- Core

Core: ~
InternalService: ~

0 comments on commit 2ccd852

Please sign in to comment.