The ‘author’ of an issue is the last committer on the line the issue was raised on. So yours is really a question of where the issue is raised. It was raised on the 2nd instance in the file (the one with the higher line number) and you think it should have been raised on the one that was added last (chronologically).
On the face of it, it’s a reasonable expectation, but rules run & raise issues without any access to blame data - i.e. the rule doesn’t know which declaration came last chronologically; it can only know which came last in the file. And changing that isn’t feasible. (one reason of several is that blame data isn’t always available).