diff --git a/.ansible-lint b/.ansible-lint index 4e330706ad..11305f22e5 100644 --- a/.ansible-lint +++ b/.ansible-lint @@ -72,6 +72,11 @@ warn_list: # Offline mode disables installation of requirements.yml offline: false +# Return success if number of violations compared with previous git +# commit has not increased. This feature works only in git +# repositories. +progressive: false + # Define required Ansible's variables to satisfy syntax check extra_vars: foo: bar diff --git a/src/ansiblelint/cli.py b/src/ansiblelint/cli.py index f270cecae3..1a37a6b3bd 100644 --- a/src/ansiblelint/cli.py +++ b/src/ansiblelint/cli.py @@ -284,9 +284,9 @@ def get_cli_parser() -> argparse.ArgumentParser: dest="progressive", default=False, action="store_true", - help="Return success if it detects a reduction in number" - " of violations compared with previous git commit. This " - "feature works only in git repositories.", + help="Return success if number of violations compared with" + "previous git commit has not increased. This feature works" + "only in git repositories.", ) parser.add_argument( "--project-dir", diff --git a/src/ansiblelint/schemas/ansible-lint-config.json b/src/ansiblelint/schemas/ansible-lint-config.json index 5a91a95798..c007519438 100644 --- a/src/ansiblelint/schemas/ansible-lint-config.json +++ b/src/ansiblelint/schemas/ansible-lint-config.json @@ -70,6 +70,11 @@ "title": "Offline", "type": "boolean" }, + "progressive": { + "default": false, + "title": "Progressive", + "type": "boolean" + }, "parseable": { "default": true, "title": "Parseable",