diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-09 12:50:27 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-16 18:41:25 -0700 |
commit | d0f4283fe47cbbe251eb34fee8657901374ff336 (patch) | |
tree | 55589ec4e6e9c425aec18850944209ecd79923fa /lib/chef/knife/cookbook_show.rb | |
parent | 7037433634d0b02574d03a8465541ea2f49d3f39 (diff) | |
download | chef-d0f4283fe47cbbe251eb34fee8657901374ff336.tar.gz |
"fix" Lint/NestedMethodDefinition cops
these are all awful, but fixing them will be time consuming. by disabling
them on the existing offenses we can enable the cop to prevent more of this
creeping into the codebase.
Diffstat (limited to 'lib/chef/knife/cookbook_show.rb')
-rw-r--r-- | lib/chef/knife/cookbook_show.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/cookbook_show.rb b/lib/chef/knife/cookbook_show.rb index a20e62ffc2..615c1962be 100644 --- a/lib/chef/knife/cookbook_show.rb +++ b/lib/chef/knife/cookbook_show.rb @@ -63,7 +63,7 @@ class Chef node[:platform_version] = config[:platform_version] if config.has_key?(:platform_version) class << node - def attribute?(name) + def attribute?(name) # rubocop:disable Lint/NestedMethodDefinition has_key?(name) end end |