Module: RuboCop::Cop::Sorbet::RBSAssertionCorrection

Includes:
Alignment, RangeHelp
Included in:
ForbidTAbsurd, ForbidTBind, ForbidTCast, ForbidTLet, ForbidTMust, ForbidTUnsafe
Defined in:
lib/rubocop/cop/sorbet/mixin/rbs_assertion_correction.rb

Overview

Shared guards and rewrites for replacing Sorbet runtime assertions with equivalent RBS inline comments.

Constant Summary collapse

COMMENT_START =
"#"
NEWLINES =
["\n", "\r"].freeze