Repository navigation
fix(ci): the invisible-character gate never matched anything #77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -133,7 +133,7 @@ jobs: | |||||
| # Checks for: zero-width spaces, zero-width joiners, BOM, soft hyphens, | ||||||
| # 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='(*UTF)[\x00-\x08\x0B\x0C\x0E-\x1F\x{a0}\x{ad}\x{200b}-\x{200f}\x{202a}-\x{202f}\x{2060}\x{2066}-\x{2069}\x{feff}]' | ||||||
| find "$GITHUB_WORKSPACE" \ | ||||||
| -not -path '*/.git/*' -not -path '*/node_modules/*' \ | ||||||
| -not -path '*/.deno/*' -not -path '*/target/*' \ | ||||||
|
|
@@ -144,7 +144,7 @@ jobs: | |||||
| -o -name '*.yml' -o -name '*.yaml' -o -name '*.md' -o -name '*.adoc' \ | ||||||
| -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 | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ⚪ LOW RISK Suggestion: The
Suggested change
|
||||||
| EL_EXIT=$? | ||||||
| set -e | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: hyperpolymath/ideas-to-alphas
Length of output: 13499
🌐 Web query:
Unicode U+202F narrow no-break space legitimate French typography Mongolian Unicode Standard💡 Result:
The Unicode character U+202F NARROW NO-BREAK SPACE (NNBSP) is a legitimate and widely accepted character for both Mongolian text and French typography [1][2][3]. Mongolian Unicode Standard U+202F was originally encoded in the General Punctuation block to address specific requirements of the Mongolian script [4][5]. In Mongolian, it is used before certain grammatical suffixes to provide a small, non-breaking space that also triggers special character shaping [1][6]. It is a fundamental component of the Mongolian Unicode Standard [6]. French Typography In French typography, U+202F is the standard recommendation for representing the "espace fine insécable" (non-breaking thin space) [1][7]. French typographic rules often require a thin, non-breaking space before specific punctuation marks (such as the semicolon, colon, exclamation mark, and question mark) and inside guillemets (« ») [3][8]. Because legacy 8-bit character sets lacked a specific character for this, the non-breaking space (U+00A0) was historically used as a common, albeit wider, approximation [9]. U+202F is now considered the preferred character for this purpose, as it maintains the correct visual balance and prevents the overly wide gaps sometimes caused by using standard non-breaking spaces [2][7]. Status and Usage While its primary encoding goal was to serve Mongolian, the Unicode Consortium designed U+202F as a general-purpose character [4]. It is widely recognized in modern digital typography and locale data (such as the Common Locale Data Repository, CLDR) as the appropriate choice for the French "espace fine insécable" and as a digit group separator in various locales [2][7]. Top_Results: [1][2][7][3][6]
Citations:
Exclude U+202F unless the policy explicitly rejects it.
The pattern matches U+202F, so valid French or Mongolian text in Markdown or AsciiDoc files can trigger a warning. End the range at
\x{202e}and add a regression case.🤖 Prompt for AI Agents
Source: MCP tools