2017-04-27 01:47:22 +09: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'
|
|
|
|
[
|
2023-02-20 14:14:10 +09:00
|
|
|
['App Libraries', 'app/lib'],
|
2017-04-27 01:47:22 +09:00
|
|
|
%w(Presenters app/presenters),
|
2024-07-23 15:51:57 +09:00
|
|
|
%w(Policies app/policies),
|
|
|
|
%w(Serializers app/serializers),
|
2017-04-27 01:47:22 +09:00
|
|
|
%w(Services app/services),
|
|
|
|
%w(Validators app/validators),
|
|
|
|
%w(Workers app/workers),
|
|
|
|
].each do |name, dir|
|
2024-07-23 15:51:57 +09:00
|
|
|
STATS_DIRECTORIES << [name, dir]
|
2017-04-27 01:47:22 +09:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|