From 3e4f9559d73010e78b8bdeda483914901f2fbcc6 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 23 Sep 2016 22:03:23 +0200 Subject: [PATCH] Simplify Style/FileName regex. --- Library/.rubocop_rules.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Library/.rubocop_rules.yml b/Library/.rubocop_rules.yml index e8a966e608..b5cb85aba9 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