-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
engine: add output format support (#170)
* engine: add output format support This PR adds support for engine output format, along with a new single line output option that instead prints lint/dry run output on a single line for each file. Signed-off-by: braydonk <braydonk@google.com> * change integration test until I have a way to make it hermetic --------- Signed-off-by: braydonk <braydonk@google.com>
- Loading branch information
Showing
26 changed files
with
289 additions
and
146 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
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
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
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
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,34 @@ | ||
# Output | ||
|
||
The tool supports different output formats when writing to stdout/stderr. This can be configured through either a command line flag `-output_format` or through the `output_format` configuration field in the [config file](./config-file.md). | ||
|
||
The following values are supported: | ||
|
||
## `default` | ||
|
||
Example: | ||
``` | ||
The following formatting differences were found: | ||
y.yaml: | ||
a: a: | ||
- b: 1 b: 1 | ||
+ | ||
z.yaml: | ||
a: a: | ||
- b: 1 b: 1 | ||
+ | ||
x.yaml: | ||
a: a: | ||
- b: 1 b: 1 | ||
+ | ||
``` | ||
|
||
## `line` | ||
|
||
Example: | ||
``` | ||
x.yaml: formatting difference found | ||
y.yaml: formatting difference found | ||
z.yaml: formatting difference found | ||
``` |
Oops, something went wrong.