Мне сказали использовать рубиновый гем metric_fu
для получения метрик проекта, но после установки и запуска гема с rake metrics:all
процесс немедленно прерывается и возвращает:
******* STARTING METRIC flog
rake aborted!
Errno::EISDIR: Is a directory @ io_fread - app
Tasks: TOP => metrics:all
(See full trace by running task with --trace)
После повторного запуска с --trace
возвращается следующее:
** Invoke metrics:all (first_time)
** Execute metrics:all
******* STARTING METRIC flog
rake aborted!
Errno::EISDIR: Is a directory @ io_fread - app
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/flog-4.6.2/lib/flog.rb:178:in `binread'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/flog-4.6.2/lib/flog.rb:178:in `block in flog'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/flog-4.6.2/lib/flog.rb:175:in `each'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/flog-4.6.2/lib/flog.rb:175:in `flog'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/flog-4.6.2/lib/flog_cli.rb:170:in `flog'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu/metrics/flog/generator.rb:16:in `emit'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu/generator.rb:104:in `generate_result'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu/reporting/result.rb:48:in `add'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu/run.rb:21:in `block in measure'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu/run.rb:19:in `each'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu/run.rb:19:in `measure'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu/run.rb:9:in `run'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu.rb:123:in `run'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/metric_fu-4.12.0/lib/metric_fu/tasks/metric_fu.rake:9:in `block (2 levels) in <top (required)>'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `block in execute'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `each'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:271:in `execute'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:213:in `block in invoke_with_call_chain'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:193:in `invoke_with_call_chain'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/task.rb:182:in `invoke'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:160:in `invoke_task'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block (2 levels) in top_level'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `each'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:116:in `block in top_level'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:125:in `run_with_threads'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:110:in `top_level'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:83:in `block in run'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:186:in `standard_exception_handling'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/lib/rake/application.rb:80:in `run'
/home/felipe/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
/home/felipe/.rbenv/versions/2.5.1/bin/rake:23:in `load'
/home/felipe/.rbenv/versions/2.5.1/bin/rake:23:in `<main>'
Tasks: TOP => metrics:all
Я не уверен, что может быть причиной этой ошибки.Может кто-нибудь помочь?