Skip to content

Commit

Permalink
Add config obsoletion
Browse files Browse the repository at this point in the history
  • Loading branch information
viralpraxis committed Sep 29, 2024
1 parent ea413bd commit 77c65ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/obsoletion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
renamed:
ThreadSafety/InstanceVariableInClassMethod: ThreadSafety/ClassInstanceVariable
2 changes: 2 additions & 0 deletions lib/rubocop/thread_safety.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ module ThreadSafety
CONFIG = YAML.safe_load(CONFIG_DEFAULT.read).freeze

private_constant(:CONFIG_DEFAULT, :PROJECT_ROOT)

::RuboCop::ConfigObsoletion.files << PROJECT_ROOT.join('config', 'obsoletion.yml')
end
end

0 comments on commit 77c65ac

Please sign in to comment.