Class: RuboCop::Cop::Sorbet::HasSigil
- Inherits:
-
ValidSigil
- Object
- Base
- ValidSigil
- RuboCop::Cop::Sorbet::HasSigil
- Defined in:
- lib/rubocop/cop/sorbet/sigils/has_sigil.rb
Overview
Makes the Sorbet typed sigil mandatory in all files.
Options:
-
‘SuggestedStrictness`: Sorbet strictness level suggested in offense messages (default: ’false’)
-
‘MinimumStrictness`: If set, make offense if the strictness level in the file is below this one
If a ‘MinimumStrictness` level is specified, it will be used in offense messages and autocorrect.
Direct Known Subclasses
FalseSigil, IgnoreSigil, StrictSigil, StrongSigil, TrueSigil
Instance Method Summary collapse
Methods inherited from ValidSigil
Instance Method Details
#require_sigil_on_all_files? ⇒ Boolean
18 19 20 |
# File 'lib/rubocop/cop/sorbet/sigils/has_sigil.rb', line 18 def require_sigil_on_all_files? true end |