From d69f46c98dd2f290bd6f7c5e7aec7391bb0a3980 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Fri, 30 Jun 2017 03:53:26 +0200 Subject: [PATCH] Apply selective filtering for has_public_example as well --- src/analysis/run.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analysis/run.d b/src/analysis/run.d index 9f8801e..aef0a41 100644 --- a/src/analysis/run.d +++ b/src/analysis/run.d @@ -477,7 +477,7 @@ MessageSet analyze(string fileName, const Module m, const StaticAnalysisConfig a checks ~= new RedundantAttributesCheck(fileName, moduleScope, analysisConfig.redundant_attributes_check == Check.skipTests && !ut); - if (analysisConfig.has_public_example!= Check.disabled) + if (moduleName.shouldRun!"has_public_example"(analysisConfig)) checks ~= new HasPublicExampleCheck(fileName, moduleScope, analysisConfig.has_public_example == Check.skipTests && !ut);