Skip to content

Commit

Permalink
Deprecate the SafeMode module
Browse files Browse the repository at this point in the history
  • Loading branch information
rrosenblum authored and bbatsov committed Aug 19, 2019
1 parent 8cfdc57 commit 28f8d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
* [#5265](https://github.com/rubocop-hq/rubocop/issues/5265): Improved `Layout/ExtraSpacing` cop to handle nested consecutive assignments. ([@jfelchner][])
* [#7215](https://github.com/rubocop-hq/rubocop/issues/7215): Make it clear what's wrong in the message from `Style/GuardClause`. ([@jonas054][])
* [#7245](https://github.com/rubocop-hq/rubocop/pull/7245): Make cops detect string interpolations in more contexts: inside of backticks, regular expressions, and symbols. ([@buehmann][])
* Deprecate the `SafeMode` option. Users will need to upgrade `rubocop-performance` to 1.15.0+ before the `SafeMode` module is removed. ([@rrosenblum][])

## 0.73.0 (2019-07-16)

Expand Down
3 changes: 3 additions & 0 deletions lib/rubocop/cop/mixin/safe_mode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ module RuboCop
module Cop
# Common functionality for Rails safe mode.
module SafeMode
warn 'The `SafeMode` option will be removed in `RuboCop` 0.76. ' \
'Please update `rubocop-performance` to 1.15.0 or higher.'

private

def rails_safe_mode?
Expand Down

0 comments on commit 28f8d94

Please sign in to comment.