blob: ba1ec0ddb5ff2c2cecbe719855e32125113b9482 [file]
# Copyright (C) 2021-2026 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
[tool.black]
include = "\\.py(\\.in)?$"
[tool.pyright]
typeCheckingMode = "strict"
[tool.isort]
profile = "black"
[tool.tclint]
exclude = [
# TODO:
"testsuite/boards",
"testsuite/config",
# IGNORE (document reason in trailing comment):
"testsuite/lib/ton.tcl", # Imported.
]
# A maximum line length of 80 is current policy, but it hasn't been too
# strictly enforced. It's the most frequent and least harmful violation.
# Ignore this for now.
ignore = ["line-length"]
extensions = ["exp", "tcl"]
commands=["expect", "testsuite/tclint-plugin.py"]
[tool.tclint.style]
# Used by tclfmt.
indent = "mixed,4,8"
# Used by both tclint and tclfmt. Current policy is 80.
line-length = 80
# Used by tclfmt.
max-blank-lines = 1
# Used by tclfmt. False conflicts with emacs tcl mode.
indent-namespace-eval = true
# Used by tclfmt.
spaces-in-braces = false
[tool.codespell]
skip = [
# Skip ChangeLogs and generated files.
'*/ChangeLog*',
'*/configure',
'gdbsupport/Makefile.in',
'*.dat',
'*.eps',
'gdb/features/*.c',
'gdb/ada-casefold.h',
'gdb/copying.c',
'gdb/gdbarch-gen.h',
'gdb/gdbarch-gen.c',
'gdb/target-delegates-gen.c',
'gdb/aclocal.m4',
'gdbserver/aclocal.m4',
'gdbsupport/aclocal.m4',
# TODO:
# codespell:ignore-begin. Ignore slite and endianity.
'gdb/testsuite/config/slite.exp',
'gdb/testsuite/gdb.ada/pkd_arr_elem/failure.adb',
'gdb/testsuite/gdb.ada/str_ref_cmp.exp',
'gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.c',
'gdb/testsuite/gdb.arch/amd64-invalid-stack-middle.S',
'gdb/testsuite/gdb.arch/amd64-invalid-stack-top.c',
'gdb/testsuite/gdb.arch/pa64-nullify.s',
'gdb/testsuite/gdb.arch/powerpc-altivec.exp',
'gdb/testsuite/gdb.arch/powerpc-altivec.s',
'gdb/testsuite/gdb.arch/s390-multiarch.exp',
'gdb/testsuite/gdb.arch/s390-tdbregs.exp',
'gdb/testsuite/gdb.asm/bfin.inc',
'gdb/testsuite/gdb.asm/pa64.inc',
'gdb/testsuite/gdb.base/alias.exp',
'gdb/testsuite/gdb.base/call-sc.c',
'gdb/testsuite/gdb.base/call-sc.exp',
'gdb/testsuite/gdb.base/completion.exp',
'gdb/testsuite/gdb.base/dump.c',
'gdb/testsuite/gdb.base/dump.exp',
'gdb/testsuite/gdb.base/endianity.exp',
'gdb/testsuite/gdb.base/ending-run.exp',
'gdb/testsuite/gdb.base/filename-completion.exp',
'gdb/testsuite/gdb.base/options.exp',
'gdb/testsuite/gdb.base/reggroups.exp',
'gdb/testsuite/gdb.base/settings.exp',
'gdb/testsuite/gdb.base/so-impl-ld.exp',
'gdb/testsuite/gdb.base/solib1.c',
'gdb/testsuite/gdb.base/stap-probe.exp',
'gdb/testsuite/gdb.base/structs.c',
'gdb/testsuite/gdb.base/watchpoint-unaligned.exp',
'gdb/testsuite/gdb.btrace/event-tracing-gap.c',
'gdb/testsuite/gdb.compile/compile-cplus-member.cc',
'gdb/testsuite/gdb.compile/compile-cplus-member.exp',
'gdb/testsuite/gdb.cp/anon-ns.exp',
'gdb/testsuite/gdb.cp/cpcompletion.exp',
'gdb/testsuite/gdb.cp/koenig.cc',
'gdb/testsuite/gdb.cp/koenig.exp',
'gdb/testsuite/gdb.cp/namespace.exp',
'gdb/testsuite/gdb.cp/static-method.exp',
'gdb/testsuite/gdb.cp/virtfunc.exp',
'gdb/testsuite/gdb.disasm/h8300s.exp',
'gdb/testsuite/gdb.disasm/h8300s.s',
'gdb/testsuite/gdb.disasm/t06_ari2.exp',
'gdb/testsuite/gdb.disasm/t06_ari2.s',
'gdb/testsuite/gdb.disasm/t11_logs.exp',
'gdb/testsuite/gdb.disasm/t11_logs.s',
'gdb/testsuite/gdb.dlang/demangle.exp',
'gdb/testsuite/gdb.dwarf2/dw2-inline-many-frames.c',
'gdb/testsuite/gdb.dwarf2/dw2-inline-stepping.c',
'gdb/testsuite/gdb.fortran/class-allocatable-array.f90',
'gdb/testsuite/gdb.fortran/oop_extend_type.exp',
'gdb/testsuite/gdb.fortran/oop_extend_type.f90',
'gdb/testsuite/gdb.fortran/ptype-on-functions.f90',
'gdb/testsuite/gdb.linespec/cpls-ops.exp',
'gdb/testsuite/gdb.python/py-finish-breakpoint-inline.c',
'gdb/testsuite/gdb.python/py-format-string.exp',
'gdb/testsuite/gdb.python/py-unwind-inline.c',
'gdb/testsuite/gdb.threads/thread-find.exp',
'gdb/testsuite/gdb.trace/unavailable-dwarf-piece.c',
'gdb/testsuite/lib/gdb.exp',
'gdb/testsuite/lib/gdb-utils.exp',
'gdb/testsuite/lib/pdtrace.in',
'gdb/testsuite/lib/rust-support.exp'
# codespell:ignore-end
]
ignore-words = 'gdb/contrib/codespell-ignore-words.txt'
dictionary = 'gdb/contrib/codespell-dictionary.txt,-'
# Ignore all URLs.
uri-ignore-words-list = '*'
# How to ignore blocks of code.
ignore-multiline-regex = 'codespell:ignore-begin.*?codespell:ignore-end'
# Add 1 (disable warnings about wrong encoding) in addition to the default
# 2+32 to skip warnings about iso-8859-1 encoded files.
quiet-level = 35 # 1+2+32