https://github.com/kaihendry/lesshero
Highlight refactors and efforts to keep code base lean
https://github.com/kaihendry/lesshero
chart code-analysis complexity-measures git sloc toxicity
Last synced: 16 days ago
JSON representation
Highlight refactors and efforts to keep code base lean
- Host: GitHub
- URL: https://github.com/kaihendry/lesshero
- Owner: kaihendry
- License: mit
- Created: 2022-09-22T14:27:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-29T07:22:08.000Z (3 months ago)
- Last Synced: 2025-03-23T22:13:43.635Z (about 1 month ago)
- Topics: chart, code-analysis, complexity-measures, git, sloc, toxicity
- Language: Go
- Homepage:
- Size: 158 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Less Hero!
[](http://www.youtube.com/watch?v=Zlsq9B6KdB0 "Highlighting less code")
Demo: https://kaihendry.github.io/lesshero/
## Goal: Highlight efforts to reduce bloat
It's important for your health to **watch your weight**.
Same for code.
Aim of this project is to celebrate those who refactor and put code on
a diet!## Install
Assuming you have a Go runtime installed:
go install github.com/kaihendry/lesshero@latest
## Usage
`lesshero -b` will show source code additions over time in a chart in your browser.
Explicit usage:
lesshero /path/to/a/full/git/checkout > sloc.jsonl
cat sloc.jsonl | lesshero -o chart.html### Docker
docker run -v $(pwd):/repo hendry/lesshero -o /repo/chart.html /repo
## Related projects to help track code complexity
- https://github.com/boyter/scc
- https://github.com/kaihendry/graphsloc## Create a SLOC chart via a GitHub action
First you need to enable Github Pages with the source of **Github Actions**.