aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMarkus Reiter2016-09-23 22:03:23 +0200
committerMarkus Reiter2016-09-24 11:58:12 +0200
commit3e4f9559d73010e78b8bdeda483914901f2fbcc6 (patch)
tree0a43cae6cd7da781eb1c3e5c5a22f98e97163096 /Library
parent687f0fcf721c8e36f32570ed72d0988a6eaf986f (diff)
downloadbrew-3e4f9559d73010e78b8bdeda483914901f2fbcc6.tar.bz2
Simplify Style/FileName regex.
Diffstat (limited to 'Library')
-rw-r--r--Library/.rubocop_rules.yml8
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