From 77c65acb05b7ed47acbced1e34e50e1758d5fe2b Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Sun, 29 Sep 2024 23:09:41 +0300 Subject: [PATCH] Add config obsoletion --- config/obsoletion.yml | 2 ++ lib/rubocop/thread_safety.rb | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 config/obsoletion.yml diff --git a/config/obsoletion.yml b/config/obsoletion.yml new file mode 100644 index 0000000..000f830 --- /dev/null +++ b/config/obsoletion.yml @@ -0,0 +1,2 @@ +renamed: + ThreadSafety/InstanceVariableInClassMethod: ThreadSafety/ClassInstanceVariable diff --git a/lib/rubocop/thread_safety.rb b/lib/rubocop/thread_safety.rb index a393186..a024fb7 100644 --- a/lib/rubocop/thread_safety.rb +++ b/lib/rubocop/thread_safety.rb @@ -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