hn.today

Show HN: Farol – A risk map of a pull request for the person who approves it

github.com60 points43 comments

Farol is a free, MIT-licensed CLI and GitHub Action that helps human reviewers decide how much scrutiny a pull request needs and where to focus it. It is designed to run after an AI code review: rather than judging whether changed lines look wrong, it estimates the consequences of merging them. Farol traces changed code to pages, API operations, jobs, and scripts that depend on it, then assigns a 0-100 risk score and a verdict ranging from “fast track” to “careful review.” Its analysis considers code reach, test coverage of changed lines, security findings, contract breaks, and dependency changes, and ranks files so reviewers can start with the most consequential ones.

Farol uses compiler-based static analysis for TypeScript, Go, and Python, aiming for repeatable results with call chains behind its claims. It can surface breaking API changes, security issues, affected clients, and lines not exercised by tests. Reports cover both the whole pull request and commits added since the previous review, and can incorporate existing CI coverage, lint, security, and audit results. Reviewers can check off findings and files, account for feature-flagged pages, and track how their review changes the risk. It runs locally or in a CI runner, does not execute project code or send it to a hosted service, and does not block merges. When it cannot analyze part of a change, it reports uncertainty and calls for careful review rather than treating the code as safe.

Read on github.com43 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Aristotle Expands into Rust

Aristotle Expands into Rust

Aristotle has expanded its formal verification platform to Rust, allowing developers to prove code meets specifications and contains no undefined behavior, including in unsafe blocks. It can also verify that Rust rewrites behave like their original C code, targeting critical software such as smart contracts and infrastructure. (harmonic.fun)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.