summaryrefslogtreecommitdiff
path: root/src/lintmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-05-23 23:47:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-05-23 23:47:00 +0300
commit04dc442ed114e37bcd7a3c2722ea38bab27023a9 (patch)
tree8b3ff2ab6087c31bc36fb2e514b78c882865b6e5 /src/lintmanager.cpp
parentc6adf05890f2786e43980c6e17f949c8a820f07d (diff)
downloadmplint-04dc442ed114e37bcd7a3c2722ea38bab27023a9.tar.gz
mplint-04dc442ed114e37bcd7a3c2722ea38bab27023a9.tar.bz2
mplint-04dc442ed114e37bcd7a3c2722ea38bab27023a9.tar.xz
mplint-04dc442ed114e37bcd7a3c2722ea38bab27023a9.zip
Now rules adding self rules list.
Diffstat (limited to 'src/lintmanager.cpp')
-rw-r--r--src/lintmanager.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lintmanager.cpp b/src/lintmanager.cpp
index 312ddd6..69cd21c 100644
--- a/src/lintmanager.cpp
+++ b/src/lintmanager.cpp
@@ -32,15 +32,20 @@
#include "localconsts.h"
-LintManager::LintManager(std::string path)
+LintManager lint;
+
+LintManager::LintManager()
+{
+}
+
+void LintManager::run(std::string path)
{
- registerRules();
enumFiles(path);
}
-void LintManager::registerRules()
+void LintManager::addRule(RuleBase *const rule)
{
- mRules.push_back(new Dump);
+ mRules.push_back(rule);
}
void LintManager::enumFiles(std::string path)