summaryrefslogtreecommitdiffstats
path: root/docs/autofix.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-26 06:24:58 +0000
commitba233a0cbad76b4783a03893e7bf4716fbc0f0ec (patch)
treead369728c1edbe3631c8150585659078ae5d7d0b /docs/autofix.md
parentReleasing progress-linux version 6.17.2-3~progress7.99u1. (diff)
downloadansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.tar.xz
ansible-lint-ba233a0cbad76b4783a03893e7bf4716fbc0f0ec.zip
Merging upstream version 24.6.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docs/autofix.md')
-rw-r--r--docs/autofix.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/autofix.md b/docs/autofix.md
new file mode 100644
index 0000000..8daef8d
--- /dev/null
+++ b/docs/autofix.md
@@ -0,0 +1,11 @@
+# Autofix
+
+Ansible-lint autofix can fix or simplify fixing issues identified by that rule. `ansible-lint --fix` will reformat YAML files and run transform for the given
+rules. You can limit the effective rule transforms (the 'write_list') by passing
+a keywords 'all' or 'none' or a comma separated list of rule ids or rule tags.
+By default it will run all transforms (effectively `write_list: ["all"]`).
+You can disable running transforms by setting `write_list: ["none"]`. Or only enable a subset of rule transforms by listing rules/tags here.
+
+Following is the list of supported rules covered under autofix functionality.
+
+{!_autofix_rules.md!}