question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support `--json` mode

See original GitHub issue

I’ve just stumbled upon this package and have to say: it seems super cool!

My company has an internal auditor that runs the appropriate auditors against our repos, and this looks like it could be a complete drop-in that would gain us some very useful features (whitelisting in particular).

However currently audit-ci outputs a few lines of text before & after the JSON audit results - it would be useful if there was a --json flag that would have only the audit results JSON be outputted.

An extension on this could be to then add a auditCi property that contained information from audit-ci, such as what was whitelisted.

I’m happy to work on a PR for this, and have a few ideas on how to go about it - my initial attempt will likely be to just replace all log calls with a logger function call that is a noop if the flag is present.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
quinnturnercommented, Aug 30, 2020

I have not performed any work on this feature at this time. However, I do think it is a valuable addition. I don’t have immediate plans to write this feature myself (may in the future), but I would certainly review PR requests.

1reaction
quinnturnercommented, May 17, 2020

For further flexibility, I would consider revising the flag from --json to something like --output {none/full/json} (default full). This is slightly different than the --report-type since report-type refers to the output within either a full or json.

I am unsure if this would be a confusing semantic for adopters. Also, since Yarn uses JSON-lines format rather than JSON, that might result in a “gotcha”, but this behaviour can be documented.

EDIT: I am not sure if --output none would ever be the desired behaviour. I made that up on the spot and have never had a request for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Major mode for editing JSON files with emacs - GitHub
Major mode for editing JSON files. Extends the builtin js-mode to add better syntax highlighting for JSON and some nice editing keybindings. Install....
Read more >
JSON editing in Visual Studio Code
Editing JSON with Visual Studio Code. JSON is a data format that is common in configuration files like package.json or project.json .
Read more >
JSON - EmacsWiki
JSON (JavaScript Object Notation) is a subset of JavaScript useful as a format for transferring data from program to program, much like XML....
Read more >
json-mode - GNU ELPA
Major mode for editing JavaScript Object Notation (JSON) data files. Read more about JSON at http://json.org/. It provides support for ...
Read more >
Concepts of JSON web services - IBM
CICS supports three modes of JSON web service, z/OS® Connect , Request-Response and RESTful. CICS also supports a programmatic scenario in which ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found