From b8b4a11348bb77514c77679c2a58a721fc89f31e Mon Sep 17 00:00:00 2001 From: Vidar Holen Date: Sun, 23 Jun 2019 19:18:45 -0700 Subject: [PATCH] Update JSON1 docs in man page --- shellcheck.1.md | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/shellcheck.1.md b/shellcheck.1.md index 18abb58..c9963bd 100644 --- a/shellcheck.1.md +++ b/shellcheck.1.md @@ -158,22 +158,24 @@ not warn at all, as `ksh` supports decimals in arithmetic contexts. applications. ShellCheck's json is compact and contains only the bare minimum. Tabs are counted as 1 character. - [ - { - "file": "filename", - "line": lineNumber, - "column": columnNumber, - "level": "severitylevel", - "code": errorCode, - "message": "warning message" - }, - ... - ] + { + comments: [ + { + "file": "filename", + "line": lineNumber, + "column": columnNumber, + "level": "severitylevel", + "code": errorCode, + "message": "warning message" + }, + ... + ] + } **json** -: This is a legacy version of the **json1** format, with a tab stop - of 8 instead of 1. +: This is a legacy version of the **json1** format. It's a raw array of + comments, and all offsets have a tab stop of 8. **quiet**