Skip to content

Commit

Permalink
Update Rubocop rules to allow patches to print warnings to console
Browse files Browse the repository at this point in the history
  • Loading branch information
amecreate committed Jan 12, 2025
1 parent 4f884fd commit fe37612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,8 @@ Rails/OutputSafety:

Rails/Output:
Exclude:
# Allow patches to print warnings to console:
- 'config/initializers/monkeypatches/*.rb'
# Allow migrations to print pt-osc comments to console:
- 'db/migrate/*.rb'

Expand Down
2 changes: 1 addition & 1 deletion config/initializers/monkeypatches/deliver_after_commit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def rolledback!(*)
AfterCommitEverywhere::Wrap.prepend(AfterCommitEverywhereWithLocale)
else
puts "WARNING: The monkeypatch #{__FILE__} was written for version 1.4.0 of the after_commit_everywhere gem, but you are running #{AfterCommitEverywhere::VERSION}. Please update or remove the monkeypatch."
end
end

0 comments on commit fe37612

Please sign in to comment.