1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-10-17 17:01:01 +00:00
redmine/lib/tasks/yardoc.rake
Go MAEDA 5861160ffc Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future.


git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-03-15 01:32:57 +00:00

24 lines
598 B
Ruby

# frozen_string_literal: false
begin
require 'yard'
YARD::Rake::YardocTask.new do |t|
files = ['app/**/*.rb']
files << Dir['lib/**/*.rb', 'plugins/**/*.rb'].reject {|f| f.match(/test/) }
t.files = files
static_files = ['doc/CHANGELOG',
'doc/COPYING',
'doc/INSTALL',
'doc/RUNNING_TESTS',
'doc/UPGRADING'].join(',')
t.options += ['--no-private', '--output-dir', './doc/app', '--files', static_files]
end
rescue LoadError
# yard not installed (gem install yard)
# http://yardoc.org
end