Skip to content

Commit

Permalink
Merge pull request #1 from tomnomnom/https-insecure-tweaks
Browse files Browse the repository at this point in the history
Tweaks linter settings; updates help output in README
  • Loading branch information
jagsta authored Feb 22, 2017
2 parents 0dd0a41 + 914a835 commit b30f172
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
17 changes: 10 additions & 7 deletions README.mkd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b30f172

Please sign in to comment.