Skip to content

Commit

Permalink
piping lint and fixing
Browse files Browse the repository at this point in the history
related to #33
  • Loading branch information
adriens authored Mar 16, 2022
1 parent fd0c2b5 commit c76f0a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ So you can get a nicely colored (and vlidated `json` output) :
}
```
### Check if `yamlfixer` could fix a `yaml` and get the exit code
See how piping fixing and linting can be intersting... and get exit code
so you can go furher in automation :
```
yamlfixer <bad.yml | yamllint --format parsable --strict -
echo $?
```
# 🔖 Related contents
- [Dedicated Post explaining how we are using this project to automate `yaml` linting and fixing](https://dev.to/adriens/let-ci-check-fix-your-yamls-kfa)
Expand Down

0 comments on commit c76f0a7

Please sign in to comment.