Skip to content

lint: use shared subtree exclusions in shell linters - #36749

Closed
aaron-leeb wants to merge 1 commit into
bitcoin:masterfrom
aaron-leeb:ci-subtree-lint-scope
Closed

aaron-leeb wants to merge 1 commit into
bitcoin:masterfrom
aaron-leeb:ci-subtree-lint-scope

Conversation

@aaron-leeb

Copy link
Copy Markdown
Contributor

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.

@DrahtBot DrahtBot added the Tests label Nov 4, 2026
@DrahtBot

DrahtBot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

External sites

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

@aaron-leeb aaron-leeb changed the title ci: use shared subtree exclusions in shell linters lint: use shared subtree exclusions in shell linters Nov 4, 2026
@aaron-leeb
aaron-leeb force-pushed the ci-subtree-lint-scope branch from 4f42447 to c198dc8 Compare November 4, 2026 04:22
@aaron-leeb

Copy link
Copy Markdown
Contributor Author

Given the direction of #36742, would it make more sense to limit this PR to lint-shell-locale.py and leave the lint-shell.py changes to your PR, @maflcko?

@maflcko

maflcko commented Nov 4, 2026

Copy link
Copy Markdown
Member

thx, but I think it is unclear if this is the right fix. My recommendation would be #34928 (comment), but let's wait a week or two for further input before implementing this.

Closing this for now in the meantime.

@maflcko maflcko closed this Nov 4, 2026
@aaron-leeb
aaron-leeb deleted the ci-subtree-lint-scope branch November 16, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants