Skip to content

Commit

Permalink
Avoid altering format when parseable option is configured
Browse files Browse the repository at this point in the history
This bug was originally reported against ansible-language-server but
it proved to be caused by a bug inside the linter.

Fixes: ansible/ansible-language-server#43
  • Loading branch information
ssbarnea committed Sep 30, 2021
1 parent 213eb4d commit ab4ceca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ansiblelint/app.py
Expand Up @@ -73,10 +73,10 @@ def choose_formatter_factory(
r = formatters.QuietFormatter
elif options_list.parseable_severity:
r = formatters.ParseableSeverityFormatter
elif options_list.parseable or options_list.format == 'pep8':
r = formatters.ParseableFormatter
elif options_list.format == 'codeclimate':
r = formatters.CodeclimateJSONFormatter
elif options_list.parseable or options_list.format == 'pep8':
r = formatters.ParseableFormatter
return r


Expand Down

0 comments on commit ab4ceca

Please sign in to comment.