You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The hostsfile cookbook doesn't pass 'cookstyle -l' validation - it fails on the following errors :
`$ cookstyle -l .
Inspecting 8 files
...WW...
Offenses:
libraries/entry.rb:83:39: W: Shadowing outer local variable - entry.
entry.split(/\s+/).collect { |entry| presence(entry) }.compact
^^^^^
libraries/manipulator.rb:89:16: W: Assignment in condition - you probably meant to use ==.
if entry = find_entry_by_ip_address(options[:ip_address])
^
libraries/manipulator.rb:104:16: W: Assignment in condition - you probably meant to use ==.
if entry = find_entry_by_ip_address(options[:ip_address])
^
libraries/manipulator.rb:124:16: W: Assignment in condition - you probably meant to use ==.
if entry = find_entry_by_ip_address(ip_address)
^
libraries/manipulator.rb:281:39: W: Shadowing outer local variable - entry. @entries = @entries.collect do |entry|
^^^^^
8 files inspected, 5 offenses detected`
The text was updated successfully, but these errors were encountered:
The hostsfile cookbook doesn't pass 'cookstyle -l' validation - it fails on the following errors :
`$ cookstyle -l .
Inspecting 8 files
...WW...
Offenses:
libraries/entry.rb:83:39: W: Shadowing outer local variable - entry.
entry.split(/\s+/).collect { |entry| presence(entry) }.compact
^^^^^
libraries/manipulator.rb:89:16: W: Assignment in condition - you probably meant to use ==.
if entry = find_entry_by_ip_address(options[:ip_address])
^
libraries/manipulator.rb:104:16: W: Assignment in condition - you probably meant to use ==.
if entry = find_entry_by_ip_address(options[:ip_address])
^
libraries/manipulator.rb:124:16: W: Assignment in condition - you probably meant to use ==.
if entry = find_entry_by_ip_address(ip_address)
^
libraries/manipulator.rb:281:39: W: Shadowing outer local variable - entry.
@entries = @entries.collect do |entry|
^^^^^
8 files inspected, 5 offenses detected`
The text was updated successfully, but these errors were encountered: