]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Drop types_or filtering for tclint
authorTom de Vries <tdevries@suse.de>
Wed, 17 Jun 2026 19:40:03 +0000 (21:40 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 17 Jun 2026 19:40:03 +0000 (21:40 +0200)
The pre-commit tclint hook filters files using:
...
      types_or: [file]
      files: '^gdb/testsuite/.*\.(exp|tcl)$'
...

The types_or setting overrides the default file type of the hook.  In the case
of tclint, there's no such default.

So this setting is not required, and causes additional filtering to run.

It was probably added by using one of the python hooks as a starting point.

Remove it.

Approved-By: Tom Tromey <tom@tromey.com>
.pre-commit-config.yaml

index a5b526b1eec793e9a814cab6c04cdc88a3506b0f..902e58d4d8c6cd598d3318adf15b76057f245765 100644 (file)
@@ -123,5 +123,4 @@ repos:
     hooks:
     - id: tclint
       args: [--trust-plugins]
-      types_or: [file]
       files: '^gdb/testsuite/.*\.(exp|tcl)$'