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 reduce scripts: import order in derivable-list.py, an unused parameter default in value-sites.py, and a missing shellcheck disable reason in collision-hotspots.sh.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ while IFS= read -r path; do
for glob in "${excludes[@]}"; do
target="$base"
[[ "$glob" == */* ]] && target="$path"
# shellcheck disable=SC2053
# shellcheck disable=SC2053 # the right side is a glob by design
[[ "$target" == $glob ]] && hit=1
done
((hit)) && excluded+="$path"$'\n'
Expand Down
2 changes: 1 addition & 1 deletion plugins/coupling/skills/reduce/scripts/derivable-list.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
import io
import json
import posixpath
from pathlib import Path
import re
import subprocess
import sys
import unicodedata
from pathlib import Path

# Judgment values, stated in the skill: 80% leaves room for the stale entries a
# drifting list carries while ruling out a list whose entries mostly hold data
Expand Down
2 changes: 1 addition & 1 deletion plugins/coupling/skills/reduce/scripts/value-sites.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def render(tag: str, new: str) -> str | None:
return f"{prefix}{m.group(1).lower()}/{rest}"


def bounded(line: str, start: int, end: int, tag: str = "exact") -> bool:
def bounded(line: str, start: int, end: int, tag: str) -> bool:
if (
tag in ("msys", "wsl")
and start > 0
Expand Down
Loading