From 57888c9798c2ab22e1e5d7e23229cd866e518cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=8F=E7=83=88?= Date: Wed, 27 Dec 2017 17:31:43 +0800 Subject: [PATCH] fix https://github.com/alibaba/p3c/issues/195 https://github.com/alibaba/p3c/issues/208 --- .../alibaba/p3c/idea/pmd/SourceCodeProcessor.kt | 12 +++++------- .../src/main/resources/icons/alibaba.png | Bin 561 -> 354 bytes 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/pmd/SourceCodeProcessor.kt b/idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/pmd/SourceCodeProcessor.kt index fb8a8ccfb..260be9f1c 100644 --- a/idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/pmd/SourceCodeProcessor.kt +++ b/idea-plugin/p3c-common/src/main/kotlin/com/alibaba/p3c/idea/pmd/SourceCodeProcessor.kt @@ -80,13 +80,11 @@ class SourceCodeProcessor(private val configuration: PMDConfiguration) { } private fun usesDFA(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) { - if (ruleSets.usesDFA(languageVersion.language)) { - val start = System.nanoTime() - val dataFlowFacade = languageVersion.languageVersionHandler.dataFlowFacade - dataFlowFacade.start(rootNode) - val end = System.nanoTime() - Benchmarker.mark(Benchmark.DFA, end - start, 0) - } + val start = System.nanoTime() + val dataFlowFacade = languageVersion.languageVersionHandler.dataFlowFacade + dataFlowFacade.start(rootNode) + val end = System.nanoTime() + Benchmarker.mark(Benchmark.DFA, end - start, 0) } private fun usesTypeResolution(languageVersion: LanguageVersion, rootNode: Node, ruleSets: RuleSets) { diff --git a/idea-plugin/p3c-common/src/main/resources/icons/alibaba.png b/idea-plugin/p3c-common/src/main/resources/icons/alibaba.png index 546845c50b55aa3ea275e08990f938f7655393d9..947038fc0a070b20bc560869d6370e089e35e978 100644 GIT binary patch literal 354 zcmV-o0iFJdP){E!>ez z1iTWO60mM=#rx1D4OqmJS-jWaEp-EdPmo3@AQ_mp zgQ#f`wc}Q)n+7Y4yN_0G82D%_^4V_&(xrqb2vD`fi=iugy*IJJ_O-K0`$pixNAFE+ zyxp)Ex=h4XoLjQ4%?B2;L+JQHY2rl>3Hzq%ZM5AM9X+KdfqlkOiR0ZU6uP07*qoM6N<$f(IkTl@iqS2Id4cC&=dnO$riA+9gfu zLC>jE6V-OI!ApP5oA>6;8)Ap=`n~IjI1=ChIFfq?7c?V~hQQ~SBk$`NU6l1)Rmih0i^BID0|mYb4wxBlK>63q342$VYg!&eZd|Wk^6)D{Jqvzs`yv*eX;w)1H zA`(}T2hfxnKBW}Ph7sf`Y{t@o#aH?0ZFl$JwA`G8IjJNBCUq+1E?pHs_aT(cm3Buy zB+@EyjuAQmkhWTw)!kmXvBvOjviYv>|DEtJ3)~5x