Skip to content

Fix the word boundary probe in the Inki style linter - #3466

Merged
pwizla merged 1 commit into
mainfrom
repo/fix-style-lint-word-boundary
Sep 11, 2026
Merged

Fix the word boundary probe in the Inki style linter#3466
pwizla merged 1 commit into
mainfrom
repo/fix-style-lint-word-boundary

Conversation

@derrickmehaffy

Copy link
Copy Markdown
Member

This PR fixes the word boundary probe in the inki style linter. It ran grep -E '\b' against /dev/null, which matches nothing and exits 1 on every platform, so the GNU branch was never taken and Linux fell through to the BSD-only [[:<:]] classes that GNU grep rejects. The result was that the easy-words, casual-language, multi-action-step, spelled-number and all-caps checks silently produced no findings on Linux, with their errors going to stderr while the script still exited 0. Probing with real input fixes the detection. The script is not referenced by any workflow, so this changes only what /inki:style-check and the style-checker agent report.

The probe ran grep against /dev/null, which matches nothing and exits 1 on
every platform, so the GNU branch was never taken. Linux fell through to the
BSD-only [[:<:]] classes that GNU grep rejects, and the checks using them
produced no output while their errors went to stderr. Probing with real input
fixes the detection, which restores the easy-words, casual-language,
multi-action-step, spelled-number and all-caps checks on Linux.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
documentation Ready Ready Preview Sep 10, 2026 5:41pm UTC

Request Review

@github-actions github-actions Bot added pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo internal PRs created by the Strapi core team labels Sep 10, 2026
@pwizla

pwizla commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Thanks, good catch, highlights the importance on testing things on multiple OSes <3

@pwizla pwizla added this to the 7.2.0 milestone Sep 11, 2026
@pwizla pwizla changed the title Fix the word boundary probe in the inki style linter Fix the word boundary probe in the Inki style linter Sep 11, 2026
@pwizla
pwizla merged commit e1be0cd into main Sep 11, 2026
9 checks passed
@pwizla
pwizla deleted the repo/fix-style-lint-word-boundary branch September 11, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal PRs created by the Strapi core team pr: chore source: repo PRs/issues not targeting a specific documentation but rather affecting the whole repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants