mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-09-20 18:59:23 +08:00
Promote json1
as the primary JSON format
This commit is contained in:
@@ -149,11 +149,11 @@ not warn at all, as `ksh` supports decimals in arithmetic contexts.
|
|||||||
...
|
...
|
||||||
</checkstyle>
|
</checkstyle>
|
||||||
|
|
||||||
**json**
|
**json1**
|
||||||
|
|
||||||
: Json is a popular serialization format that is more suitable for web
|
: Json is a popular serialization format that is more suitable for web
|
||||||
applications. ShellCheck's json is compact and contains only the bare
|
applications. ShellCheck's json is compact and contains only the bare
|
||||||
minimum. Tabs are 8 characters.
|
minimum. Tabs are counted as 1 character.
|
||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
@@ -167,12 +167,12 @@ not warn at all, as `ksh` supports decimals in arithmetic contexts.
|
|||||||
...
|
...
|
||||||
]
|
]
|
||||||
|
|
||||||
**json1**
|
**json**
|
||||||
|
|
||||||
: This is the same as shellcheck's json format, but tabs are treated as
|
: This is a legacy version of the **json1** format, with a tab stop
|
||||||
single characters instead of 8-character tabstops.
|
of 8 instead of 1.
|
||||||
|
|
||||||
*quiet*
|
**quiet**
|
||||||
|
|
||||||
: Suppress all normal output. Exit with zero if no issues are found,
|
: Suppress all normal output. Exit with zero if no issues are found,
|
||||||
otherwise exit with one. Stops processing after the first issue.
|
otherwise exit with one. Stops processing after the first issue.
|
||||||
|
Reference in New Issue
Block a user