summaryrefslogtreecommitdiff
path: root/src/lintmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lintmanager.cpp')
-rw-r--r--src/lintmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lintmanager.cpp b/src/lintmanager.cpp
index 01c28e8..e7211b3 100644
--- a/src/lintmanager.cpp
+++ b/src/lintmanager.cpp
@@ -100,7 +100,7 @@ void LintManager::processFile(std::string fileName)
void LintManager::applyRulesToFile()
{
- FOR_EACH (std::vector<RuleBase*>::iterator, it, mRules)
+ FOR_EACH (std::vector<RuleBase*>::iterator, it, mSelectedRules)
{
RuleBase *const rule = *it;
int line = 0;
@@ -142,6 +142,8 @@ void LintManager::selectRulesForFile()
RuleBase *const rule = *it;
if (isMatchFile(rule))
{
+// printf("set file %s, for rule %s\n",
+// mFileName.c_str(), rule->getName().c_str());
rule->setFile(mFileName);
rule->init();
mSelectedRules.push_back(rule);
@@ -151,7 +153,7 @@ void LintManager::selectRulesForFile()
bool LintManager::isMatchFile(RuleBase *const rule)
{
-// printf("isMatchFile: %s\n", fileName.c_str());
+// printf("isMatchFile: %s\n", mFileName.c_str());
const std::set<std::string> &masks = rule->getMasks();
FOR_EACH (std::set<std::string>::const_iterator, it, masks)
{