-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable regex for directory directives (#1452)
* Enable regex for directory directives The code was already ready for that but escaped the potential regexp declared in the reek configuration, actually disabling regexp. This commit fixes this by removing the call to escape. This allows this kind of declaration in the configuration file: ```yaml --- [...] "engines/.*/test/.*": InstanceVariableAssumption: enabled: false UncommunicativeVariableName: enabled: false ``` * Support glob like syntax for directory patterns This is a mix of currently supported patterns and `glob` patterns. Currently supported patterns assumes that declared directories includes sub-directories as well. `glob` like patterns act like Dir.glob, but are actually backed by a Regexp, this may lead to some different behaviour. * Add documentation about Dir.glob pattern for `directory` directives * Escape . characters This make sure that the directive does not match an arbitrary character that is not a `.`. * Fix code alignment
- Loading branch information
Showing
3 changed files
with
78 additions
and
6 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