Skip to content
Snippets Groups Projects

Suppress script output based on ENV

Merged Kerri Miller requested to merge 444243-add-exit-code-and-print-suppression into master

What does this MR do and why?

In an attempt to operationalize this script and add it to the small collection of lefthook-invoked scripts, we need to emit "proper" exit codes. At the same time, we want to be able to still run the script manually, in order to generate a list of known unused methods. This MR:

  • checks the number of unused methods detected, and emits an error or warning message when the number differs from the last known count
  • uses an ENV to suppress output to STDOUT (defaulting to hiding this output)
  • adds proper exit codes

Related to #444243

Screenshots

:x: Error :warning: Warning :notebook: List
Screenshot_from_2024-04-17_09-48-58 Screenshot_from_2024-04-17_09-49-52 Screenshot_from_2024-04-17_09-52-17
Edited by Peter Leitzen

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading