#2416: chore: add detect-secrets baseline and loc check
scripts
## Summary
- add detect-secrets baseline for current repo state
- run pnpm check:loc in CI checks matrix
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds a `detect-secrets` baseline for the current repository state, and introduces a new CI matrix task (`pnpm check:loc`) to enforce a TypeScript max-lines-per-file check. It also relaxes the default LOC threshold in `package.json` (500 → 3000) and updates the LOC checker script to support `--exclude` regex patterns.
Overall these changes fit as CI hygiene and repo maintenance guardrails: the baseline enables repeatable secret scanning in CI, while `check:loc` adds a lightweight maintainability gate for TS/TSX files.
<h3>Confidence Score: 4/5</h3>
- This PR is generally safe to merge with low risk; changes are mostly CI/config updates.
- Most changes are additive (new CI task, secret-scanning baseline) and the LOC checker script change is small and straightforward. The main concern is around the default exclusion regex possibly missing intended folders, which could lead to noisy CI failures rather than runtime bugs.
- scripts/check-ts-max-loc.ts and .github/workflows/ci.yml
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#3973: fix: enhance npm package integrity checks and include critical files
by YeSuX · 2026-01-29
73.1%
#7835: CI: add dependency security audit job
by M00N7682 · 2026-02-03
72.9%
#21979: chore: add knip dependency check and remove unused dependencies
by chansuke · 2026-02-20
72.6%
#22383: Chore: apply oxfmt baseline for CI check
by bmendonca3 · 2026-02-21
72.3%
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
72.3%
#7085: test: skip flaky workspace-paths & safe-bins tests on non-Linux/CI ...
by ThinkIbrokeIt · 2026-02-02
72.0%
#12876: major test workflow: enhance coverage infrastructure
by Mathbkj · 2026-02-09
71.9%
#23371: chore: add agentlint/prguard/secretmap skills + gitignore restart.sh
by alexmelges · 2026-02-22
71.7%
#22990: test: fix readonly typing regressions in CI check baseline
by bmendonca3 · 2026-02-21
71.4%
#8988: fix: resolve security vulnerabilities in dependencies
by fotorpics · 2026-02-04
71.2%