method

validate_trailing_whitespace

validate_trailing_whitespace()
private

No documentation available.

# File tools/rail_inspector/lib/rail_inspector/changelog.rb, line 78
        def validate_trailing_whitespace
          lines.each_with_index do |line, i|
            next unless line.end_with?(" ", "\t")

            add_offense(
              line,
              line_in_file(i),
              (line.rstrip.length + 1)..line.length,
              "Trailing whitespace detected."
            )
          end
        end