Skip to content

Commit

Permalink
Fix dummy app formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sfnelson authored and Katalyst committed Sep 20, 2023
1 parent 5b526e7 commit 9058a37
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions lib/tasks/dummy.thor
Original file line number Diff line number Diff line change
Expand Up @@ -141,21 +141,19 @@ class Dummy < Thor
# Format generated files
def format_generated_files
say_status :run, "Format generated files", :green
inside("spec/dummy") do
run(<<~SH.gsub(/\s+/, " ").strip, verbose: false, abort_on_failure: false, capture: true)
git status --porcelain -u |
grep '[.]rb'|
awk '{print $2}'|
grep -v schema.rb|
xargs bundle exec rubocop -A
SH
run(<<~SH.gsub(/\s+/, " ").strip, verbose: false, abort_on_failure: false, capture: true)
git status --porcelain -u |
grep '[.]erb'|
awk '{print $2}'|
xargs bundle exec erblint -a
SH
end
run(<<~SH.gsub(/\s+/, " ").strip, verbose: false, abort_on_failure: false, capture: true)
(cd spec/dummy && git status --porcelain -u) |
grep '[.]rb'|
awk '{print "spec/dummy/" $2}'|
grep -v schema.rb|
xargs rubocop -A
SH
run(<<~SH.gsub(/\s+/, " ").strip, verbose: false, abort_on_failure: true, capture: true)
(cd spec/dummy && git status --porcelain -u) |
grep '[.]erb'|
awk '{print "spec/dummy/" $2}'|
xargs erblint -a
SH
end
end

Expand Down

0 comments on commit 9058a37

Please sign in to comment.