mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Add complexity function name echoing
This commit is contained in:
parent
3636a9e361
commit
0b605d6b3c
@ -77,6 +77,7 @@
|
|||||||
<xs:attribute name="allowNamedArgumentCalls" type="xs:boolean" default="true" />
|
<xs:attribute name="allowNamedArgumentCalls" type="xs:boolean" default="true" />
|
||||||
<xs:attribute name="reportInfo" 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="restrictReturnTypes" type="xs:boolean" default="false" />
|
||||||
|
<xs:attribute name="limitMethodComplexity" type="xs:boolean" default="false" />
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
|
|
||||||
<xs:complexType name="ProjectFilesType">
|
<xs:complexType name="ProjectFilesType">
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
ensureArrayIntOffsetsExist="false"
|
ensureArrayIntOffsetsExist="false"
|
||||||
resolveFromConfigFile="true"
|
resolveFromConfigFile="true"
|
||||||
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
|
xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd"
|
||||||
|
limitMethodComplexity="false"
|
||||||
>
|
>
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
<directory name="src"/>
|
<directory name="src"/>
|
||||||
|
@ -705,7 +705,8 @@ class StatementsAnalyzer extends SourceAnalyzer
|
|||||||
&& $mean > $codebase->config->max_avg_path_length
|
&& $mean > $codebase->config->max_avg_path_length
|
||||||
&& $branching > 1.1
|
&& $branching > 1.1
|
||||||
) {
|
) {
|
||||||
// do something
|
echo $source->getId() . "\n";
|
||||||
|
// do something else
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user