Skip to content

Commit

Permalink
Merge pull request #207 from Shopify/add-obsoletion-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sambostock authored Mar 20, 2024
2 parents 5553292 + 2d581d9 commit 86cdbb9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/obsoletion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# Configuration for obsoletion.
#
# See: https://docs.rubocop.org/rubocop/extensions.html#config-obsoletions
#
{}
2 changes: 2 additions & 0 deletions lib/rubocop/sorbet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ class Error < StandardError; end
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 86cdbb9

Please sign in to comment.