Skip to content

feat: allow user to pass multiple files to fix and check commands#1921

Draft
sinrohit-desco wants to merge 3 commits intomolybdenumsoftware:masterfrom
sinrohit-desco:patch-1
Draft

feat: allow user to pass multiple files to fix and check commands#1921
sinrohit-desco wants to merge 3 commits intomolybdenumsoftware:masterfrom
sinrohit-desco:patch-1

Conversation

@sinrohit-desco
Copy link
Copy Markdown

Resolves oppiliappan#118

@mightyiam
Copy link
Copy Markdown
Member

Would you mind adding some tests, please?

@sinrohit-desco
Copy link
Copy Markdown
Author

Would you mind adding some tests, please?

Sorry, I have added I forgot to push and also resolving the conflicts

Copy link
Copy Markdown
Member

@mightyiam mightyiam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Q: what's one minimal precursor refactor that could be extracted from this total change? If there is one, perhaps extracting it into its own commit would make this easier to review?

Comment thread bin/tests/multi_file.rs Outdated
Comment thread bin/tests/multi_file.rs Outdated
Comment thread bin/tests/multi_file.rs Outdated
Comment thread bin/tests/multi_file.rs Outdated
Comment thread bin/tests/multi_file.rs Outdated
Comment thread bin/tests/multi_file.rs Outdated
Comment thread bin/tests/multi_file.rs Outdated
Comment thread bin/tests/multi_file.rs Outdated
@mightyiam
Copy link
Copy Markdown
Member

Is the file discovery and ignoring behavior tested at the moment? If not, I think it should be, as a precursor PR. What do you think?

@sinrohit-desco
Copy link
Copy Markdown
Author

Is the file discovery and ignoring behavior tested at the moment? If not, I think it should be, as a precursor PR. What do you think?

I had tested this change myself and we have been using this change in our org for a few months now, so I would like to say that it is tested.

Replace hand-rolled Walker iterator and build_ignore_set with
ignore::WalkBuilder from the same ignore crate. Earlier we were using
ignore::gitignore API for pattern matching and a
custom Walker struct for directory traversal. WalkBuilder combines
both — it walks directories and applies gitignore rules.
Copy link
Copy Markdown
Member

@mightyiam mightyiam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm... what do you think of this plan:

  1. PR that replaces existing file matching implementation with the use of a library.
  2. PR that adds support for multiple files

?

@sinrohit-desco sinrohit-desco marked this pull request as draft April 24, 2026 07:24
@sinrohit-desco sinrohit-desco marked this pull request as draft April 24, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

statix check on multiple files

2 participants