Files
openfoodnetwork/script/rubocop_autocorrect
Pau Perez 9da33b4e82 Auto correct Rubocop's Layout/EmptyLinesAroundAccessModifier cop
This also `script/rubocop_autocorrect` to automate the process of fixing
a cop and comitting the changes.
2018-04-09 18:46:11 +02:00

8 lines
118 B
Bash
Executable File

#!/bin/sh
$COP=$1
bundle exec rubocop -a --only "$COP"
git add -A
git commit -m "Auto correct Rubocop's ${COP} cop"