Repository navigation
Elixir Erlang-atom calls (:rpc.call, :gen_tcp, :ets, ...) no longer miss on the leading word boundary (Part of #4108) - #7837
Merged
Conversation
…iss on the leading word boundary (Part of #4108) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
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 21, follow-up to #7821).
What
An Erlang module call in Elixir (
:rpc.call,:gen_tcp.send,:ets.insert, ...) starts with a colon, so a leading\bbefore it needs a word character on its left. It never matched after a space,(or=. Slice 20 fixed:os.putenv; this fixes the same mechanism in the other nine rules that carried a colon atom inside a\b(?:...)group:ipc_rpc_bridges,io,high_risk_execution,state_mutation,globals,scientific,events,thread_sleeps,sync_locks. Each colon atom moves out of the\bgroup behind(?<![\w:])(sofoo:ets.insertanda::mathstill don't fire).Tests:
tests/extraction/languages/test_elixir_erlang_atom_calls_4108.py(14 fire cases, 5 no-fire cases). There were no strict xfails for these siblings to flip, so the test is new.Evidence
x = :rpc.call(...),(:gen_tcp.connect(...)),:ets.insertetc. gave False for all excepttime_date_logic. After: all True.golden-lock.sh python tests/tools/crucible_check.py(check mode, both legs): PASS, no differences, so no bless.pr_gates --fast: lint and audits PASS locally; the rest is left to CI.test_elixir_strict.py, the slice-20 test and the new test: 41 passed.Class / Sibling gaps
Class: a regex rule whose alternation starts with
\band whose member begins with a non-word character (:atom), so the\bcannot match after whitespace or punctuation. Members handled here: the nine elixir rules above, each with a test.time_date_logic(:timer\.) already sat outside the\bgroup and was fine. Sibling gaps: the same shape in other languages' rules (any\b(?:...|<non-word-start>...)alternation) was not swept here; other elixir rules were not audited beyond the colon atoms listed.Remaining slices
Cross-language sweep of a leading
\bbefore a non-word first character (one language at a time, golden-checked).🤖 Generated with Claude Code