[binutils-gdb] [pre-commit] Set verbose=false for check-whitespace

Tom de Vries vries@sourceware.org
Mon Nov 10 17:21:43 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=0b45d74d79cddf7b3f8fcfab29aa314b09b18989

commit 0b45d74d79cddf7b3f8fcfab29aa314b09b18989
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Nov 10 18:21:39 2025 +0100

    [pre-commit] Set verbose=false for check-whitespace
    
    Currently, the pre-commit check check-whitespace has verbose=true:
    ...
    $ pre-commit run --all-files check-whitespace
    check-whitespace........................................................Passed
    - hook id: check-whitespace
    - duration: 0.3s
    $
    ...
    
    That's not necessary, since:
    - check-whitespace has no output if the check passes, and
    - pre-commit shows the output anyway if the check fails.
    
    Fix this by removing the verbose setting, getting us instead:
    ...
    $ pre-commit run --all-files check-whitespace
    check-whitespace........................................................Passed
    $
    ...
    
    Approved-By: Simon Marchi <simon.marchi@efficios.com>

Diff:
---
 .pre-commit-config.yaml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d26e55d33c5..874518217f4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -103,7 +103,6 @@ repos:
       entry: gdb/contrib/check-whitespace-pre-commit.sh
       files: '^(gdb(support|server)?)/.*$'
       pass_filenames: true
-      verbose: true
       stages: [pre-commit]
   - repo: https://github.com/nmoroze/tclint
     rev: v0.6.1


More information about the Binutils-cvs mailing list