Skip to content

Conversation

@martinemde
Copy link
Contributor

When validate was called with a file list, it validated all provided files without filtering by owned_globs configuration. This caused files that should be skipped (like .rbi when owned_globs only includes .rb) to be incorrectly reported as unowned.

The fix filters file paths by owned_globs and unowned_globs before validation, making behavior consistent with validate without files.

When validate was called with a file list, it validated all provided
files without filtering by owned_globs configuration. This caused
files that should be skipped (like .rbi when owned_globs only includes
.rb) to be incorrectly reported as unowned.

The fix filters file paths by owned_globs and unowned_globs before
validation, making behavior consistent with validate without files.

Added test using .rbi files to prove the bug existed and verify the
fix works correctly.
@martinemde martinemde force-pushed the martinemde/push-xlvtruwulqtq branch from 9e9aa9d to 00c6788 Compare December 9, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

Files passed to validate on command line can fail when they should be skipped

2 participants