lib/chapex/check/indentation_width.rb
# compare with parent parent node whose position is first child's position
compare with parent parent node whose position is first child's position
compare with parent parent node whose position is first child ' s position
def on_stmt(node)
        own_loc = node.first_child_location
        base_loc = node.grand_parent_location
        expected_column = base_loc.column + W
        diff = own_loc.column - expected_column
        return if diff.zero?
        add_violation(
          own_loc,
          base_loc.column + W,
          own_loc.column
        )
      end
def on_stmt ( node ) own_loc = node . first_child_location base_loc = node . grand_parent_location expected_column = base_loc . column + W diff = own_loc . column - expected_column return if diff . zero? add_violation ( own_loc , base_loc . column + W , own_loc . column ) end
compare with parent parent node whose position is first child's position
compare with parent parent node whose position is first child ' s position
node
<not_specific>