func (e haveContentMatchingRegex) getViolation(filePath string) rule.CoreViolation {
    format := "file '%s' does not have content matching regex '%s'"

    if e.options.matchSingleLines {
        format = "file '%s' does not have all lines matching regex '%s'"