xref: /linux/.clippy.toml (revision 624063b9ac97f40cadca32a896aafeb28b1220fd)
17d56786eSMiguel Ojeda# SPDX-License-Identifier: GPL-2.0
28577c9dcSMiguel Ojeda
3*624063b9SMiguel Ojedacheck-private-items = true
4*624063b9SMiguel Ojeda
58577c9dcSMiguel Ojedadisallowed-macros = [
68577c9dcSMiguel Ojeda    # The `clippy::dbg_macro` lint only works with `std::dbg!`, thus we simulate
78577c9dcSMiguel Ojeda    # it here, see: https://github.com/rust-lang/rust-clippy/issues/11303.
88577c9dcSMiguel Ojeda    { path = "kernel::dbg", reason = "the `dbg!` macro is intended as a debugging tool" },
98577c9dcSMiguel Ojeda]
10