mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-10-02 08:22:51 +08:00
Created CPPLINT exceptions for device drivers.
This commit is contained in:
@@ -7,3 +7,13 @@
|
||||
# top-level CPPLINT.cfg, so it only relaxes tab checking for the
|
||||
# driver tree -- master code elsewhere continues to be checked.
|
||||
filter=-whitespace/tab
|
||||
|
||||
# A few older native drivers (8139too, e100, and the pre-devices/r8169/
|
||||
# legacy r8169 versions) still live directly in this directory instead
|
||||
# of their own subdirectory, side by side with hand-written EtherCAT
|
||||
# glue code (ecdev.h, generic.c). Per-driver style exceptions (see e.g.
|
||||
# devices/igb/CPPLINT.cfg) can only be scoped per-directory, so they
|
||||
# can't be given to just these files here without also loosening the
|
||||
# checks for the hand-written code. Exempt them by name instead; the
|
||||
# hand-written files keep full linting.
|
||||
exclude_files=^(8139too|e100|r8169)-.*\.[ch]$
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
# The e1000 driver is a lightly patched copy of the in-kernel e1000
|
||||
# driver (see update.sh), kept close to upstream formatting so future
|
||||
# updates can be diffed/merged against new kernel sources with minimal
|
||||
# noise. The checks below mostly fire on plain kernel coding-style
|
||||
# idioms (long lines, blank lines at block boundaries, spacing around
|
||||
# operators/commas, C-style casts, empty ";"-only statements, trailing
|
||||
# whitespace) that have nothing to do with the EtherCAT integration
|
||||
# bits; reformatting the copied parts to satisfy them would defeat the
|
||||
# purpose of keeping the diff small. This filter is added on top of
|
||||
# (not instead of) devices/CPPLINT.cfg and the top-level CPPLINT.cfg.
|
||||
filter=-build/include
|
||||
filter=-runtime/casting
|
||||
filter=-whitespace/blank_line
|
||||
filter=-whitespace/comma
|
||||
filter=-whitespace/end_of_line
|
||||
filter=-whitespace/line_length
|
||||
filter=-whitespace/operators
|
||||
filter=-whitespace/semicolon
|
||||
@@ -0,0 +1,15 @@
|
||||
# The e1000e driver is a lightly patched copy of the in-kernel e1000e
|
||||
# driver (see update.sh), kept close to upstream formatting so future
|
||||
# updates can be diffed/merged against new kernel sources with minimal
|
||||
# noise. The checks below mostly fire on plain kernel coding-style
|
||||
# idioms (long lines, blank lines at block boundaries, C-style casts,
|
||||
# empty ";"-only statements) that have nothing to do with the EtherCAT
|
||||
# integration bits; reformatting the copied parts to satisfy them would
|
||||
# defeat the purpose of keeping the diff small. This filter is added on
|
||||
# top of (not instead of) devices/CPPLINT.cfg and the top-level
|
||||
# CPPLINT.cfg.
|
||||
filter=-build/include
|
||||
filter=-runtime/casting
|
||||
filter=-whitespace/blank_line
|
||||
filter=-whitespace/line_length
|
||||
filter=-whitespace/semicolon
|
||||
@@ -0,0 +1,16 @@
|
||||
# The genet driver is a lightly patched copy of the in-kernel bcmgenet
|
||||
# driver (see update.sh), kept close to upstream formatting so future
|
||||
# updates can be diffed/merged against new kernel sources with minimal
|
||||
# noise. The checks below mostly fire on plain kernel coding-style
|
||||
# idioms (long lines, blank lines at block boundaries, trailing
|
||||
# whitespace) or on the fact that the copied upstream header unimac.h
|
||||
# carries no copyright notice of its own; none of this has anything to
|
||||
# do with the EtherCAT integration bits, and reformatting the copied
|
||||
# parts to satisfy them would defeat the purpose of keeping the diff
|
||||
# small. This filter is added on top of (not instead of) devices/
|
||||
# CPPLINT.cfg and the top-level CPPLINT.cfg.
|
||||
filter=-build/include
|
||||
filter=-legal/copyright
|
||||
filter=-whitespace/blank_line
|
||||
filter=-whitespace/end_of_line
|
||||
filter=-whitespace/line_length
|
||||
@@ -0,0 +1,16 @@
|
||||
# The igb driver is a lightly patched copy of the in-kernel igb driver
|
||||
# (see update.sh), kept close to upstream formatting so future updates
|
||||
# can be diffed/merged against new kernel sources with minimal noise.
|
||||
# The checks below mostly fire on plain kernel coding-style idioms
|
||||
# (long lines, blank lines at block boundaries, C-style casts, empty
|
||||
# ";"-only statements, multi-line string literals) that have nothing to
|
||||
# do with the EtherCAT integration bits; reformatting the copied parts
|
||||
# to satisfy them would defeat the purpose of keeping the diff small.
|
||||
# This filter is added on top of (not instead of) devices/CPPLINT.cfg
|
||||
# and the top-level CPPLINT.cfg.
|
||||
filter=-build/include
|
||||
filter=-readability/multiline_string
|
||||
filter=-runtime/casting
|
||||
filter=-whitespace/blank_line
|
||||
filter=-whitespace/line_length
|
||||
filter=-whitespace/semicolon
|
||||
@@ -0,0 +1,16 @@
|
||||
# The igc driver is a lightly patched copy of the in-kernel igc driver
|
||||
# (see update.sh), kept close to upstream formatting so future updates
|
||||
# can be diffed/merged against new kernel sources with minimal noise.
|
||||
# The checks below mostly fire on plain kernel coding-style idioms
|
||||
# (long lines, blank lines at block boundaries, C-style casts, missing
|
||||
# space after a comma, empty ";"-only statements) that have nothing to
|
||||
# do with the EtherCAT integration bits; reformatting the copied parts
|
||||
# to satisfy them would defeat the purpose of keeping the diff small.
|
||||
# This filter is added on top of (not instead of) devices/CPPLINT.cfg
|
||||
# and the top-level CPPLINT.cfg.
|
||||
filter=-build/include
|
||||
filter=-runtime/casting
|
||||
filter=-whitespace/blank_line
|
||||
filter=-whitespace/comma
|
||||
filter=-whitespace/line_length
|
||||
filter=-whitespace/semicolon
|
||||
@@ -0,0 +1,15 @@
|
||||
# The macb driver is a lightly patched copy of the in-kernel macb/GEM
|
||||
# driver (see update.sh), kept close to upstream formatting so future
|
||||
# updates can be diffed/merged against new kernel sources with minimal
|
||||
# noise. The checks below mostly fire on plain kernel coding-style
|
||||
# idioms (long lines, blank lines at block boundaries, missing space
|
||||
# after a comma, an upstream header that already includes
|
||||
# linux/inetdevice.h twice) that have nothing to do with the EtherCAT
|
||||
# integration bits; reformatting the copied parts to satisfy them would
|
||||
# defeat the purpose of keeping the diff small. This filter is added on
|
||||
# top of (not instead of) devices/CPPLINT.cfg and the top-level
|
||||
# CPPLINT.cfg.
|
||||
filter=-build/include
|
||||
filter=-whitespace/blank_line
|
||||
filter=-whitespace/comma
|
||||
filter=-whitespace/line_length
|
||||
@@ -0,0 +1,12 @@
|
||||
# The r8169 driver is a lightly patched copy of the in-kernel r8169
|
||||
# driver (see update.sh), kept close to upstream formatting so future
|
||||
# updates can be diffed/merged against new kernel sources with minimal
|
||||
# noise. The checks below mostly fire on plain kernel coding-style
|
||||
# idioms (long lines, blank lines at block boundaries) that have
|
||||
# nothing to do with the EtherCAT integration bits; reformatting the
|
||||
# copied parts to satisfy them would defeat the purpose of keeping the
|
||||
# diff small. This filter is added on top of (not instead of) devices/
|
||||
# CPPLINT.cfg and the top-level CPPLINT.cfg.
|
||||
filter=-build/include
|
||||
filter=-whitespace/blank_line
|
||||
filter=-whitespace/line_length
|
||||
@@ -0,0 +1,17 @@
|
||||
# The stmmac driver is a lightly patched copy of the in-kernel stmmac
|
||||
# driver (see update.sh), kept close to upstream formatting so future
|
||||
# updates can be diffed/merged against new kernel sources with minimal
|
||||
# noise. The checks below mostly fire on plain kernel coding-style
|
||||
# idioms (long lines, blank lines at block boundaries, GCC-style
|
||||
# variable-length arrays sized by a compile-time constant) or on the
|
||||
# fact that several of the copied upstream source files carry no
|
||||
# copyright notice of their own; none of this has anything to do with
|
||||
# the EtherCAT integration bits, and reformatting the copied parts to
|
||||
# satisfy them would defeat the purpose of keeping the diff small. This
|
||||
# filter is added on top of (not instead of) devices/CPPLINT.cfg and
|
||||
# the top-level CPPLINT.cfg.
|
||||
filter=-build/include
|
||||
filter=-legal/copyright
|
||||
filter=-runtime/arrays
|
||||
filter=-whitespace/blank_line
|
||||
filter=-whitespace/line_length
|
||||
Reference in New Issue
Block a user