Skip to content

Commit

Permalink
[ci] Add rake task for updating rubocop todo files
Browse files Browse the repository at this point in the history
Co-authored-by: Björn Geuken <bgeuken@suse.de>
Co-authored-by: Ana María Martínez Gómez <ammartinez@suse.de>
  • Loading branch information
3 people committed Jun 22, 2018
1 parent 8b145ad commit ee16929
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/api/lib/tasks/dev.rake
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,21 @@ namespace :dev do
Rake::Task['dev:lint:rubocop:rails'].invoke
end
end
namespace :auto_gen_config do
task all: [:root, :rails] do
end
desc 'Autogenerate rubocop config in rails'
RuboCop::RakeTask.new(:rails) do |task|
task.options = ['--auto-gen-config', '--ignore_parent_exclusion']
task.fail_on_error = false
end
desc 'Autogenerate rubocop config in root'
task :root do
Dir.chdir('../..') do
Rake::Task['dev:lint:rubocop:auto_gen_config:rails'].invoke
end
end
end
end
desc 'Run the haml linter'
task :haml do
Expand Down

0 comments on commit ee16929

Please sign in to comment.