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

Anonymous function lint #901

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Anonymous function lint #901

merged 1 commit into from
Sep 25, 2024

Conversation

mattwiebe
Copy link
Contributor

This is what wpcom demands, apparently :)

@mattwiebe mattwiebe requested a review from pfefferle September 25, 2024 19:25
@mattwiebe mattwiebe merged commit b469c23 into master Sep 25, 2024
21 checks passed
@mattwiebe mattwiebe deleted the fix/wpcom-lint branch September 25, 2024 19:29
@obenland
Copy link
Member

It's part of Core's PHP Coding Standards.

How would you feel about requiring them for this plugin?

@pfefferle
Copy link
Member

@obenland I thought we do that, I have no idea why this was not checked: https://github.com/Automattic/wordpress-activitypub/blob/master/phpcs.xml

@obenland
Copy link
Member

So many exceptions! 😱

I'm not sure, it's been a while since I tried setting that up. Maybe all warnings need to elevated to errors for them to be blocked from going in? https://github.com/Automattic/wpcomsh/blob/trunk/phpcs.xml.dist#L35-L36

@pfefferle
Copy link
Member

pfefferle commented Sep 26, 2024

Yes, @mattwiebe worked quite some time on it, so that it is compatible with WP.com

@mattwiebe
Copy link
Contributor Author

Those exceptions are mostly mimicking stuff I found on the wpcom side :)

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.

3 participants