From f0555ee5b63855bbd24102d92325844a5c1e4e7e Mon Sep 17 00:00:00 2001 From: Yasuhito Takamiya Date: Tue, 17 Mar 2015 16:11:52 +0900 Subject: [PATCH] Refactoring. --- flog.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flog.rake b/flog.rake index 01b64f6..4b374c9 100644 --- a/flog.rake +++ b/flog.rake @@ -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