This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-26 09:47:22 -07:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
task stats: 'mastodon:stats'
|
|
|
|
|
|
|
|
namespace :mastodon do
|
|
|
|
desc 'Report code statistics (KLOCs, etc)'
|
|
|
|
task :stats do
|
|
|
|
require 'rails/code_statistics'
|
|
|
|
[
|
|
|
|
%w(App\ Libraries app/lib),
|
|
|
|
%w(Presenters app/presenters),
|
|
|
|
%w(Services app/services),
|
|
|
|
%w(Validators app/validators),
|
|
|
|
%w(Workers app/workers),
|
|
|
|
].each do |name, dir|
|
2023-02-17 19:30:03 -08:00
|
|
|
STATS_DIRECTORIES << [name, Rails.root.join(dir)]
|
2017-04-26 09:47:22 -07:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|