class RuboCop::Cop::Sorbet::ValidSigil
def check_double_commented_sigil(sigil, strictness)
def check_double_commented_sigil(sigil, strictness) return unless sigil.text.start_with?(/[[:blank:]]*#[[:blank:]]*#/) add_offense( sigil.pos, message: format(INVALID_SIGIL_MSG, sigil: sigil.text), ) do |corrector| # Remove the extra comment and normalize spaces corrector.replace( sigil.pos, "# typed: #{strictness}", ) end end