Add check command for disabling or enabling checks on the fly

This commit is contained in:
gravitylow committed 2014-01-20 15:29:44 -05:00
1 parent 478e325026
commit 14aa2a8905
5 files changed
+97 -4

No files matched your search

@@ -53,7 +53,7 @@ public class CheckManager {
* @param type The CheckType to enable
*/
public void activateCheck(CheckType type, String className) {
if (isActive(type)) {
if (!isActive(type)) {
manager.getLoggingManager().logToFile("The " + type.toString() + " check was activated by " + className + ".");
checkIgnoreList.remove(type);
}
@@ -65,7 +65,7 @@ public class CheckManager {
* @param type The CheckType to disable
*/
public void deactivateCheck(CheckType type, String className) {
if (!isActive(type)) {
if (isActive(type)) {
manager.getLoggingManager().logToFile("The " + type.toString() + " check was deactivated by " + className + ".");
checkIgnoreList.add(type);
disabled++;