From 914a83502a682c440d6f050d708ad8214cea4d20 Mon Sep 17 00:00:00 2001 From: Tom Hudson Date: Wed, 22 Feb 2017 20:27:07 +0000 Subject: [PATCH] Tweaks linter settings; updates help output in README --- README.mkd | 17 ++++++++++------- script/lint | 4 +++- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/README.mkd b/README.mkd index fb0749b..fdfed80 100644 --- a/README.mkd +++ b/README.mkd @@ -187,18 +187,21 @@ Usage: Options: -u, --ungron Reverse the operation (turn assignments back into JSON) + -c, --colorize Colorize output (default on tty) -m, --monochrome Monochrome (don't colorize output) + -s, --stream Treat each line of input as a separate JSON object + -k, --insecure Disable certificate validation --no-sort Don't sort output (faster) --version Print version information Exit Codes: - 0 OK - 1 Failed to open file - 2 Failed to read input - 3 Failed to form statements - 4 Failed to fetch URL - 5 Failed to parse statements - 6 Failed to encode JSON + 0 OK + 1 Failed to open file + 2 Failed to read input + 3 Failed to form statements + 4 Failed to fetch URL + 5 Failed to parse statements + 6 Failed to encode JSON Examples: gron /tmp/apiresponse.json diff --git a/script/lint b/script/lint index 4ccdd5d..700198b 100755 --- a/script/lint +++ b/script/lint @@ -12,4 +12,6 @@ fi # dupl is disabled because it has a habbit of identifying tests as duplicated code. # in its defence: it's right. gocyclo is disabled because I'm a terrible programmer. -gometalinter --disable=gocyclo --disable=dupl --enable=misspell --enable=goimports +# gas is disabled because it doesn't like InsecureSkipVerify set to true for HTTP +# requests - but we only do that if the user asks for it. +gometalinter --disable=gocyclo --disable=dupl --enable=goimports --disable=gas