Files
scst/scripts/policy/common.json
T
Gleb Chesnokov c1e2f41a49 scripts: Store shared analyzer scope as reviewed policy
Move the source roots, file types and input exclusions from lint_scope.py
into policy/common.json. Keep the existing scope, including KUnit sources,
the newer QLogic target and the exclusions for the legacy QLogic tree,
upstream QLogic sources, compiler probes and generated module metadata.

Adapt engine's reviewed-data and strict-loader approach to SCST. Require
reasons for input exclusions and reject malformed, missing or ambiguous
policy before selecting files. Do not import engine's exclusions or add
environment-based filtering or diagnostic suppression.

Use this policy for full, diff and explicit-file selection. Preserve both
lexical and resolved path checks, single-commit diff bases and index-based
selection. Treat policy paths literally in Git pathspecs as well as Python.
Add isolated fixtures for schema failures and policy-driven selection.
2026-10-19 21:38:56 +03:00

36 lines
1.2 KiB
JSON

{
"version": 1,
"source_roots": [
"scst",
"iscsi-scst",
"qla2x00t-32gbit/qla2x00-target",
"srpt",
"fcst",
"scst_local",
"usr"
],
"source_suffixes": [".c", ".h"],
"exclude_directories": [
{
"path": "iscsi-scst/conftest",
"reason": "Compiler capability probes are not ordinary product sources."
},
{
"path": "srpt/conftest",
"reason": "Compiler capability probes are not ordinary product sources."
}
],
"exclude_suffixes": [
{
"suffix": ".mod.c",
"reason": "Kbuild generates this module metadata; it is not maintained source code."
}
],
"notes": [
"Only the listed roots and file types are eligible; other paths are outside the shared scope.",
"qla2x00t/ is excluded entirely: the legacy QLogic driver is outside the maintained analysis scope.",
"Only qla2x00t-32gbit/qla2x00-target/ is included from the newer QLogic tree. The remaining driver, including top-level qla_target.c and qla_target.h, is maintained upstream.",
"KUnit sources under the included roots are eligible regardless of KUNIT_TEST. Selecting sources does not enable them in a build."
]
}