This PR partially addresses the subtree lint scope inconsistencies discussed in #34928.
The Python shell linters, lint-shell.py and lint-shell-locale.py, now use SHARED_EXCLUDED_SUBTREES instead of maintaining hardcoded subtree exclusions.
This also removes the overly broad regex in lint-shell.py while preserving the current set of excluded shell scripts.
The explicit per-linter subtree opt-ins discussed in #34928 are not implemented in this PR. This change focuses on consolidating the existing exclusions without modifying the current lint scope.
Compared the original exclusion logic against the shared subtree list for all 61 tracked .sh files:
| Linter | Before excluded | After excluded |
|---|---|---|
lint-shell.py |
10 | 10 |
lint-shell-locale.py |
10 | 10 |
Both linters preserve their existing .sh file exclusion scope.
The following checks also passed:
./ci/lint.py./ci/lint.py --lint=all_python_linters./ci/lint.py --lint=py_lint
Related to #34928.