Repository navigation
Conversation
…om parent directories and add extensive tests
.gitignore files during file scanning
Contributor
Author
|
Addresses #205 |
Collaborator
|
Overall idea is sound, but there seem to be some spurious changes / files added and ci doesn't pass, let me know when this is fixed and ready for review! |
Changed `mockImplementation` and `mockReturnValue` types from `any` to `unknown` to improve type safety and avoid complex type issues. Updated comment to reflect the use of `@ts-expect-error` for simplified mock types.
Contributor
Author
|
@tibo-openai Good to go |
Contributor
|
any chance this will still be added? |
|
Related to #300 |
Closed
Contributor
Author
|
Any chance on getting this one merged? |
Contributor
Author
|
@bolinfest Maybe you can help us out here? |
Contributor
Author
|
Bump |
|
Thanks for the contribution! We're primarily focused on the native/Rust implementation of Codex CLI and would love to see if this is still an issue on the latest version. If it is, we're happy to take a look at a PR to the |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Description
This PR adds support for respecting
.gitignorefiles when scanning project files. The system will now properly ignore files and directories that are specified in the project's.gitignorefile, ensuring that we don't process files that the project owner has explicitly marked as ignored.Changes
.gitignorefiles in the current directory or parent directories.gitignorepatterns and converting them to RegExp patternsKnown Limitations
The current implementation has a few known limitations:
!)**glob syntaxThese limitations are documented in the tests and could be addressed in future improvements.
Testing
.gitignorehandling functionality.gitignorefiles, reading patterns, converting patterns to RegExp, and path matching