Sha256: 59db097758079b6dfc3c1240b636d87b51338e523ef15d2c556a50f5841370d1
Contents?: true
Size: 558 Bytes
Versions: 2
Compression:
Stored size: 558 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop checks the . position in multi-line method calls. class DotPosition < Cop MSG = 'Place the . on the next line, together with the method name.' def on_send(node) return unless node.loc.dot dot_line = node.loc.dot.line selector_line = node.loc.selector.line if dot_line != selector_line add_offence(:convention, node.loc.dot, MSG) end super end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
sabat-rubocop-0.9.0 | lib/rubocop/cop/style/dot_position.rb |
rubocop-0.9.0 | lib/rubocop/cop/style/dot_position.rb |