You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,18 @@ packwerk.check(
91
91
)
92
92
```
93
93
94
+
### Supporting new violation types
95
+
By default, only `dependency` and `privacy` violation types are supported. If you wish to use other violation types you'll need to provide them when calling `check`:
96
+
```ruby
97
+
packwerk.check(
98
+
violation_types:%w[dependency privacy layer]
99
+
)
100
+
```
101
+
102
+
Any violations not included in this list will be ignored.
103
+
104
+
You will also most likely want to customize the offenses formatter and provide specific feedback for the new violation types.
105
+
94
106
## package_todo_yml_changes.check
95
107

0 commit comments