From 0b605d6b3c1d4b135bf5594a64dd231763da8fce Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Fri, 27 Nov 2020 05:28:46 -0500 Subject: [PATCH] Add complexity function name echoing --- config.xsd | 1 + psalm.xml.dist | 1 + src/Psalm/Internal/Analyzer/StatementsAnalyzer.php | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.xsd b/config.xsd index eda8fc5b6..a14b58675 100644 --- a/config.xsd +++ b/config.xsd @@ -77,6 +77,7 @@ + diff --git a/psalm.xml.dist b/psalm.xml.dist index cb4ff5c31..5c32350bc 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -14,6 +14,7 @@ ensureArrayIntOffsetsExist="false" resolveFromConfigFile="true" xsi:schemaLocation="https://getpsalm.org/schema/config config.xsd" + limitMethodComplexity="false" > diff --git a/src/Psalm/Internal/Analyzer/StatementsAnalyzer.php b/src/Psalm/Internal/Analyzer/StatementsAnalyzer.php index 12b7c1a9c..66b0ec9c4 100644 --- a/src/Psalm/Internal/Analyzer/StatementsAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/StatementsAnalyzer.php @@ -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 } }