method
validate_authors
v7.1.3.4 -
Show latest stable
- Class:
RailInspector::Changelog::Entry
validate_authors()private
No documentation available.
# File tools/rail_inspector/lib/rail_inspector/changelog.rb, line 38
def validate_authors
return if no_changes?
authors =
lines.reverse.find { |line| line.match?(/^ *\*[^*\s].*[^*\s]\*$/) }
return if authors
add_offense(
header,
line_in_file(0),
1..header.length,
"CHANGELOG entry is missing authors."
)
end