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

Update phpcs config with proper exclude pattern #3150

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

thg2k
Copy link
Contributor

@thg2k thg2k commented Jun 11, 2024

The pattern is actually matched as a regexp, so the trailing slash is necessary to avoid excluding unwanted files.

Also unified the patterns declared as 'arg' to the proper list.

Detailed list of changes:

  1. Unified 'arg' ignores with the 'exclude-pattern' list, sorted and removed duplicates

  2. Removed the following obsolete exclusions:

  • src/Reflection/SignatureMap/functionMap.php
  • src/Reflection/SignatureMap/functionMetadata.php
  1. Ran phpcbf on the following files that were wrongly excluded:
  • tests/PHPStan/Analyser/TraitStubFilesTest.php
  • tests/PHPStan/Parser/CachedParserTest.php

@ondrejmirtes
Copy link
Member

Can you please fix the conflict? Thanks.

The pattern is actually matched as a regexp, so the trailing slash
is necessary to avoid excluding unwanted files.

Also unified the patterns declared as 'arg' to the proper list.
@thg2k
Copy link
Contributor Author

thg2k commented Jun 18, 2024

Sure, I rebased it and also updated the PR's description with more details on the actual changes.

@ondrejmirtes ondrejmirtes merged commit 4e8224b into phpstan:1.11.x Jun 18, 2024
322 of 324 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

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.

2 participants