1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-29 20:28:59 +01:00

Add complexity function name echoing

This commit is contained in:
Matt Brown 2020-11-27 05:28:46 -05:00 committed by Daniil Gentili
parent 3636a9e361
commit 0b605d6b3c
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 4 additions and 1 deletions

View File

@ -77,6 +77,7 @@
<xs:attribute name="allowNamedArgumentCalls" type="xs:boolean" default="true" />
<xs:attribute name="reportInfo" type="xs:boolean" default="true" />
<xs:attribute name="restrictReturnTypes" type="xs:boolean" default="false" />
<xs:attribute name="limitMethodComplexity" type="xs:boolean" default="false" />
</xs:complexType>
<xs:complexType name="ProjectFilesType">

View File

@ -14,6 +14,7 @@
ensureArrayIntOffsetsExist="false"
resolveFromConfigFile="true"
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
limitMethodComplexity="false"
>
<projectFiles>
<directory name="src"/>

View File

@ -705,7 +705,8 @@ class StatementsAnalyzer extends SourceAnalyzer
&& $mean > $codebase->config->max_avg_path_length
&& $branching > 1.1
) {
// do something
echo $source->getId() . "\n";
// do something else
}
}