Ignore generic metadata files in counts
ci / test (push) Successful in 9s

This commit is contained in:
2026-07-16 20:36:06 +00:00
parent 0ccd4e47ae
commit ecc1578b92
4 changed files with 81 additions and 0 deletions
+7
View File
@@ -8,6 +8,7 @@ Tiny API that clones a Git repo and counts its non-empty lines of code.
- Optional API key enforcement
- Per-repo in-memory caching
- Extension-based language breakdown
- Generic project metadata files are ignored during counting
- Basic rate limiting
- Bounded concurrent scans so the host does not get hammered
- SSH key file support for private repos
@@ -66,6 +67,12 @@ curl "http://localhost:3000/ssh/public-key?ssh_key=loc_via_git_ed25519"
- The service also sweeps stale temp directories in case a process dies mid-scan.
- Cache entries live in memory only and expire after `CACHE_TTL_MINUTES`.
## Counting rules
- Only text files are counted.
- Empty lines are ignored.
- Generic project metadata files are skipped with a filename blacklist, for example `package.json`, lockfiles, `tsconfig.json`, and similar config/build files.
## Configuration
Copy `.env.example` to `.env` and adjust: