diff --git a/bin/lefthook/ruby-autofix b/bin/lefthook/ruby-autofix index 503fcb7e88..4e31ad9950 100755 --- a/bin/lefthook/ruby-autofix +++ b/bin/lefthook/ruby-autofix @@ -17,6 +17,7 @@ else fi printf " %s\n" $files -bundle exec rake autofix +# Run RuboCop only on changed files (not the full rake autofix) +bundle exec rubocop -A --force-exclusion -- $files echo "✅ Auto-fix complete (fixed files staged automatically)"