method
validate_trailing_whitespace
v7.1.3.4 -
Show latest stable
- Class:
RailInspector::Changelog::Entry
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