Skip to content

W-18506859: exclude node_modules dir from yaml files inspection#143

Merged
shetzel merged 2 commits intomainfrom
er/exclude-node_modules-from-yaml-inspection
May 16, 2025
Merged

W-18506859: exclude node_modules dir from yaml files inspection#143
shetzel merged 2 commits intomainfrom
er/exclude-node_modules-from-yaml-inspection

Conversation

@EstebanRomero84
Copy link
Copy Markdown
Contributor

@EstebanRomero84 EstebanRomero84 commented May 16, 2025

What does this PR do?

Excludes YAML files fromnode_modules directory as suggestions for file specs.

What issues does this PR fix or reference?

@W-18506859@

Comment thread test/flags.test.ts
'subdir/file4.yaml',
'node_modules/file5.yml',
'excluded/file6.yaml',
] as const;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This works on posix as intended but it only works on Windows because of how the test expectations are written (without join or path.sep). On windows, I bet all the files are written directly within testDir with file names of excluded/file6.yaml, etc.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Got it. Thanks for fixing it.

@shetzel shetzel merged commit a58ca3b into main May 16, 2025
13 checks passed
@shetzel shetzel deleted the er/exclude-node_modules-from-yaml-inspection branch May 16, 2025 20:14
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.

2 participants