Skip to content

Commit

Permalink
Refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuhito committed Mar 17, 2015
1 parent 07f8a19 commit f0555ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flog.rake
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ begin
desc 'Analyze for code complexity'
task :flog do
flog = Flog.new(continue: true)
flog.flog(*FileList['*.rb'])
threshold = 0
flog.flog(*FileList['lib/**/*.rb'])
threshold = 10

bad_methods = flog.totals.select do |name, score|
!(/##{flog.no_method}$/ =~ name) && score > threshold
Expand Down

0 comments on commit f0555ee

Please sign in to comment.