-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose rules that have autofix capability in docs (#3770)
- Loading branch information
1 parent
e6bc4c7
commit 875adef
Showing
3 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 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. | ||
|
||
- [command-instead-of-shell](rules/command-instead-of-shell.md#auto-fixing-capability) | ||
- [deprecated-local-action](rules/deprecated-local-action.md) | ||
- [fqcn](rules/fqcn.md) | ||
- [jinja](rules/jinja.md) | ||
- [key-order](rules/key-order.md) | ||
- [name](rules/name.md) | ||
- [no-free-form](rules/no-free-form.md) | ||
- [no-jinja-when](rules/no-jinja-when.md) | ||
- [no-log-password](rules/no-log-password.md) | ||
- [partial-become](rules/partial-become.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters