ipal-audit: skip the starter's //: alternative lines; reference skills refreshed
- audit.sh g(): matches on a starter alternative line (`//: …` after file:line:,
the commented-out variants inside @starter:if markers) are dropped. The reference
site's `//: robots: { aiBots: 'block-training' }` / 'disallow' alternatives made
`audit:robots-blocks-ai-bots` fire although the site blocks no AI bots. The doctor
runs audit.sh, so it follows. Tests: a //: line is not a finding, a real
robots: { aiBots: 'block-training' } line still is.
- reference/.agents/skills refreshed with ipal-skills (ipal-reference, ipal-setup,
ipal-site and ipal-audit were behind the plugin's after the doctor/starter merges).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
aa88e4ea39
commit
dd11bc8146
@@ -41,7 +41,9 @@ report() {
|
||||
[ "$count" -gt 20 ] && printf ' … and %s more\n' "$((count - 20))"
|
||||
}
|
||||
|
||||
g() { grep -rnE "$@" 2>/dev/null || true; }
|
||||
# grep that skips the starter's alternative lines (`//: …` after `file:line:`) — commented-out
|
||||
# variants inside @starter:if markers, not code the site runs.
|
||||
g() { grep -rnE "$@" 2>/dev/null | grep -vE '^[^:]+:[0-9]+:[[:space:]]*//:' || true; }
|
||||
# drop matches that sit inside a // or /* comment (keeps http:// URLs)
|
||||
# (also a whole-line comment right after grep's "file:line:" prefix)
|
||||
nc() { grep -vE "^[^:]+:[0-9]+:[[:space:]]*(//|/?\*)|(^|[^:])//.*$1|/\*.*$1" || true; }
|
||||
|
||||
Reference in New Issue
Block a user