rubocop-rake
rubocop-rake copied to clipboard
Rake/Desc false positive
desc 'Method #3: Use ARGV to add two numbers and log the result'
task :add do
ARGV.each { |a| task a.to_sym do ; end }
puts ARGV[1].to_i + ARGV[2].to_i
end
This code (from here) gives an offense on the line starting ARGV...
even though the task description is included above. Similar to #36 I guess.