modifications to the rules & configuration --init generates by default when setting up dependency-cruiser in a new repository:
adds .jsx, .tsx, .mts and .cts extensions to some fo
uses non-capturing groups in regexes that don't need groups to be capturing
remove regex grouping where it isn't needed (either to group expressions or to make a regex more readable)
also consider apps and libs as folders to collapse to for the archi reporter config in addition to app and lib (and other generic folder names like src etc).
apply some of these to dependency-cruiser own .dependency-cruiser.json
Motivation and Context
fixes #916
making regex groupings non-capturing where they aren't needed for capturing things should make them faster to process (not measured as I don't expect much of an actual difference here).
How Has This Been Tested?
[x] green ci
[x] generate a .dependency-cruiser.js and with that do a self-cruise
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Documentation only change
[ ] Refactor (non-breaking change which fixes an issue without changing functionality)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
[x] :book:
My change doesn't require a documentation update, or ...
it does and I have updated it
[x] :balance_scale:
The contribution will be subject to The MIT license, and I'm OK with that.
Description
--init
generates by default when setting up dependency-cruiser in a new repository:apps
andlibs
as folders to collapse to for thearchi
reporter config in addition toapp
andlib
(and other generic folder names likesrc
etc).Motivation and Context
How Has This Been Tested?
Types of changes
Checklist
[x] :book:
[x] :balance_scale: