rubocop: Enable Style/AccessorGrouping and autofix offenses
- With RuboCop 1.48.1 this no longer reports offenses and applies bugged autocorrections for `attr`s with Sorbet `sig`s, so we can enable it.
This commit is contained in:
parent
8a5e1697a6
commit
cace5c429f
@ -301,10 +301,6 @@ Sorbet/StrictSigil:
|
||||
Include:
|
||||
- "**/*.rbi"
|
||||
|
||||
# Conflicts with type signatures on `attr_*`s.
|
||||
Style/AccessorGrouping:
|
||||
Enabled: false
|
||||
|
||||
# Require &&/|| instead of and/or
|
||||
Style/AndOr:
|
||||
EnforcedStyle: always
|
||||
|
||||
@ -18,9 +18,7 @@ module PyPI
|
||||
class Package
|
||||
extend T::Sig
|
||||
|
||||
attr_accessor :name
|
||||
attr_accessor :extras
|
||||
attr_accessor :version
|
||||
attr_accessor :name, :extras, :version
|
||||
|
||||
sig { params(package_string: String, is_url: T::Boolean).void }
|
||||
def initialize(package_string, is_url: false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user