Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactors path expansion for CLI inputs #1243

Merged
merged 2 commits into from Jun 24, 2022
Merged

Refactors path expansion for CLI inputs #1243

merged 2 commits into from Jun 24, 2022

Conversation

scalvert
Copy link
Contributor

Updates file path expansion logic to simplify and correctly observe path exclusions. Fixes a long standing bug with Checkup incorrectly including dot paths/directories.

Comment on lines +536 to +537
expect(filtered).toContain('2 files analyzed');
expect(unfiltered).toContain('4 files analyzed');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This applies to all of the tests that were changed, but the new path expansion logic fixes an issue whereby Checkup was inadvertently including files that should have been excluded. This optimization has had the knock on effect of changing the test output.

@@ -1,4 +1,4 @@
import * as chalk from 'chalk';
import chalk from 'chalk';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This import was incorrect, and somehow slipped through the ESM conversion.

@scalvert scalvert merged commit 6e6aa9b into main Jun 24, 2022
@scalvert scalvert deleted the fix-path-expansion branch June 24, 2022 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant