Repository navigation
feat: initFilter allows looking other file types, ignore other than /_. - #19
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a customizable initial filter for import trees, adds a .files shorthand to retrieve filtered files directly, and updates tests and docs to use these new features.
- Add
initfparameter andinitFilterAPI to override default file filter - Implement
.filesattribute as a shortcut forleafs.result - Update tests and README to cover
initFilterand.files
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| default.nix | Introduce initf, compute nixFilter, wire up initFilter and .files, remove old leafs.result usage |
| checkmate.nix | Swap leafs.result to .files in tests, add tests for initFilter behavior |
| README.md | Document new .initFilter and .files APIs, update usage examples |
Comments suppressed due to low confidence (2)
default.nix:6
- [nitpick] The parameter
initfis ambiguous and doesn’t match the exportedinitFiltermethod; consider renaming it toinitFilterfor clarity and consistency.
initf ? null,
default.nix:32
- The variable
treeFilesis introduced but never used; consider removing it to clean up dead code.
treeFiles = t: (t.withLib lib).files;
Co-authored-by: Copilot <[email protected]>
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.
No description provided.