feat: Set review_code include/exclude paths in config file #130
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.
This PR adds the ability to set
review_code_include_pathsandreview_code_exclude_pathsin config file.Options are used when
review_codeis invoked.It allows to run focused reviews and do it much faster:
Why not use metisignore
I treat metisignore file as a global ignore file - essentially
.gitignoreclone. It lists files that model should never see or interact with (e.g..venv,node_modules...)But it lacks the ability to set files and folders that I'd like to include or exclude from code review process:
--codebase-pathis not an option because it changes the base directory and messes with metisignore file (it will not be loaded)review_code(to not runreview_fileon them) but not completely. Because those files might be useful in Relevant Context (gathered via embeddings or tools).Example Usage
It configures to run
review_codeonly in thebackend/folder and defines files and folders to exclude from individual review.Excluded files are not important and shoudn't be reviewed individually - BUT they could and should be used for Relevant Context. That's why the need for these options.
Testing
Passes pre-commit and tests.
Run
review_codeon actual project to test that it works accordingly.