Repository navigation
Does the repetition scan stay reasonable on a large diff? #19
Answered
by
Herricka
alexander8708
asked this question in
Q&A
|
Our biggest PRs run to several thousand lines. Does the repetition check rescan the file per element, and is there a way to see which rule produced a |
Answered by
Herricka
Oct 13, 2026
Replies: 1 comment
|
The window is a sliding counter: |
0 replies
Answer selected by
alexander8708
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The window is a sliding counter:
analyze.RepetitionWindowkeeps a cursor and only walks forward, so the pass is linear in the diff length instead of quadratic. For the 'why',policy.WithRule(name, err)wraps a failure in aRuleErrorthat prints the rule by name - and it implementsUnwrap, soerrors.Isstill matches the underlying cause.