提交 6aaeb8ef 编写于 作者: Y Yoshiyuki Hirano

Improve redundancy in line tasks

* Remove needless concat from actionpack/Rakefile
* Remove neesless File.join from actionview/Rakefile
上级 92bb3f6a
......@@ -28,7 +28,7 @@ namespace :test do
end
task :lines do
load File.expand_path("..", __dir__) + "/tools/line_statistics"
load File.expand_path("../tools/line_statistics", __dir__)
files = FileList["lib/**/*.rb"]
CodeTools::LineStatistics.new(files).print_loc
end
......
......@@ -131,7 +131,7 @@ namespace :assets do
end
task :lines do
load File.join(File.expand_path("..", __dir__), "/tools/line_statistics")
load File.expand_path("../tools/line_statistics", __dir__)
files = FileList["lib/**/*.rb"]
CodeTools::LineStatistics.new(files).print_loc
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册