Skip to content
play

GitHub Action

Less Hero

v0.1.4 Latest version

Less Hero

play

Less Hero

Creates lesshero.html, a SLOC graph of your project

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Less Hero

uses: kaihendry/lesshero@v0.1.4

Learn more about this action in kaihendry/lesshero

Choose a version

Less Hero!

Less Hero explainer

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

Create a SLOC chart via a GitHub action

First you need to enable Github Pages with the source of Github Actions.