Repository navigation
Elixir :os.putenv System Config Mutation: leading-boundary miss fixed (Part of #4108) - #7821
Merged
Merged
Conversation
… of #4108) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
Contributor
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 20, System Config Mutation).
Fixes the elixir
system_config_mutationrule: its leading\bsat before the colon of:os.putenv, so an Erlang-module call never matched. The alternation is now(?:\b(?:System.put_env|Application.put_env|File.(chmod|chown|rm_rf))|(?<![\w:]):os\.putenv)\b. The strict xfail is removed and the test now also assertsfoo:os.putenvstays 0.Class / Sibling gaps
Class: a leading
\bplaced before a non-word first character (:,~,@,$) so the alternative can never match at string start or after a space. Members in this rule::os.putenv(fixed here); the other alternatives start with a word character and were fine. Sibling gaps: other elixir rules beginning\b(?:...|:erlang_mod...)(e.g.:rpc.callin ipc_rpc_bridges,:gen_tcpin the same rule,:timer.in time_date_logic) have the same shape and are not fixed here; they need their own real-scan probes and golden attribution.Evidence
Real scan:
tests/extraction/languages/test_system_config_mutation_mainstream_real_scan_4108.py13 passed. Golden:crucible_check.py(no update) PASS on both full_precision and zero_dependency legs, zero diff, no re-bless.🤖 Generated with Claude Code