Skip to content
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

Update docs to reflect 0.19 depfile structure #822

Merged
merged 1 commit into from
Feb 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
59 changes: 30 additions & 29 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,35 +125,36 @@ Let's have a look at the generated file:

```yaml
# depfile.yaml
paths:
- ./src
exclude_files:
- '#.*test.*#'
layers:
-
name: Controller
collectors:
-
type: className
regex: .*Controller.*
-
name: Repository
collectors:
-
type: className
regex: .*Repository.*
-
name: Service
collectors:
-
type: className
regex: .*Service.*
ruleset:
Controller:
- Service
Service:
- Repository
Repository: ~
parameters:
paths:
- ./src
exclude_files:
- '#.*test.*#'
layers:
-
name: Controller
collectors:
-
type: className
regex: .*Controller.*
-
name: Repository
collectors:
-
type: className
regex: .*Repository.*
-
name: Service
collectors:
-
type: className
regex: .*Service.*
ruleset:
Controller:
- Service
Service:
- Repository
Repository: ~
```

By default, Deptrac will search your project's `src/` directory for classes and
Expand Down