diff options
Diffstat (limited to 'parabola_repolint/__main__.py')
-rw-r--r-- | parabola_repolint/__main__.py | 5 |
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: |