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

Deal gracefully with symlinks #59

Closed
wants to merge 7 commits into from

Conversation

BrianHenryIE
Copy link
Member

@BrianHenryIE BrianHenryIE commented Jun 3, 2022

Needs tests.

Has a nice test that fails on main and passes with this PR.

Fixes #57

@BrianHenryIE BrianHenryIE marked this pull request as ready for review June 16, 2022 00:52
@BrianHenryIE BrianHenryIE requested a review from a team as a code owner June 16, 2022 00:52
Copy link
Member

@schlessera schlessera left a comment

Choose a reason for hiding this comment

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

Code looks good so far apart from a minor whitespace nitpick.

However, I think the testing needs to account for more scenarios to cover the code.

Comment on lines +232 to +233
wp-content
wordpress
Copy link
Member

Choose a reason for hiding this comment

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

The tests should trigger the extra regex rules as well to ensure they work as expected:

  • using an asterisk
  • using a slash
  • using a dot

@schlessera schlessera changed the title Fix #57 Check is there a symlink in the plugin; copy non-ignored files to temp Deal gracefully with symlinks Jun 30, 2022
BrianHenryIE and others added 2 commits June 30, 2022 22:43
@schlessera
Copy link
Member

@BrianHenryIE Now that I'm looking at the code again with fresh eyes... is there a reason why you're using closures in the first place? These two closures should rather be private methods of the class...

@BrianHenryIE
Copy link
Member Author

BrianHenryIE commented Jul 1, 2022

Not particularly. Probably because there's no PHPUnit tests needing them be callable functions.

Why private instead of protected? static still?

@danielbachhuber
Copy link
Member

Ship #61

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.

Symlink in ignored directory causing out of memory error
3 participants