diff --git a/src/ansiblelint/transformer.py b/src/ansiblelint/transformer.py index 2ad808a7b4..2b8951350b 100644 --- a/src/ansiblelint/transformer.py +++ b/src/ansiblelint/transformer.py @@ -109,7 +109,9 @@ def run(self) -> None: self._do_transforms(file, ruamel_data or data, file_is_yaml, matches) if not file.is_owned_by_ansible(): - return + # Do nothing until we enable support for YAML 1.2 + # https://github.com/ansible/ansible-lint/issues/3811 + continue if file_is_yaml: # noinspection PyUnboundLocalVariable