mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated Integration (markdown)
@@ -16,14 +16,14 @@ Here is an integration checklist. Each point is described further below:
|
||||
|
||||
## Pick the output format that makes your life easier
|
||||
|
||||
ShellCheck currently has three machine parsable output formats
|
||||
ShellCheck currently has three machine parseable output formats
|
||||
|
||||
### JSON output
|
||||
|
||||
ShellCheck can output a simple JSON format consisting of a single array of objects (formatted for clarity):
|
||||
|
||||
```
|
||||
$ shellcheck -f json myscript myotherscript
|
||||
$ shellcheck -f json1 myscript myotherscript
|
||||
[
|
||||
{
|
||||
"file": "myotherscript",
|
||||
@@ -52,7 +52,9 @@ $ shellcheck -f json myscript myotherscript
|
||||
]
|
||||
```
|
||||
|
||||
`line` and `column` start at 1, and assume a tab size of 8.
|
||||
In the `json1` format, `line` and `column` start at 1, and tabs count as 1.
|
||||
|
||||
The legacy format `json` is the same, but with a tab stop of 8.
|
||||
|
||||
|
||||
### XML output
|
||||
|
Reference in New Issue
Block a user