Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

fix: don't match config with ignores and name only#133

Merged
nzakas merged 1 commit intohumanwhocodes:mainfrom
mdjermanovic:ignores-name-match
Apr 3, 2024
Merged

fix: don't match config with ignores and name only#133
nzakas merged 1 commit intohumanwhocodes:mainfrom
mdjermanovic:ignores-name-match

Conversation

@mdjermanovic
Copy link
Contributor

Follow-up to #131.

Filters out name when determining whether a config with ignores but without files matches. The new behavior will be that a config with only name and ignores does not match any file path, as it's an object for global ignores.

I don't think this makes a functional difference, aside from debug output, because those config objects are essentially empty.

Copy link
Contributor

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants