Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

exclude crowdin and generated from yml files in copyright tasks

Ivan Kuchincf327a10bfa0
diff --git a/lib/tasks/copyright.rake b/lib/tasks/copyright.rake
index 1ae768edf5d..e32a14b2378 100644
--- a/lib/tasks/copyright.rake
+++ b/lib/tasks/copyright.rake
@@ -156,7 +156,12 @@ namespace :copyright do
desc "Update the copyright on .yml source files"
task :update_yml, :path do |_task, args|
- rewrite_copyright("yml", [], :rb, args[:path])
+ excluded = %w[
+ config/locales/{crowdin,generated}/*.yml
+ modules/*/config/locales/crowdin/*.yml
+ ]
+
+ rewrite_copyright("yml", excluded, :rb, args[:path])
end
desc "Update the copyright on .yml.example source files"