Skip to content

fix: the 600-line check measures .jsx, .css, shell and shebang scripts - #98

Merged
alexeybe1kin merged 1 commit into
mainfrom
fix/size-check-coverage
Nov 13, 2026
Merged

alexeybe1kin merged 1 commit into
mainfrom
fix/size-check-coverage

Conversation

@alexeybe1kin

Copy link
Copy Markdown
Collaborator

Hunt toolgate-5 F15 and F16.

  • F15: SUFFIXES now also covers .jsx, .cjs, .css and .sh. Tracked files without a suffix are measured when they start with #! (toolgate/cli/toolgate, sandbox/conker-install). Every tracked file in the repo passes today; the largest .jsx file has 180 lines.
  • F16: lines are counted with splitlines, so a 601-line file without a final newline no longer reads as 600.

Tests (toolgate/tests/test_guard_scripts.py): 4 new file kinds, a shebang script (while a large LICENSE file stays ignored), and a missing final newline. All 6 fail on main. Local: 19 passed, check_file_sizes.py ok, ruff ok.

The gate dashboard's .jsx files, its .css and suffix-less scripts such as
toolgate/cli/toolgate were never measured (hunt toolgate-5 F15). A last line
without a final newline now counts too (F16).
@alexeybe1kin
alexeybe1kin merged commit cba51c8 into main Nov 13, 2026
4 checks passed
@alexeybe1kin
alexeybe1kin deleted the fix/size-check-coverage branch November 13, 2026 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant