summaryrefslogtreecommitdiff
path: root/parabola_repolint/__main__.py
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2019-04-07 08:45:50 +0200
committerAndreas Grapentin <andreas@grapentin.org>2019-04-07 08:45:50 +0200
commite390c3b9e880f209511d805ea94aeb3e971d0ff7 (patch)
tree750db392b2e2681eaaceccfd37305cf8baa7cc84 /parabola_repolint/__main__.py
parent6e0e6ca75c82a18f07f5d38188b6678a60d75780 (diff)
adding a fixer to the linter
Diffstat (limited to 'parabola_repolint/__main__.py')
-rw-r--r--parabola_repolint/__main__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/parabola_repolint/__main__.py b/parabola_repolint/__main__.py
index 7900fc9..83ffd01 100644
--- a/parabola_repolint/__main__.py
+++ b/parabola_repolint/__main__.py
@@ -9,6 +9,7 @@ import sys
from parabola_repolint.config import CONFIG
from parabola_repolint.linter import Linter
+from parabola_repolint.fixer import Fixer
from parabola_repolint.repocache import RepoCache
from parabola_repolint.notify import etherpad_replace, send_mail, write_log
@@ -74,6 +75,10 @@ def checked_main(args):
res = linter.format()
logging.info(res)
+ if CONFIG.fixhooks.enabled:
+ fixer = Fixer(cache)
+ fixer.run_fixes(linter.triggered_checks)
+
if CONFIG.notify.etherpad_url:
etherpad_replace(res)
if CONFIG.notify.smtp_host: