Repository navigation
Commit b03120f
committed
fix: use grep -F for baseline lookup to handle Go pointer receivers
The baseline comparison uses grep with the function key as the pattern.
Go pointer receiver methods use (*Type).Method syntax, where (* is
interpreted as a BRE quantifier ("zero or more open-parens") instead
of the literal characters. This causes all pointer receiver functions
to fail lookup and be misclassified as "new functions", triggering
false CRAP threshold violations in consuming repositories.
Switching to grep -F (fixed-string mode) ensures literal matching.
The ^ anchor is dropped because -F does not support anchors, but
collisions are not possible since keys are fully-qualified
file:function paths unique by construction.
Assisted-by: OpenCode (claude-opus-4-6)
Signed-off-by: Marcus Burghardt <maburgha@redhat.com>1 parent 0dd6d87 commit b03120f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
0 commit comments