add missing }
This commit is contained in:
parent
4acdcfcb37
commit
d7af1e3527
@ -21,12 +21,12 @@ module RuboCop
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
sig { params(comment: Parser::Source::Comment).returns(T::Boolean)
|
sig { params(comment: Parser::Source::Comment).returns(T::Boolean) }
|
||||||
def disable_comment?(comment)
|
def disable_comment?(comment)
|
||||||
comment.text.start_with? "# rubocop:disable"
|
comment.text.start_with? "# rubocop:disable"
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { params(line: String).returns(T::Boolean) }
|
sig { params(line: String).returns(T::Boolean) }
|
||||||
def comment?(line)
|
def comment?(line)
|
||||||
line.strip.start_with? "#"
|
line.strip.start_with? "#"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user