Skip to content

chore: update detrac.yaml file for deptrac/deptrac #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/deptrac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
paths:
- '**.php'
- 'composer.*'
- 'depfile.yaml'
- 'deptrac.yaml'
- '.github/workflows/deptrac.yml'
push:
branches:
- develop
paths:
- '**.php'
- 'composer.*'
- 'depfile.yaml'
- 'deptrac.yaml'
- '.github/workflows/deptrac.yml'

permissions:
Expand Down Expand Up @@ -70,5 +70,5 @@ jobs:

- name: Trace dependencies
run: |
composer require --dev qossmic/deptrac-shim
composer require --dev deptrac/deptrac
vendor/bin/deptrac analyze --cache-file=build/deptrac.cache
84 changes: 42 additions & 42 deletions deptrac.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
parameters:
deptrac:
paths:
- ./src/
- ./vendor/codeigniter4/framework/system/
Expand All @@ -9,90 +9,90 @@ parameters:
collectors:
- type: bool
must:
- type: className
regex: .*[A-Za-z]+Model$
- type: class
value: .*[A-Za-z]+Model$
must_not:
- type: directory
regex: vendor/.*
- type: directory
value: vendor/.*
- name: Vendor Model
collectors:
- type: bool
must:
- type: className
regex: .*[A-Za-z]+Model$
- type: directory
regex: vendor/.*
- type: class
value: .*[A-Za-z]+Model$
- type: directory
value: vendor/.*
- name: Controller
collectors:
- type: bool
must:
- type: className
regex: .*\/Controllers\/.*
- type: class
value: .*\/Controllers\/.*
must_not:
- type: directory
regex: vendor/.*
- type: directory
value: vendor/.*
- name: Vendor Controller
collectors:
- type: bool
must:
- type: className
regex: .*\/Controllers\/.*
- type: directory
regex: vendor/.*
- type: class
value: .*\/Controllers\/.*
- type: directory
value: vendor/.*
- name: Config
collectors:
- type: bool
must:
- type: directory
regex: app/Config/.*
- type: directory
value: app/Config/.*
must_not:
- type: className
regex: .*Services
- type: directory
regex: vendor/.*
- type: class
value: .*Services
- type: directory
value: vendor/.*
- name: Vendor Config
collectors:
- type: bool
must:
- type: directory
regex: vendor/.*/Config/.*
- type: directory
value: vendor/.*/Config/.*
must_not:
- type: className
regex: .*Services
- type: class
value: .*Services
- name: Entity
collectors:
- type: bool
must:
- type: directory
regex: app/Entities/.*
- type: directory
value: app/Entities/.*
must_not:
- type: directory
regex: vendor/.*
- type: directory
value: vendor/.*
- name: Vendor Entity
collectors:
- type: bool
must:
- type: directory
regex: vendor/.*/Entities/.*
- type: directory
value: vendor/.*/Entities/.*
- name: View
collectors:
- type: bool
must:
- type: directory
regex: app/Views/.*
- type: directory
value: app/Views/.*
must_not:
- type: directory
regex: vendor/.*
- type: directory
value: vendor/.*
- name: Vendor View
collectors:
- type: bool
must:
- type: directory
regex: vendor/.*/Views/.*
- type: directory
value: vendor/.*/Views/.*
- name: Service
collectors:
- type: className
regex: .*Services.*
- type: class
value: .*Services.*
ruleset:
Entity:
- Config
Expand Down Expand Up @@ -153,4 +153,4 @@ parameters:
- Vendor Entity
- Vendor Model
- Vendor View
skip_violations:
skip_violations: []