mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-29 00:25:17 +03:00
94 lines
3.0 KiB
XML
94 lines
3.0 KiB
XML
<?xml version="1.0"?>
|
|
<ruleset>
|
|
<arg name="basepath" value="." />
|
|
<arg name="extensions" value="php" />
|
|
<arg name="parallel" value="80" />
|
|
<arg name="cache" value=".phpcs-cache" />
|
|
<arg name="colors" />
|
|
|
|
<!-- Ignore warnings, show progress of the run and show sniff names -->
|
|
<arg value="nps" />
|
|
|
|
<file>src</file>
|
|
<file>tests</file>
|
|
|
|
<rule ref="Doctrine">
|
|
<!--Disable PHP7+ features that might cause BC breaks for now -->
|
|
<exclude name="SlevomatCodingStandard.Classes.ClassConstantVisibility.MissingConstantVisibility" />
|
|
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint" />
|
|
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint" />
|
|
</rule>
|
|
|
|
<!--@api annotation is required for now -->
|
|
<rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration">
|
|
<properties>
|
|
<property
|
|
name="usefulAnnotations"
|
|
type="array"
|
|
value="
|
|
@after,
|
|
@afterClass,
|
|
@AfterMethods,
|
|
@api,
|
|
@Attribute,
|
|
@Attributes,
|
|
@before,
|
|
@beforeClass,
|
|
@BeforeMethods,
|
|
@covers,
|
|
@coversDefaultClass,
|
|
@coversNothing,
|
|
@dataProvider,
|
|
@depends,
|
|
@deprecated,
|
|
@doesNotPerformAssertions,
|
|
@Enum,
|
|
@expectedDeprecation,
|
|
@expectedException,
|
|
@expectedExceptionCode,
|
|
@expectedExceptionMessage,
|
|
@expectedExceptionMessageRegExp,
|
|
@group,
|
|
@Groups,
|
|
@IgnoreAnnotation,
|
|
@internal,
|
|
@Iterations,
|
|
@link,
|
|
@ODM\,
|
|
@ORM\,
|
|
@requires,
|
|
@Required,
|
|
@Revs,
|
|
@runInSeparateProcess,
|
|
@runTestsInSeparateProcesses,
|
|
@see,
|
|
@Target,
|
|
@test,
|
|
@throws,
|
|
@uses
|
|
"
|
|
/>
|
|
</properties>
|
|
</rule>
|
|
|
|
<rule ref="SlevomatCodingStandard.Commenting.ForbiddenAnnotations">
|
|
<properties>
|
|
<property
|
|
name="forbiddenAnnotations"
|
|
type="array"
|
|
value="
|
|
@author,
|
|
@category,
|
|
@copyright,
|
|
@created,
|
|
@license,
|
|
@package,
|
|
@since,
|
|
@subpackage,
|
|
@version
|
|
"
|
|
/>
|
|
</properties>
|
|
</rule>
|
|
</ruleset>
|