diff options
| author | Gautham Goli | 2017-04-08 15:10:44 +0530 |
|---|---|---|
| committer | Gautham Goli | 2017-04-22 21:53:16 +0530 |
| commit | 413a7e5daebb93f75f8b4839dfd61e42d49b070e (patch) | |
| tree | aadfe978623102594682262ff27e5bffc286b057 /Library/Homebrew/rubocops/bottle_block_cop.rb | |
| parent | 044bd974e435dabfebf5385cb5649f8ddb34de94 (diff) | |
| download | brew-413a7e5daebb93f75f8b4839dfd61e42d49b070e.tar.bz2 | |
Port audit_components method to rubocops and add corresponding tests
Diffstat (limited to 'Library/Homebrew/rubocops/bottle_block_cop.rb')
| -rw-r--r-- | Library/Homebrew/rubocops/bottle_block_cop.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/rubocops/bottle_block_cop.rb b/Library/Homebrew/rubocops/bottle_block_cop.rb index 4d7a94461..141d87b35 100644 --- a/Library/Homebrew/rubocops/bottle_block_cop.rb +++ b/Library/Homebrew/rubocops/bottle_block_cop.rb @@ -13,7 +13,7 @@ module RuboCop def audit_formula(_node, _class_node, _parent_class_node, formula_class_body_node) bottle = find_block(formula_class_body_node, :bottle) return if bottle.nil? || block_size(bottle).zero? - problem "Use rebuild instead of revision in bottle block" if method_called?(bottle, :revision) + problem "Use rebuild instead of revision in bottle block" if method_called_in_block?(bottle, :revision) end private |
