This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user