Running rubocop can show where this code strays from best practices/community standards. It doesn't make sense to make these changes to the code, we've already talked about the code being somewhat disposable, but could be informative to know about.
- Style/StringConcatenation: Prefer string interpolation to string concatenation.
For example
# rails/generate_report_12.rb:28:110
missing_community_collection_report[:community] << "Community Id %{community_id} does not exist" % {community_id: community_collection[0]}
becomes "Community Id #{community_collection[0]} does not exist"