Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 98 additions & 8 deletions .lintrunner.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,106 @@ is_formatter = true
[[linter]]
code = 'CPPCHECK'
include_patterns = [
'backends/arm/**/*.cpp',
'backends/arm/**/*.h',
'backends/arm/**/*.hpp',
'backends/cortex_m/**/*.cpp',
'backends/cortex_m/**/*.h',
'examples/arm/**/*.cpp',
'examples/arm/**/*.h',
'examples/arm/**/*.hpp',
'**/*.cpp',
'**/*.h',
'**/*.hpp',
]
exclude_patterns = [
# Third-party and vendored code.
'third-party/**',
'third_party/**',
'**/third-party/**',
'**/third_party/**',

Comment thread
perheld marked this conversation as resolved.
# Mirrored sources under src/ (Python package layout). Prefer linting canonical paths.
'src/executorch/**',
# PyTorch compatibility code kept in sync with upstream.
'runtime/core/portable_type/c10/**',

Comment thread
perheld marked this conversation as resolved.
# Generated sources, templates, and codegen tooling to onboard separately.
'codegen/templates/**',
'codegen/tools/selective_build.cpp',
'exir/_serialize/**',

# Backend-owned code to onboard separately.
'backends/aoti/**',
'backends/apple/**',
'backends/cadence/**',
'backends/cuda/**',
'backends/mediatek/**',
'backends/mlx/**',
'backends/nxp/**',
'backends/openvino/**',
'backends/qualcomm/**',
'backends/samsung/**',
'backends/test/**',
'backends/vulkan/**',
'backends/webgpu/**',
'backends/xnnpack/**',

# Backend-owned examples to onboard with those backends.
'examples/demo-apps/**',
'examples/mediatek/**',
'examples/nxp/**',
'examples/qualcomm/**',
'examples/samsung/**',

# Other examples to onboard separately.
'examples/devtools/**',
'examples/llm_manual/**',
'examples/models/**',
'examples/portable/**',
'examples/raspberry_pi/**',

# EXIR and devtools areas to onboard separately.
'devtools/bundled_program/**',
'devtools/etdump/**',
'exir/backend/test/**',
'exir/tests/**',
'exir/verification/**',

# Extension areas to onboard incrementally.
'extension/android/**',
'extension/apple/**',
'extension/asr/runner/transducer_runner.h',
'extension/aten_util/**',
'extension/benchmark/apple/**',
'extension/data_loader/**',
'extension/evalue_util/**',
'extension/flat_tensor/**',
'extension/kernel_util/make_boxed_from_unboxed_functor.h',
'extension/kernel_util/test/**',
'extension/llm/**',
'extension/memory_allocator/**',
Comment thread
perheld marked this conversation as resolved.
'extension/module/**',
'extension/named_data_map/**',
'extension/pybindings/**',
'extension/pytree/**',
'extension/runner_util/**',
'extension/tensor/**',
'extension/testing_util/**',
'extension/threadpool/**',
'extension/training/**',
'extension/wasm/**',

# Kernel areas to onboard separately.
'kernels/aten/**',
'kernels/optimized/**',
'kernels/portable/**',
'kernels/prim_ops/**',
'kernels/quantized/**',
'kernels/test/**',

# Runtime areas to onboard incrementally.
'runtime/backend/**',
'runtime/core/**',
'runtime/executor/**',
'runtime/kernel/**',
'runtime/platform/**',

# Top-level test and platform integration areas.
'test/**',
'zephyr/**',
]
command = [
'python',
Expand Down
Loading