append_to_file "Rakefile" do
  <<~RUBY

  task :overcommit do
    sh "bundle exec overcommit --run"
  end

  task default: %w[test test:system overcommit]
  RUBY
end

append_to_file "Rakefile" do
  <<~RUBY

  task default: %w[test test:system]
  RUBY
end

Remove overcommit from default rake task
Remove overcommit from default rake task

Overcommit is slow and prone to false positives when run outside of the
regular pre-commit hook. Remove it from the default rake task.
