-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #620 from dbrumann/examples/transitive
Add example for transitive dependencies.
- Loading branch information
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
paths: ["./Transitive"] | ||
exclude_files: [] | ||
layers: | ||
- name: Foo | ||
collectors: | ||
- type: className | ||
regex: .*\\Foo$ | ||
- name: Baz | ||
collectors: | ||
- type: className | ||
regex: .*\\Baz$ | ||
- name: Bar | ||
collectors: | ||
- type: className | ||
regex: .*\\Bar$ | ||
- name: Bat | ||
collectors: | ||
- type: className | ||
regex: .*\\Bat$ | ||
ruleset: | ||
Foo: | ||
- Bar | ||
Bar: ~ | ||
Baz: | ||
- +Foo | ||
Bat: | ||
- Foo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace examples\Transitive; | ||
|
||
class Bar | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace examples\Transitive; | ||
|
||
class Bat | ||
{ | ||
public function __construct(Foo $foo, Bar $bar) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace examples\Transitive; | ||
|
||
class Baz | ||
{ | ||
public function __construct(Foo $foo, Bar $bar) | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace examples\Transitive; | ||
|
||
class Foo | ||
{ | ||
public function __construct(Bar $bar) | ||
{ | ||
} | ||
} |