Thank you Christian.
I like both ideas. I would suggest work on getting rid of the duplications prior to analyzing headers, as you have noticed, if duplications exist, headers will eventually contribute massive of duplications.
I think you are on the right track. I would hope `oclint-core` contains the entire set of raw violations, meaning duplications are allowed in `Results`. We might need to refer back to the original violation set.
So you could extract `UniqueResults` from `PMDReporter`, and use it in other reporters.
I was also wondering if we should introduce a command line flag with something like `-allow-duplicated-violations`, and when it’s enabled, we will output violations from `Results` instead of `UniqueResutls`.
Thanks,
Longyi