nginxinc / crossplane

Quick and reliable way to convert NGINX configurations into JSON and back.
Apache License 2.0
719 stars 87 forks source link

feat: optionally exit 1 when formatting occurs #63

Closed josegonzalez closed 5 years ago

josegonzalez commented 5 years ago

If the source contents differs from the output destination contents, then we should be able to exit non-zero (potentially the number of files that are different). This can be used to fail CI if formatting issues happen.

Erroring with a diff of what would change would be a+.

aluttik commented 5 years ago

Nonzero exit codes indicate errors. The request is appreciated, but we do not intend to add this feature so I'm going to close this.