Skip to content

Commit

Permalink
qa: omit test shims from CS checks
Browse files Browse the repository at this point in the history
- Adds exclusion to prevent CS checks on shims
- Excludes ReferenceViaFullyQualifiedName check in test autoloader

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Sep 13, 2021
1 parent f393f89 commit 8790173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions phpcs.xml.dist
Expand Up @@ -16,6 +16,7 @@
<file>bin</file>
<file>src</file>
<file>test</file>
<exclude-pattern>test/TestAsset/laminas-code/*.php</exclude-pattern>

<!-- Include all rules from the Laminas Coding Standard -->
<rule ref="LaminasCodingStandard"/>
Expand Down
2 changes: 1 addition & 1 deletion test/autoload.php
@@ -1,4 +1,4 @@
<?php // phpcs:disable Generic.Files.LineLength.TooLong
<?php // phpcs:disable Generic.Files.LineLength.TooLong,SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName

if (PHP_VERSION_ID >= 80100) {
require __DIR__ . '/TestAsset/laminas-code/ParameterReflection.php';
Expand Down

0 comments on commit 8790173

Please sign in to comment.