Filters out duplicate offences for Github formatters

When the same exact message is repeated on the same line,
this change removes the duplicates.  The test was updated
to reflect this changed behavior as well.