Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/1.1' into 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
a-menshchikov committed Aug 7, 2022
2 parents 4ec3035 + b8dfea2 commit 620ab83
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@
'simplified_null_return' => true,
'static_lambda' => true,
])
;
;
7 changes: 6 additions & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
<element value="@psalm-assert, @phan-assert" />
<element value="@property, @psalm-property" />
<element value="@see" />
<element value="@suppress, @psalm-suppress, @phpstan-ignore-line, @phpstan-ignore-next-line, @phan-file-suppress, @phan-suppress-next-line, @phan-suppress-current-line" />
<element value="@suppress, @psalm-suppress, @phpstan-ignore-line, @phpstan-ignore-next-line, @phan-file-suppress, @phan-suppress-next-line, @phan-suppress-current-line, @SuppressWarnings" />
</property>
</properties>
</rule>
Expand All @@ -172,6 +172,11 @@
</rule>
<rule ref="SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration" />
<rule ref="SlevomatCodingStandard.Commenting.UselessInheritDocComment" />
<rule ref="SlevomatCodingStandard.Complexity.Cognitive">
<properties>
<property name="maxComplexity" value="8" />
</properties>
</rule>
<rule ref="SlevomatCodingStandard.ControlStructures.DisallowYodaComparison" />
<rule ref="SlevomatCodingStandard.ControlStructures.NewWithParentheses" />
<rule ref="SlevomatCodingStandard.ControlStructures.RequireNullSafeObjectOperator" />
Expand Down
11 changes: 0 additions & 11 deletions phpmd-ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,6 @@
<rule ref="rulesets/cleancode.xml/DuplicatedArrayKey" />
<rule ref="rulesets/cleancode.xml/UndefinedVariable" />

<rule ref="rulesets/codesize.xml/CyclomaticComplexity">
<properties>
<property name="reportLevel" value="7" />
</properties>
</rule>
<rule ref="rulesets/codesize.xml/NPathComplexity">
<properties>
<property name="minimum" value="40" />
</properties>
</rule>

<rule ref="rulesets/codesize.xml/ExcessiveClassComplexity" />

<rule ref="rulesets/controversial.xml">
Expand Down

0 comments on commit 620ab83

Please sign in to comment.