Commit a7f116ca authored by Robert Speicher's avatar Robert Speicher

Merge branch 'unify-lib-tasks' into 'master'

Unify flay.rake and gettext.rake from EE

See merge request gitlab-org/gitlab-ce!20041
parents a8f4f48e 582c6b17
desc 'Code duplication analyze via flay' desc 'Code duplication analyze via flay'
task :flay do task :flay do
output = `bundle exec flay --mass 35 app/ lib/gitlab/ 2> #{File::NULL}` output = `bundle exec flay --mass 35 app/ lib/gitlab/ ee/ 2> #{File::NULL}`
if output.include?("Similar code found") || output.include?("IDENTICAL code found") if output.include?("Similar code found") || output.include?("IDENTICAL code found")
puts output puts output
......
...@@ -4,7 +4,7 @@ namespace :gettext do ...@@ -4,7 +4,7 @@ namespace :gettext do
# Customize list of translatable files # Customize list of translatable files
# See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files # See: https://github.com/grosser/gettext_i18n_rails#customizing-list-of-translatable-files
def files_to_translate def files_to_translate
folders = %W(app lib config #{locale_path}).join(',') folders = %W(ee app lib config #{locale_path}).join(',')
exts = %w(rb erb haml slim rhtml js jsx vue handlebars hbs mustache).join(',') exts = %w(rb erb haml slim rhtml js jsx vue handlebars hbs mustache).join(',')
Dir.glob( Dir.glob(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment