Skip to content

Commit

Permalink
FlayTask pass directories to Flay.run
Browse files Browse the repository at this point in the history
  • Loading branch information
adam12 committed Apr 28, 2022
1 parent fd35076 commit d6d8f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flay_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def define
desc "Analyze for code duplication in: #{dirs.join(", ")}"
task name do
require "flay"
flay = Flay.run
flay = Flay.run(dirs)
flay.report if verbose

raise "Flay total too high! #{flay.total} > #{threshold}" if
Expand Down

0 comments on commit d6d8f88

Please sign in to comment.