Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
bump: patch
---

### Changed

- Tidied the audit collectors: one per-heading state reset in collect-categories.sh, a guard clause and a single declaration alternation in collect-standards.sh, with a test that pins the `declare -x` and `typeset -x` forms.
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,12 @@ BEGIN {
line = trim($0)
if (line ~ /^## /) {
close_section()
marker = ""
items = 0
finding_open = 0
name = substr(line, 4)
if (name == "Blindspots" || name == "Doc-worthy gotchas" || name == "Unverified claims") {
section = ""
marker = ""
items = 0
finding_open = 0
next
}
if (name != "Errors" && name != "Improvements" && name != "Quality of life" &&
Expand All @@ -240,9 +240,6 @@ BEGIN {
} else {
section = name
}
marker = ""
items = 0
finding_open = 0
next
}
if (section == "" || line == "") next
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ findings=0

cite() {
local file="$1" needle="$2" line
if [[ ! -f "$file" ]]; then
printf ''
return
fi
[[ -f "$file" ]] || return 0
line="$(grep -n -F "$needle" "$file" | head -n 1 | cut -d: -f1)"
printf '%s' "$line"
}
Expand Down Expand Up @@ -275,7 +272,7 @@ if [[ ! -f "$win_file" ]]; then
elif [[ -z "$win_cite" ]]; then
emit_probe windows-path-emit basis-missing "$win_rel" - "citation sentence absent"
else
export_line="$(grep -n -E 'export[[:space:]]+(MSYS_NO_PATHCONV|MSYS2_ARG_CONV_EXCL)|declare[[:space:]]+-x[[:space:]]+(MSYS_NO_PATHCONV|MSYS2_ARG_CONV_EXCL)|typeset[[:space:]]+-x[[:space:]]+(MSYS_NO_PATHCONV|MSYS2_ARG_CONV_EXCL)' "$COMPONENT" | head -n 1 | cut -d: -f1 || true)"
export_line="$(grep -n -E '(export|declare[[:space:]]+-x|typeset[[:space:]]+-x)[[:space:]]+(MSYS_NO_PATHCONV|MSYS2_ARG_CONV_EXCL)' "$COMPONENT" | head -n 1 | cut -d: -f1 || true)"
if [[ -n "$export_line" ]]; then
emit_probe windows-path-emit finding "$win_rel:$win_cite" "$COMPONENT:$export_line" "exported path-conversion suppressor"
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,19 @@ has "seam-phrasing status=candidate" "the seam lead is reported"
has "status=not-applicable" "hook-budget stays not-applicable"
has "SKILL.md:" "a component path is cited"

mkdir -p "$ROOT/skills/declared" "$ROOT/skills/typeset" "$ROOT/skills/local-only"
printf '%s\n' 'declare -x MSYS2_ARG_CONV_EXCL="*"' >"$ROOT/skills/declared/run.sh"
printf '%s\n' 'typeset -x MSYS_NO_PATHCONV=1' >"$ROOT/skills/typeset/run.sh"
printf '%s\n' 'MSYS_NO_PATHCONV=1 tool.exe /c' >"$ROOT/skills/local-only/run.sh"
for form in declared typeset; do
run 1 "a $form path-conversion suppressor is an export" \
--component "$ROOT/skills/$form/run.sh" --root "$ROOT"
has "run.sh:1 note=exported path-conversion suppressor" "the $form form is flagged at its line"
done
run 0 "a per-command suppressor is not an export" \
--component "$ROOT/skills/local-only/run.sh" --root "$ROOT"
has "windows-path-emit status=not-graded" "the per-command form is not graded"

mkdir -p "$ROOT/skills/clean"
cat >"$ROOT/skills/clean/SKILL.md" <<'EOF'
---
Expand Down
Loading