mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-06 02:51:34 +00:00
This also `script/rubocop_autocorrect` to automate the process of fixing a cop and comitting the changes.
8 lines
118 B
Bash
Executable File
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"
|