def trailing_whitespace(editor, item):
    """ Pylint method to fix trailing-whitespace error """
    line_no = item.line_no
    repaired_line = editor.lines[line_no].rstrip()
    loc = (line_no, line_no + 1)
    editor.replace_range(loc, [repaired_line])
    return (line_no, 0)