dcadenas / rubydeps

A tool to create class dependency graphs from test suites
MIT License
146 stars 10 forks source link

Need better way to exclude paths/classes #6

Open aspiers opened 10 years ago

aspiers commented 10 years ago

Firstly thanks for this gem - great work! Here's a minor suggestion...

Negative lookaheads are kind of ugly, or at least difficult to grok. It would be nice to support exclusion separately via --class-name-exclude and --path-exclude options (or similar).

In the mean time, it would be helpful to improve the documentation about how to exclude via negative lookaheads. The existing 'project_name(?!.*test)' example is OK but there are gotchas e.g. when project_name is removed it stops working (you need some kind of anchor for it to work).