Repository navigation
Split blocksHolding and RealPass::refuseIgnoredThatMoves - #2429
Conversation
Part of #2157. Behaviour-preserving extractions, comments moved verbatim: - blocksHolding (CCN 19 to 14): the key normalisation moves to bareKey() (3) and the end-of-block test to addHolder() (4), in an anonymous namespace. - RealPass::refuseIgnoredThatMoves (CCN 19 to 13): the check-ignore -v rule walk moves to ignoredByRulesWithin() (4), still only asked when the landing does not exist, and the exposed-file list to exposedWhereLanded() (4). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Anne Jan Brouwer <[email protected]>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
nogeenhenk
left a comment
There was a problem hiding this comment.
Reviewed at aae2f49. The eighth refactor for #2157; only the structure changes.
blocksHolding:bareKey()is the old normalisation (trim, upper case, trailing!,0x) andaddHolder()the old test inendBlock; the empty-key return and the block walk are unchanged.refuseIgnoredThatMoves:ignoredByRulesWithin()runs only when the landing does not exist, as the old&&did, and returns the same list; a failed lookup still gives an empty one.exposedWhereLanded()is the old loop. The ignore lookup at the landing and the refusal after it stay in place.
Nothing to add.
Generated by Claude Code
Summary
Part of #2157, batch 8. Only the structure changes: the extracted code is moved as it was, comments included.
blocksHoldingbareKey()(3),addHolder()(4)RealPass::refuseIgnoredThatMovesignoredByRulesWithin()(4),exposedWhereLanded()(4)blocksHolding(): the key normalisation (trim, upper case, drop!and0x) moves tobareKey(). TheendBlocklambda's test moves toaddHolder(). Both are in an anonymous namespace.wantedis nowconst.refuseIgnoredThatMoves(): thegit check-ignore -vwalk for rules inside the folder moves toignoredByRulesWithin(). The caller still asks only when the landing does not exist, as the old&&did. The finalold > newlist moves toexposedWhereLanded().Test plan
qmake6 -r CONFIG+=rnp && make -j12 && make checkin a scratchHOME/GNUPGHOME: 37 suites, 2,079 passed, 0 faileddoxygen Doxyfile: no warningslizard -C 14: both functions are at or below 14🤖 Generated with Claude Code
Summary by CodeRabbit