Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rake/Desc false positive #46

Open
MatzFan opened this issue Apr 2, 2023 · 0 comments
Open

Rake/Desc false positive #46

MatzFan opened this issue Apr 2, 2023 · 0 comments

Comments

@MatzFan
Copy link

MatzFan commented Apr 2, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant