Skip to content

Conversation

westonruter
Copy link
Member

This is a follow up to #1264. I had an unstaged file in a plugin directory, and I found that lint-staged was running PHPCS on it. This is because the composer lint:${ plugin } command includes the plugin directory as its initial argument. This has the effect of checking all of the files in the directory tree, in addition to the staged files passed by lint-staged. To avoid this we have to run the underlying composer lint command and manually pass the --standard arg.

@westonruter westonruter added [Type] Bug An existing feature is broken skip changelog PRs that should not be mentioned in changelogs labels May 31, 2024
@westonruter westonruter added this to the performance-lab 3.2.0 milestone May 31, 2024
@westonruter westonruter requested a review from thelovekesh May 31, 2024 21:41
Copy link

github-actions bot commented May 31, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: thelovekesh <thelovekesh@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@westonruter westonruter merged commit 29361ec into trunk May 31, 2024
@westonruter westonruter deleted the fix/lint-staged-phpcs branch May 31, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changelog PRs that should not be mentioned in changelogs [Type] Bug An existing feature is broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants