Repository navigation
refactor(permission): split shell analysis by responsibility - #795
Merged
Merged
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Separate syntax walks, nested shell invocations, wrappers, words, exec patterns, and reader analysis while keeping command and rule contracts in shell.rs. Move the existing tests with their subjects. Startup files and inherited variables share the invocation parser used by nested shells.
hakula139
force-pushed
the
refactor/permission-shell-modules
branch
from
November 1, 2026 09:20
7c02e89 to
651e8eb
Compare
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.
Summary
Shell permission analysis combined syntax walking, nested invocation, wrappers, word expansion, pattern parsing, and reader operands in one module. Each concern now has a private child module while command and permission interfaces remain at the parent boundary.
walk,invocation,wrapper,word,pattern, andreaderown their production logic and tests. Shell startup and inherited environment handling stay together ininvocation.Test plan
cargo fmt --check,cargo build, both Clippy runs,cargo doc --no-deps,cargo llvm-cov --show-missing-lines,pnpm format,pnpm lint, andpnpm spellcheckpass on651e8eb95. All applicable commit and push hooks pass. The macOS run has 3,496 passing tests and five existing ignored paid live tests, with 99.24% line coverage.first_errorruns only afterhas_error, excluding its search-exhaustion return.cargo deny checkwas not rerun. Current cross-platform CI is reported in the PR checks.