Skip to content

What option/entry-point should ansible-lint use for the format/rewrite/transforms feature? #1910

Answered by cognifloyd
cognifloyd asked this question in Ideas
Discussion options

You must be logged in to vote

--write option

today #1828 future PR(s)
Feature \ CLI ansible-lint ansile-lint
--write
ansile-lint
--write
Lint ansible content YAML ✔️ ✔️ ✔️ *
Lint ansible content Jinja2 ✔️ ✔️ ✔️ *
Reformat files YAML ✔️ ^ ⚠️
Reformat files Jinja2 ^ -
Transform files
(fix or simplify fixing lint issues)
YAML ✔️
Transform files
(fix or simplify fixing lint issues)
Jinja2 ✔️
  • * Transforms require lint results to identify what to fix

  • ^ Transforms must reformat any transformed files

  • ⚠️ Reformatting YAML files without lint errors is NOT optional. --write will always rewrite all YAML files even if no lint errors are detected.

  • - Only Jinja templates with identified lint e…

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@cognifloyd
Comment options

@cognifloyd
Comment options

Comment options

You must be logged in to vote
1 reply
@cognifloyd
Comment options

Comment options

You must be logged in to vote
3 replies
@cognifloyd
Comment options

@cognifloyd
Comment options

@cognifloyd
Comment options

Answer selected by cognifloyd
Comment options

You must be logged in to vote
4 replies
@cognifloyd
Comment options

@cognifloyd
Comment options

@cognifloyd
Comment options

@cognifloyd
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
1 participant