housebroken-cli 0.6.1__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/PKG-INFO +1 -1
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/pyproject.toml +1 -1
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/comment-check.sh +13 -3
- housebroken_cli-0.6.2/src/housebroken/__init__.py +1 -0
- housebroken_cli-0.6.1/src/housebroken/__init__.py +0 -1
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/.gitignore +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/LICENSE +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/README.md +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/bin/housebroken +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/hatch_build.py +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/branch-check.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/check-ai-policy.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/claim-check.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/comment-census.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/diff-defaults.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/distinct-outside.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/file-pr.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/fork-hygiene.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/inbox.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/notes.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/pr-sweep.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/prior-art.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/review.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/scripts/verify-filed-pr.sh +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/skills/housebroken/SKILL.md +0 -0
- {housebroken_cli-0.6.1 → housebroken_cli-0.6.2}/src/housebroken/cli.py +0 -0
|
@@ -118,11 +118,21 @@ while IFS= read -r f; do
|
|
|
118
118
|
|
|
119
119
|
# An added comment line is refused unless a removed comment line in the same
|
|
120
120
|
# hunk pays for it, or it is in the leading comment block of a new file whose
|
|
121
|
-
# neighbours open with one.
|
|
122
|
-
|
|
121
|
+
# neighbours open with one. Every added line between an added /* and its */
|
|
122
|
+
# is a comment, whatever it starts with.
|
|
123
|
+
blk=0
|
|
124
|
+
case "$re" in *'/[*]'*) blk=1 ;; esac
|
|
125
|
+
awk -F'\t' -v re="$re" -v hdr="$header_ok" -v file="$f" -v blk="$blk" '
|
|
123
126
|
$1 == "-" { if ($4 ~ re) rem[$2]++; next }
|
|
124
127
|
$1 == "+" {
|
|
125
|
-
|
|
128
|
+
iscom = ($4 ~ re)
|
|
129
|
+
if (blk == 1) {
|
|
130
|
+
if ($3 != prev + 1) inblock = 0
|
|
131
|
+
prev = $3
|
|
132
|
+
if (inblock) { iscom = 1; if ($4 ~ /[*]\//) inblock = 0 }
|
|
133
|
+
else if ($4 ~ /^[[:space:]]*\/[*]/ && $4 !~ /[*]\//) inblock = 1
|
|
134
|
+
}
|
|
135
|
+
if (iscom) {
|
|
126
136
|
if (rem[$2] > 0) { rem[$2]--; next }
|
|
127
137
|
if (hdr == 1 && !code_seen) next
|
|
128
138
|
text = $4; sub(/^[[:space:]]+/, "", text)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.6.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.6.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|