diff options
| author | Dominyk Tiller | 2017-10-31 00:55:00 +0000 |
|---|---|---|
| committer | Dominyk Tiller | 2017-10-31 00:55:00 +0000 |
| commit | 883fee78adab15f205d201116f89f85e608fd334 (patch) | |
| tree | 93315a96625e5e3c9e643e3e9ed67a510cb9f49a | |
| parent | 8fd18eab2133aeb33fc0f42f9707f69da64d0f8d (diff) | |
| download | brew-883fee78adab15f205d201116f89f85e608fd334.tar.bz2 | |
text_cop: warn against go_resource usage for strict audit
| -rw-r--r-- | Library/Homebrew/rubocops/text_cop.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/rubocops/text_cop.rb b/Library/Homebrew/rubocops/text_cop.rb index c99adfc10..1546a9cc3 100644 --- a/Library/Homebrew/rubocops/text_cop.rb +++ b/Library/Homebrew/rubocops/text_cop.rb @@ -51,5 +51,14 @@ module RuboCop end end end + module FormulaAuditStrict + class Text < FormulaCop + def audit_formula(_node, _class_node, _parent_class_node, body_node) + find_method_with_args(body_node, :go_resource) do + problem "`go_resource`s are deprecated. Please ask upstream to implement Go vendoring" + end + end + end + end end end |
