Duplicate attribute checker

Here is a checker for duplicate attributes. There are a few cases where it will ignore the duplicates, because I could not figure out how to get the line/column numbers.