File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,8 @@ your config/application.rb to apply RuboCop autocorrection to code generated by
71
71
module YourCoolApp
72
72
class Application < Rails::Application
73
73
config.generators.after_generate do |files|
74
- system("bundle exec rubocop -A --fail-level=E #{files.shelljoin}", exception: true)
74
+ parsable_files = files.filter { |file| file.end_with?('.rb') }
75
+ system("bundle exec rubocop -A --fail-level=E #{parsable_files.shelljoin}", exception: true)
75
76
end
76
77
end
77
78
end
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ your config/application.rb to apply RuboCop autocorretion to code generated by `
41
41
module YourCoolApp
42
42
class Application < Rails::Application
43
43
config.generators.after_generate do |files|
44
- system("bundle exec rubocop -A --fail-level=E #{files.shelljoin}", exception: true)
44
+ parsable_files = files.filter { |file| file.end_with?('.rb') }
45
+ system("bundle exec rubocop -A --fail-level=E #{parsable_files.shelljoin}", exception: true)
45
46
end
46
47
end
47
48
end
You can’t perform that action at this time.
0 commit comments