Skip to content

fix(ci): the invisible-character gate never matched anything - #64

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/empty-linter-pattern-never-matched
Aug 28, 2026
Merged

fix(ci): the invisible-character gate never matched anything#64
hyperpolymath merged 1 commit into
mainfrom
fix/empty-linter-pattern-never-matched

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Measured 2026-08-27: this gate caught 0 of 6 invisible-character test cases. It has never detected an NBSP, zero-width space, BOM, soft hyphen, bidi override or word joiner.

Root cause

The pattern used UTF-8 byte sequences (\xc2\xa0) while grep -P matches characters. Bytes c2 a0 are one character U+00A0; \xc2\xa0 asks for two, U+00C2 then U+00A0 — never present.

grep -P '\xc2\xa0'  ->  miss
grep -P '\x{a0}'    ->  MATCH

Only \x00 worked, being single-byte in both readings. The gate ran, passed, and could not see what it exists to see.

Fixed

  • codepoint escapes in place of byte sequences
  • C0 controls \x01-\x08,\x0B,\x0C,\x0E-\x1F added (TAB/LF/CR excluded)
  • grep -a — without it grep skips any NUL-bearing file as binary

The C0 range matters: a stray backspace byte made a workflow unparseable in developer-ecosystem, so it never ran — and this linter called it clean.

Canonical fix: hyperpolymath/empty-linter#70. 1 file(s) here.

Verified: YAML re-parsed, and the corrected pattern was confirmed to catch a real NBSP before the change was kept.

MEASURED 2026-08-27: this gate's pattern caught 0 OF 6 invisible-character test
cases. It has never detected an NBSP, zero-width space, BOM, soft hyphen, bidi
override or word joiner.

ROOT CAUSE: the pattern used UTF-8 BYTE sequences (\xc2\xa0) while grep -P
matches CHARACTERS. Bytes c2 a0 are ONE character U+00A0; \xc2\xa0 asks for TWO
characters, U+00C2 then U+00A0, which is never present.

  grep -P '\xc2\xa0'  ->  miss
  grep -P '\x{a0}'    ->  MATCH

Only \x00 worked, being single-byte in both readings.

FIXED: codepoint escapes; C0 control characters \x01-\x08,\x0B,\x0C,\x0E-\x1F
added (TAB/LF/CR excluded); and grep -a, without which grep skips any NUL-bearing
file as binary.

The C0 range matters: a stray BACKSPACE byte made a workflow unparseable in
developer-ecosystem, so it never ran, and this linter called it clean.

Canonical fix: hyperpolymath/empty-linter#70. 1 file(s) here.
VERIFIED: YAML re-parsed, and the corrected pattern was confirmed to catch a real
NBSP before the change was kept.
@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3f265ffa-8e72-46d9-936f-4ba5dffe1819

📥 Commits

Reviewing files that changed from the base of the PR and between 5a9d6cd and f058243.

📒 Files selected for processing (1)
  • .github/workflows/dogfood-gate.yml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: vordr-verification
⚠️ CI failures not shown inline (10)

GitHub Actions: Container Build / 2_container-build.txt: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

