diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-23 23:47:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-23 23:47:00 +0300 |
commit | 04dc442ed114e37bcd7a3c2722ea38bab27023a9 (patch) | |
tree | 8b3ff2ab6087c31bc36fb2e514b78c882865b6e5 /src/lintmanager.cpp | |
parent | c6adf05890f2786e43980c6e17f949c8a820f07d (diff) | |
download | mplint-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.cpp | 13 |
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) |