summaryrefslogtreecommitdiff
path: root/src/lintmanager.cpp
diff options
context:
space:
mode:
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)