-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(init): adds often used suffixes to some of the initial rules (#917)
## Description - 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)
- Loading branch information
Showing
4 changed files
with
63 additions
and
32 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
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
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
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