Update code throughout linterReporter for better style and peformance.

Remove msgId and pending, because we don't use them anymore.