Module: RuboCop::Cop::SpaceAfterPunctuation
- Included in:
- Layout::SpaceAfterComma
- Defined in:
- lib/rubocop/cop/mixin/space_after_punctuation.rb
Constant Summary collapse
- YAYOI_MSG =
"ζ*'ヮ')ζ<うっうー!%<token>sの後ろにスペースがないですよー!"
Instance Method Summary collapse
Instance Method Details
#investigate(processed_source) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/rubocop/cop/mixin/space_after_punctuation.rb', line 8 def investigate(processed_source) each_missing_space(processed_source.tokens) do |token| add_offense(token, location: token.pos, message: format(YAYOI_MSG, token: kind(token))) end end |