diff options
author | Yoshiyuki Hirano <yhirano@me.com> | 2018-04-19 23:45:28 +0900 |
---|---|---|
committer | Yoshiyuki Hirano <yhirano@me.com> | 2018-04-19 23:45:28 +0900 |
commit | 6aaeb8ef10725ae43247ead117ee25c9e250491a (patch) | |
tree | c11896b178fc3cc0180b3c0470a7dda729a02ced /actionview/Rakefile | |
parent | 92bb3f6aaaa80fa7add94debbda6373a15f55b64 (diff) | |
download | rails-6aaeb8ef10725ae43247ead117ee25c9e250491a.tar.gz rails-6aaeb8ef10725ae43247ead117ee25c9e250491a.tar.bz2 rails-6aaeb8ef10725ae43247ead117ee25c9e250491a.zip |
Improve redundancy in line tasks
* Remove needless concat from actionpack/Rakefile
* Remove neesless File.join from actionview/Rakefile
Diffstat (limited to 'actionview/Rakefile')
-rw-r--r-- | actionview/Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/Rakefile b/actionview/Rakefile index 9542b626d1..bdfd96c141 100644 --- a/actionview/Rakefile +++ b/actionview/Rakefile @@ -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 |