bboe / farcy

A code review bot for github pull requests.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Group matching comments within some number of lines

bboe opened this issue · comments

Farcy will comment on each line with an issue. If there are 20 lines with the same indentation issue, each line will receive the same comment. This behavior is disruptive and not terribly useful. Farcy should have a variable threshold number of line (configurable) that groups the same issues within the threshold into the first occurrence of the issue along with its count.

For instance with a 3 line threshold something with the same issue on lines 15, 18, 21 should only have a comment on line 15 that says "Error X: occurs 3 times on the next 6 lines." Note that this means the threshold is between instances of a chain of issues, not the maximum number of lines to group issues into.