Repository navigation
CI: file length caps and listed lint suppressions (sc-9611) - #264
Open
ndbroadbent wants to merge 2 commits into
Open
ndbroadbent wants to merge 2 commits into
ndbroadbent wants to merge 2 commits into
Conversation
…apped), and every lint suppression listed with its reason (sc-9611)
… --ignore, eslint with a reason), test_*.py get 1,000 lines, rename hint, no __pycache__ in git (review)
ndbroadbent
force-pushed
the
ci-limits
branch
from
December 5, 2026 05:51
ba9bbe6 to
7e50214
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Eighth PR for sc-9611: file length and lint suppressions. It's stacked on #262 and retargets as the stack merges. Both checks run in CI's
securityjob and in the pre-commit hook, in Python with no dependencies.File length (
scripts/ci/check_file_length.py): source files stay at 500 lines or fewer, and tests and migrations at 1,000 or fewer.app/src/mcp/mod.rshas 2,458 lines andfrontend/src/styles.css5,708. Splitting them now would collide with every open branch.scripts/ci/file_lengths.txt: its length today, rounded up to the next hundred, so branches already open still fit. A file can't grow past its cap, so it gets split instead.Lint suppressions (
scripts/ci/check_suppressions.py): every#[allow(...)],@ts-expect-error,# noqa,rubocop:disable,shellcheck disable=, zizmor or hadolint ignore (and the rest) is listed inscripts/ci/suppressions.txtwith its reason.allow_attributes_without_reason: addingreason = "…"in place would editcrates/visualci-cli(that forces a CLI release) and touch crates in the renderer's inputs hash (that rebuilds the renderer). The list also covers every language in one place.It starts green. There are 23 suppressions today, each listed with a reason I checked against the code, and the caps hold every long file. Both scripts take about 0.2 s over the whole tree.
Checked locally: a planted
# noqa, a deleted list line, and a file over its cap each fail with a message saying what to do. actionlint and typos are clean.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.