diff options
| author | Markus Reiter | 2016-09-23 22:03:23 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-24 11:58:12 +0200 |
| commit | 3e4f9559d73010e78b8bdeda483914901f2fbcc6 (patch) | |
| tree | 0a43cae6cd7da781eb1c3e5c5a22f98e97163096 /Library | |
| parent | 687f0fcf721c8e36f32570ed72d0988a6eaf986f (diff) | |
| download | brew-3e4f9559d73010e78b8bdeda483914901f2fbcc6.tar.bz2 | |
Simplify Style/FileName regex.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/.rubocop_rules.yml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/.rubocop_rules.yml b/Library/.rubocop_rules.yml index e8a966e60..b5cb85aba 100644 --- a/Library/.rubocop_rules.yml +++ b/Library/.rubocop_rules.yml @@ -110,13 +110,7 @@ Style/TernaryParentheses: # dashes in filenames are typical Style/FileName: - # matches: - # file_name.rb (default) - # file-name.rb, --filename.rb (command names) - # FILENAME.rb (ARGV and ENV) - # does not match: - # dashes-and_underscores.rb - Regex: !ruby/regexp /^((([\dA-Z]+|[\da-z\+]+)(_([\dA-Z]+|[\da-z\+]+))*|(\-\-)?([\dA-Z]+|[\da-z\+\.]+)([-@]([\dA-Z]+|[\da-z\+\.]+))*))(\.rb)?$/ + Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/ # no percent word array, being friendly to non-ruby users # TODO: enforce when rubocop has fixed this |
