Repository navigation
Dockerfile dash-flag members no longer miss on the leading word boundary (Part of #4108) - #7862
Merged
Merged
Conversation
…hNoTests, --no-audit) no longer miss on the leading word boundary (Part of #4108) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
3 of 13 tasks
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #4108 (slice 22, same pattern as #7837 for Elixir).
What
In
dockerfile.py, three rules carried members starting with-inside a leading\b(?:...)group.\bbefore-needs a word char on its left, sojava -Xmx512m,node --max-old-space-size=4096,app --log-level debug,npx jest --passWithNoTestsandnpm install --no-auditnever matched after whitespace. Those members move out of the\bgroup behind(?<![\w-])(sox--memory=1anda-Xmx1still don't fire):memory_alloc(--memory=,--max-old-space-size,-Xmx,-Xms),telemetry(--log-level ...),test_skip(--passWithNoTests,--no-audit). For the-Xmx/-Xms/--memory=/--max-old-space-sizemembers the trailing\bis dropped too: it required a non-word char after-Xmx, so-Xmx512mcould not match either.Test:
tests/extraction/languages/test_dockerfile_dash_flags_4108.py(9 fire, 4 no-fire).Evidence
RUN java -Xmx512m ...etc. returned no match; after, all fire.golden-lock.sh python tests/tools/crucible_check.py(check, both legs): PASS, no differences, no bless.pr_gates --fast: 9/9 pass. Existingtest_dockerfile*.py: pass.Class / Sibling gaps
Class: a regex alternation behind a leading
\bwhose member starts with a non-word character, so the\bcannot match after whitespace or punctuation. Swept by a scan of everylanguages/*.pyfor\b(?:groups with a non-word-first alternative. Handled here: the three dockerfile rules above (members--memory=,--max-old-space-size,-Xmx,-Xms,--log-level,--passWithNoTests,--no-audit), each tested. Sibling gaps (candidates from the scan, each needs its own read and golden check):agc_assembly.py:245(#\s*REF:),assembly.py:383(\.rodata),csharp.py:600(\[Inject\]),go.py:550(\.MatchString),java.py:556(\.matches\(),javascript.py:378(\.bind\(),kotlin.py:202(!is),lua.py:289(:[ \t]*close),ruby.py:308(::T::),scala.py:392(!ptr),swift.py:475(\.range\(of:),dart.py:170,386. Some may be intentional (e.g. sandwiched by an identifier). Related, not this class: dockerfiletest_skipskipTestsmisses-DskipTests(no boundary betweenDands).Remaining slices
One language per slice from the sibling list above (go/java/javascript/kotlin/scala/swift/dart/lua/ruby/csharp/assembly), each golden-checked.
🤖 Generated with Claude Code