rubocop-rake icon indicating copy to clipboard operation
rubocop-rake copied to clipboard

Rake/Desc false positive

Open MatzFan opened this issue 1 year ago • 0 comments

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.

MatzFan avatar Apr 02 '23 19:04 MatzFan