diff options
| author | Mike McQuaid | 2017-10-27 15:56:46 +0100 |
|---|---|---|
| committer | GitHub | 2017-10-27 15:56:46 +0100 |
| commit | 4209275a5884c3f12046cde107546447b3c00319 (patch) | |
| tree | 38930b890d8450ec5b298347c338306de2d85555 /Library | |
| parent | 2be11f604005ea20b582cec2daea2315ec867f66 (diff) | |
| parent | d98583842813480262afc4461f14ae51020f4299 (diff) | |
| download | brew-4209275a5884c3f12046cde107546447b3c00319.tar.bz2 | |
Merge pull request #3382 from MikeMcQuaid/lines_cop_clang++
lines_cop: add missing e.g. clang++ regex SOL.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/rubocops/lines_cop.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/rubocops/lines_cop.rb b/Library/Homebrew/rubocops/lines_cop.rb index e8aa6a53f..af7e1338e 100644 --- a/Library/Homebrew/rubocops/lines_cop.rb +++ b/Library/Homebrew/rubocops/lines_cop.rb @@ -178,7 +178,7 @@ module RuboCop param = parameters(method).first if match = regex_match_group(param, %r{^(/usr/bin/)?(gcc|llvm-gcc|clang)\s?}) problem "Use \"\#{ENV.cc}\" instead of hard-coding \"#{match[2]}\"" - elsif match = regex_match_group(param, %r{(/usr/bin/)?((g|llvm-g|clang)\+\+)\s?}) + elsif match = regex_match_group(param, %r{^(/usr/bin/)?((g|llvm-g|clang)\+\+)\s?}) problem "Use \"\#{ENV.cxx}\" instead of hard-coding \"#{match[2]}\"" end end |
