Skip to content

Instantly share code, notes, and snippets.

View jslucas's full-sized avatar
👺

Spencer jslucas

👺
View GitHub Profile
@jslucas
jslucas / correct_department.rb
Created March 14, 2025 01:43
Script for creating branches that safely autocorrect entire RuboCop department offenses in the .rubocop_todo.yml file. Each Cop correction becomes a commit.
#!/usr/bin/env ruby
# rubocop:disable all
department = ARGV[0]
if department.nil? || department.empty?
puts "Please provide a department name-- Layout, Style, etc."
exit 1
end