https://github.com/canop/locmess
draws an histogram of the lengths of your LOC
https://github.com/canop/locmess
Last synced: about 1 year ago
JSON representation
draws an histogram of the lengths of your LOC
- Host: GitHub
- URL: https://github.com/canop/locmess
- Owner: Canop
- Created: 2021-03-17T20:21:52.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-04T18:38:12.000Z (about 5 years ago)
- Last Synced: 2025-04-16T20:44:01.004Z (over 1 year ago)
- Language: Rust
- Size: 86.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Latest Version][s1]][l1] [![MIT][s2]][l2] [![Chat on Miaou][s3]][l3]
[s1]: https://img.shields.io/crates/v/locmess.svg
[l1]: https://crates.io/crates/locmess
[s2]: https://img.shields.io/badge/license-MIT-blue.svg
[l2]: LICENSE
[s3]: https://miaou.dystroy.org/static/shields/room.svg
[l3]: https://miaou.dystroy.org/3768?rust
Do you ever wonder about the distribution of LOC lengths in your source files ?
No ?
I do so I made **LocMess**.

As an answer may bring another question, locmess tries to answer it too:

and if you have yet another question, it's probably for `git blame`.
The source code of **LocMess**, which is totally not messy, may serve as a reasonnable basis for many kinds of transplatformy CLI applications. It's small so there's not much to remove to get to the pure boilerplate.
# Installation
## With cargo
You'll need the rust toolchain, which you may find at https://rustup.rs
Then do
```bash
cargo install locmess
```
## From precompiled binaries
You'll find them in https://dystroy.org/locmess/download
# Usage
To compute LOC stats on all not gitignored files in the current directory, do
```bash
locmess
```
You may also pass a path as argument.
Other options are explained with `locmess --help`.