Merge pull request #489 from wilzbach/has_public_example-selective

Apply selective filtering for has_public_example as well
This commit is contained in:
Sebastian Wilzbach 2017-07-01 22:14:12 +02:00 committed by GitHub
commit fb032b0a71
1 changed files with 1 additions and 1 deletions

View File

@ -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);