Skip to content

Commit

Permalink
Remove obsolete OneAncestorPerLine cop
Browse files Browse the repository at this point in the history
Since `require_ancestor` no longer accepts arguments, this cop is
obsolete.
  • Loading branch information
sambostock committed Mar 19, 2024
1 parent 51cf5f2 commit d8fb2c6
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 298 deletions.
5 changes: 0 additions & 5 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,6 @@ Sorbet/BuggyObsoleteStrictMemoization:
Safe: true
SafeAutoCorrect: false

Sorbet/OneAncestorPerLine:
Description: 'Enforces one ancestor per call to requires_ancestor'
Enabled: false
VersionAdded: '0.6.0'

Sorbet/RedundantExtendTSig:
Description: >-
Forbid the usage of redundant `extend T::Sig`.
Expand Down
3 changes: 3 additions & 0 deletions config/obsoletion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@
#
# See: https://docs.rubocop.org/rubocop/extensions.html#config-obsoletions
#
removed:
Sorbet/OneAncestorPerLine:
reason: '`require_ancestor` now takes a block instead of arguments'
80 changes: 0 additions & 80 deletions lib/rubocop/cop/sorbet/one_ancestor_per_line.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/rubocop/cop/sorbet_cops.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
require_relative "sorbet/forbid_type_aliased_shapes"
require_relative "sorbet/forbid_untyped_struct_props"
require_relative "sorbet/implicit_conversion_method"
require_relative "sorbet/one_ancestor_per_line"
require_relative "sorbet/callback_conditionals_binding"
require_relative "sorbet/forbid_t_struct"
require_relative "sorbet/forbid_t_unsafe"
Expand Down
212 changes: 0 additions & 212 deletions spec/rubocop/cop/sorbet/one_ancestor_per_line_spec.rb

This file was deleted.

0 comments on commit d8fb2c6

Please sign in to comment.