##[group]Run podman build -f .containerization/Containerfile -t fireflag:002ac71bb76dd08e4cfcde8e18864e5333bb14de .
 �[36;1mpodman build -f .containerization/Containerfile -t fireflag:002ac71bb76dd08e4cfcde8e18864e5333bb14de .�[0m
 shell: /usr/bin/bash -e {0}
 ##[endgroup]
 [1/4] STEP 1/5: FROM cgr.dev/chainguard/wolfi-base:latest AS guix-base
 Trying to pull cgr.dev/chainguard/wolfi-base:latest...
 Getting image source signatures
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying config sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Writing manifest to image destination
 [1/4] STEP 2/5: RUN apk add --no-cache     bash     wget     xz     gpg     tar     ca-certificates
 fetch https://apk.cgr.dev/chainguard/x86_64/APKINDEX.tar.gz
 ERROR: unable to select packages:
   tar (no such package):
     required by: world[tar]
 Error: building at STEP "RUN apk add --no-cache     bash     wget     xz     gpg     tar     ca-certificates": while running runtime: exit status 1
 ##[error]Process completed with exit code 1.

GitHub Actions: Selur Secrets Detection / 0_selur-scan.txt: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

##[group]Run ##########################################
 �[36;1m##########################################�[0m
 �[36;1m## ADVANCED USAGE                       ##�[0m
 �[36;1m## Scan by BASE & HEAD user inputs      ##�[0m
 �[36;1m## If BASE == HEAD, exit with error     ##�[0m
 �[36;1m##########################################�[0m
 �[36;1m# Check if jq is installed, if not, install it�[0m
 �[36;1mif ! command -v jq &> /dev/null�[0m
 �[36;1mthen�[0m
 �[36;1m  echo "jq could not be found, installing..."�[0m
 �[36;1m  apt-get -y update && apt-get install -y jq�[0m
 �[36;1mfi�[0m
 �[36;1m�[0m
 �[36;1mgit status >/dev/null  # make sure we are in a git repository�[0m
 �[36;1mif [ -n "$BASE" ] || [ -n "$HEAD" ]; then�[0m
 �[36;1m  if [ -n "$BASE" ]; then�[0m
 �[36;1m    base_commit=$(git rev-parse "$BASE" 2>/dev/null) || true�[0m
 �[36;1m  else�[0m
 �[36;1m    base_commit=""�[0m
 �[36;1m  fi�[0m
 �[36;1m  if [ -n "$HEAD" ]; then�[0m
 �[36;1m    head_commit=$(git rev-parse "$HEAD" 2>/dev/null) || true�[0m
 �[36;1m  else�[0m
 �[36;1m    head_commit=""�[0m
 �[36;1m  fi�[0m
 �[36;1m  if [ "$base_commit" == "$head_commit" ] ; then�[0m
 �[36;1m    echo "::error::BASE and HEAD commits are the same. TruffleHog won't scan anything. Please see documentation (https://github.com/trufflesecurity/trufflehog#octocat-trufflehog-github-action)."�[0m

GitHub Actions: Svalin Static Analysis / 0_svalin-analysis.txt: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

�[36;1mecho "::group::Security Pattern Check"�[0m
 �[36;1m�[0m
 �[36;1m# Check for eval usage�[0m
 �[36;1mif grep -r "eval(" extension/ --include="*.js"; then�[0m
 �[36;1m  echo "::warning::Found eval() usage - potential security risk"�[0m
 �[36;1mfi�[0m
 �[36;1m�[0m
 �[36;1m# Check for innerHTML with variables�[0m
 �[36;1mif grep -r "innerHTML.*=.*\${" extension/ --include="*.js"; then�[0m
 �[36;1m  echo "::warning::Found innerHTML with template literals - XSS risk"�[0m
 �[36;1mfi�[0m
 �[36;1m�[0m
 �[36;1m# Check for hardcoded secrets patterns�[0m
 �[36;1mif grep -rE "(password|secret|token|api[_-]?key)\s*=\s*['\"][^'\"]{8,}" extension/ --include="*.js"; then�[0m
 �[36;1m  echo "::error::Potential hardcoded secrets found"�[0m

GitHub Actions: Container Build / container-build: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

##[group]Run podman build -f .containerization/Containerfile -t fireflag:002ac71bb76dd08e4cfcde8e18864e5333bb14de .
 �[36;1mpodman build -f .containerization/Containerfile -t fireflag:002ac71bb76dd08e4cfcde8e18864e5333bb14de .�[0m
 shell: /usr/bin/bash -e {0}
 ##[endgroup]
 [1/4] STEP 1/5: FROM cgr.dev/chainguard/wolfi-base:latest AS guix-base
 Trying to pull cgr.dev/chainguard/wolfi-base:latest...
 Getting image source signatures
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying blob sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Copying config sha256:***REDACTED_HIGH_ENTROPY_STRING***
 Writing manifest to image destination
 [1/4] STEP 2/5: RUN apk add --no-cache     bash     wget     xz     gpg     tar     ca-certificates
 fetch https://apk.cgr.dev/chainguard/x86_64/APKINDEX.tar.gz
 ERROR: unable to select packages:
   tar (no such package):
     required by: world[tar]
 Error: building at STEP "RUN apk add --no-cache     bash     wget     xz     gpg     tar     ca-certificates": while running runtime: exit status 1
 ##[error]Process completed with exit code 1.

GitHub Actions: Selur Secrets Detection / selur-scan: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

##[group]Run ##########################################
 �[36;1m##########################################�[0m
 �[36;1m## ADVANCED USAGE                       ##�[0m
 �[36;1m## Scan by BASE & HEAD user inputs      ##�[0m
 �[36;1m## If BASE == HEAD, exit with error     ##�[0m
 �[36;1m##########################################�[0m
 �[36;1m# Check if jq is installed, if not, install it�[0m
 �[36;1mif ! command -v jq &> /dev/null�[0m
 �[36;1mthen�[0m
 �[36;1m  echo "jq could not be found, installing..."�[0m
 �[36;1m  apt-get -y update && apt-get install -y jq�[0m
 �[36;1mfi�[0m
 �[36;1m�[0m
 �[36;1mgit status >/dev/null  # make sure we are in a git repository�[0m
 �[36;1mif [ -n "$BASE" ] || [ -n "$HEAD" ]; then�[0m
 �[36;1m  if [ -n "$BASE" ]; then�[0m
 �[36;1m    base_commit=$(git rev-parse "$BASE" 2>/dev/null) || true�[0m
 �[36;1m  else�[0m
 �[36;1m    base_commit=""�[0m
 �[36;1m  fi�[0m
 �[36;1m  if [ -n "$HEAD" ]; then�[0m
 �[36;1m    head_commit=$(git rev-parse "$HEAD" 2>/dev/null) || true�[0m
 �[36;1m  else�[0m
 �[36;1m    head_commit=""�[0m
 �[36;1m  fi�[0m
 �[36;1m  if [ "$base_commit" == "$head_commit" ] ; then�[0m
 �[36;1m    echo "::error::BASE and HEAD commits are the same. TruffleHog won't scan anything. Please see documentation (https://github.com/trufflesecurity/trufflehog#octocat-trufflehog-github-action)."�[0m

GitHub Actions: Svalin Static Analysis / svalin-analysis: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

�[36;1mecho "::group::Security Pattern Check"�[0m
 �[36;1m�[0m
 �[36;1m# Check for eval usage�[0m
 �[36;1mif grep -r "eval(" extension/ --include="*.js"; then�[0m
 �[36;1m  echo "::warning::Found eval() usage - potential security risk"�[0m
 �[36;1mfi�[0m
 �[36;1m�[0m
 �[36;1m# Check for innerHTML with variables�[0m
 �[36;1mif grep -r "innerHTML.*=.*\${" extension/ --include="*.js"; then�[0m
 �[36;1m  echo "::warning::Found innerHTML with template literals - XSS risk"�[0m
 �[36;1mfi�[0m
 �[36;1m�[0m
 �[36;1m# Check for hardcoded secrets patterns�[0m
 �[36;1mif grep -rE "(password|secret|token|api[_-]?key)\s*=\s*['\"][^'\"]{8,}" extension/ --include="*.js"; then�[0m
 �[36;1m  echo "::error::Potential hardcoded secrets found"�[0m

GitHub Actions: Selur Secrets Detection / selur-scan: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

�[36;1mecho "::group::Custom Secret Detection"�[0m
 �[36;1m�[0m
 �[36;1m# Check for API keys in code�[0m
 �[36;1mif grep -rE "(api[_-]?key|apikey)\s*[:=]\s*['\"][a-zA-Z0-9]{20,}" extension/ --include="*.js"; then�[0m
 �[36;1m  echo "::error::Potential API key found in code"�[0m

GitHub Actions: Selur Secrets Detection / selur-scan: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

�[36;1mecho "::group::Sensitive File Detection"�[0m
 �[36;1m�[0m
 �[36;1m# Files that should not be committed�[0m
 �[36;1msensitive_files=(�[0m
 �[36;1m  "*.env"�[0m
 �[36;1m  "*.pem"�[0m
 �[36;1m  "*.key"�[0m
 �[36;1m  ".env.local"�[0m
 �[36;1m  ".env.production"�[0m
 �[36;1m  "secrets.json"�[0m
 �[36;1m  "credentials.json"�[0m
 �[36;1m)�[0m
 �[36;1m�[0m
 �[36;1mfound_sensitive=0�[0m
 �[36;1mfor pattern in "${sensitive_files[@]}"; do�[0m
 �[36;1m  if find . -name "$pattern" -type f | grep -v node_modules; then�[0m
 �[36;1m    echo "::error::Found sensitive file matching pattern: $pattern"�[0m

GitHub Actions: Selur Secrets Detection / selur-scan: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

##[group]GitIgnore Validation
 ##[warning].gitignore missing pattern: *.env
 ##[error]Process completed with exit code 1.

GitHub Actions: Svalin Static Analysis / svalin-analysis: fix(ci): the invisible-character gate never matched anything

Conclusion: failure

View job details

�[36;1mecho "::group::SPDX Header Check"�[0m
 �[36;1mmissing_headers=0�[0m
 �[36;1m�[0m
 �[36;1mfor file in $(find extension -name "*.js" -o -name "*.res" -o -name "*.html" -o -name "*.css"); do�[0m
 �[36;1m  if ! head -5 "$file" | grep -q "SPDX-License-Identifier"; then�[0m
 �[36;1m    echo "::warning::Missing SPDX header in $file"�[0m
 �[36;1m    ((missing_headers++))�[0m
 �[36;1m  fi�[0m
 �[36;1mdone�[0m
 �[36;1m�[0m
 �[36;1mif [ $missing_headers -gt 0 ]; then�[0m
 �[36;1m  echo "::error::$missing_headers files missing SPDX headers"�[0m
🔇 Additional comments (1)
.github/workflows/dogfood-gate.yml (1)

118-118: 🎯 Functional Correctness

No locale change is required: GNU grep 3.8 matches \x{a0} under LC_ALL=C, LC_ALL=POSIX, and LC_ALL=C.UTF-8, so the proposed false-clean result is not established.


📝 Walkthrough

Summary by CodeRabbit

  • Bug Fixes
    • Improved detection of invisible and control characters, including those in binary files.
    • Expanded validation coverage to identify additional Unicode formatting characters.

Walkthrough

The workflow expands invisible-character detection with Unicode code point escapes and scans binary files as text.

Changes

Invisible-character gate

Layer / File(s) Summary
Pattern and binary-file scan
.github/workflows/dogfood-gate.yml
The regex now detects additional control, formatting, and invisible characters. The grep command uses -a to scan binary files as text.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to f0582

This localized workflow fix improves detection of invisible characters without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review.

Poem

A rabbit checks each hidden sign

Zero-width marks now fall in line
Binary files join the scan
Control codes cannot hide again
The gate hops on, precise and bright

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The change implements codepoint escapes, C0 control detection, and grep -a. The provided summary does not show the required leading-BOM check, compiled-linter alignment, or estate-wide copy updates fr… Add the separate leading-BOM check and implement the remaining issue #70 requirements, or update the linked issue and PR scope to document that this change covers only the CI gate file.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: fixing the CI invisible-character gate.
Description check ✅ Passed The description directly explains the gate failure, root cause, implemented fixes, and verification.
Out of Scope Changes check ✅ Passed The two-line workflow change is directly related to fixing the invisible-character gate and does not show unrelated changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Linked Issues check

Explanation

The change implements codepoint escapes, C0 control detection, and grep -a. The provided summary does not show the required leading-BOM check, compiled-linter alignment, or estate-wide copy updates from issue #70.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@gitar-bot

gitar-bot Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

The PR correctly identifies and addresses a weakness in the invisible-character gate by migrating to PCRE codepoint escapes and ensuring NUL-bearing files are scanned. However, a significant logic flaw exists: using \x{...} sequences in grep -P requires the (*UTF) prefix to correctly handle characters outside the ASCII range.

Without this prefix, the command will likely fail or produce false positives for characters like the Word Joiner (U+2060). Furthermore, because stderr is redirected to /dev/null, these errors will be suppressed, leading to a false sense of security where the gate reports success despite a failed scan. There is also a lack of test fixtures to verify these CI changes.

About this PR

  • The PR lacks automated tests or fixture files (e.g., sample files containing invisible characters) to verify the gate's effectiveness. Without these, it is difficult to confirm that the new regex patterns correctly identify all target characters or to prevent future regressions.

Test suggestions

  • Missing: Verify detection of Non-Breaking Space (U+00A0) using codepoint escape
  • Missing: Verify detection of C0 control characters (e.g., Backspace \x08)
  • Missing: Verify grep scans files containing NUL bytes rather than skipping them
  • Missing: Verify detection of Word Joiner (U+2060) and other Unicode invisible characters
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Missing: Verify detection of Non-Breaking Space (U+00A0) using codepoint escape
2. Missing: Verify detection of C0 control characters (e.g., Backspace \x08)
3. Missing: Verify grep scans files containing NUL bytes rather than skipping them
4. Missing: Verify detection of Word Joiner (U+2060) and other Unicode invisible characters

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

# non-breaking spaces, null bytes, and other invisible Unicode in source files.
set +e
PATTERNS='\xc2\xa0|\xe2\x80\x8b|\xe2\x80\x8c|\xe2\x80\x8d|\xef\xbb\xbf|\xc2\xad|\xe2\x80\x8e|\xe2\x80\x8f|\xe2\x80\xaa|\xe2\x80\xab|\xe2\x80\xac|\xe2\x80\xad|\xe2\x80\xae|\x00'
PATTERNS='\x00|[\x01-\x08\x0B\x0C\x0E-\x1F]|\x{a0}|\x{ad}|\x{200b}|\x{200c}|\x{200d}|\x{200e}|\x{200f}|\x{202a}|\x{202b}|\x{202c}|\x{202d}|\x{202e}|\x{2060}|\x{feff}'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 HIGH RISK

Add the (*UTF) prefix to the pattern string to enable proper Unicode code point matching in PCRE mode. Without it, grep will fail with an error for any code point above 255 (such as the Zero Width Space or BOM) or incorrectly match single bytes of a UTF-8 sequence. Since stderr is redirected to /dev/null, these failures are currently invisible.

Suggested change
PATTERNS='\x00|[\x01-\x08\x0B\x0C\x0E-\x1F]|\x{a0}|\x{ad}|\x{200b}|\x{200c}|\x{200d}|\x{200e}|\x{200f}|\x{202a}|\x{202b}|\x{202c}|\x{202d}|\x{202e}|\x{2060}|\x{feff}'
PATTERNS='(*UTF)\x00|[\x01-\x08\x0B\x0C\x0E-\x1F]|\x{a0}|\x{ad}|\x{200b}|\x{200c}|\x{200d}|\x{200e}|\x{200f}|\x{202a}|\x{202b}|\x{202c}|\x{202d}|\x{202e}|\x{2060}|\x{feff}'

-o -name '*.idr' -o -name '*.zig' -o -name '*.v' -o -name '*.jl' \
-o -name '*.gleam' -o -name '*.hs' -o -name '*.ml' -o -name '*.sh' \) \
-exec grep -Prl "$PATTERNS" {} \; > /tmp/empty-lint-results.txt 2>/dev/null
-exec grep -aPrl "$PATTERNS" {} \; > /tmp/empty-lint-results.txt 2>/dev/null

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚪ LOW RISK

Nitpick: Remove the redundant -r flag. The find command is already handling the recursion and passing individual file paths to grep via the -exec argument.

Suggested change
-exec grep -aPrl "$PATTERNS" {} \; > /tmp/empty-lint-results.txt 2>/dev/null
-exec grep -aPl "$PATTERNS" {} \; > /tmp/empty-lint-results.txt 2>/dev/null

@hyperpolymath
hyperpolymath enabled auto-merge (squash) August 28, 2026 07:32
@hyperpolymath
hyperpolymath merged commit 653da47 into main Aug 28, 2026
33 of 36 checks passed
@hyperpolymath
hyperpolymath deleted the fix/empty-linter-pattern-never-matched branch August 28, 2026 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant