class FitCommit::Validators::SubjectPeriod
Public Instance Methods
validate_line(lineno, text)
click to toggle source
# File lib/fit_commit/validators/subject_period.rb, line 6 def validate_line(lineno, text) if lineno == 1 && text.end_with?(".") add_error(lineno, "Do not end your subject line with a period.") end end