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

add exclude paths option #21

Merged
merged 2 commits into from
Sep 7, 2024

Conversation

denise-kao
Copy link
Contributor

@denise-kao denise-kao commented Sep 6, 2024

Copy link
Contributor

@WalterWoshid WalterWoshid left a comment

Choose a reason for hiding this comment

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

Otherwise great job, thanks for your contribution :)

@@ -107,6 +107,11 @@ public function findFile($namespacedClass): false|string

$filePath = Path::resolve($filePath);

foreach ($this->options->getExcludePaths() as $path) {
if (str_starts_with($filePath, $path)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think Path::resolve($path) would be better, so that relative paths and slight differences in paths match.

@WalterWoshid WalterWoshid added the enhancement 🎆 New feature or request label Sep 6, 2024
@denise-kao denise-kao removed their assignment Sep 6, 2024
@WalterWoshid WalterWoshid merged commit 5106027 into okapi-web:master Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🎆 New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants