lirantal/detect-secrets

Enhancement: Support for enabling debug logs via flags

Geschlossen

#1 geöffnet am 05.07.2019

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (5 Forks)github user discovery
good first issuestale

Repository-Metriken

Stars
 (52 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 13h) (4 gemergte PRs in 30 T)

Beschreibung

Is your feature request related to a problem? Please describe. If I'm trying to debug how detect-secrets work then I need to run it with DEBUG=detect-secrets which lint-staged isn't friendly with. Instead, I'd want to pass it some flags like --debug in order to enable debugging.

Describe the solution you'd like

  1. Add a --debug flag to enable debugging
  2. This should enable debug dynamically via debug.enable('detect-secrets')
  3. Discard the flag from process.argv so it doesn't get passed to the actual detect-secrets-hook tool

Describe alternatives you've considered Open to other ideas

Contributor Guide