Skip to content

balyakin/leakguard

Repository files navigation

LeakGuard

LeakGuard is a CLI analyzer for resource lifecycle leaks on execution paths. It uses a hybrid approach:

  • deterministic path checks for obvious leaks,
  • optional LLM modeling for ambiguous functions,
  • verification and reporting with stable finding identifiers.

Install

npm install -g leakguard

Usage

leakguard scan .
leakguard scan src --format json --output leakguard.json
leakguard demo --language go

Development

npm install
npm run build
npm test

About

Static analyzer that tracks resource lifecycles across all code paths to find locks, connections, and handles that leak on error paths. Inspired by the 57-year-old bug found in Apollo 11 guidance code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages