Skip to content

Commit

Permalink
Merge pull request #822 from patrickkusebauch/patch-1
Browse files Browse the repository at this point in the history
Update docs to reflect 0.19 depfile structure
  • Loading branch information
Denis Brumann committed Feb 11, 2022
2 parents 07bc3f5 + 65c47ba commit 5b4a9b7
Showing 1 changed file with 30 additions and 29 deletions.
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

0 comments on commit 5b4a9b7

Please sign in to comment.