blob: 527b7aa3a0f0a91d6a121949f3cd418a36c93d52 [file] [log] [blame]
# SPDX-License-Identifier: (GPL-2.0+ OR MIT)
#
# Copyright 2023 Google LLC.
set noparent
# We run "cros lint" on various files. For "C" files it runs a very simple
# lint, but for C++ files it runs the chromium "cpplint.py" from depot_tools.
# Both C and C++ header files end with ".h", so it ends up calling "cpplint.py"
# for those as well.
#
# This is a third_party project, so applying all Chromium styles to it is not
# always best. Let's disable a few to make our linted lives easier.
# whitespace/tab - Warns about indenting with tabs.
# runtime/int - Warns about using non-sized int types.
# readability/casting - Warns about C (vs C++) style casting.
# build/header_guard - Wants header guide to use C++ style comments "//".
filter=-whitespace/tab,-runtime/int,-readability/casting,-build/header_guard