Simple code lines counter for Linux.
To install simple-loc you need these tools to be installed:
- g++
- ld
- make
- git
Follow these steps to install simple-loc:
- Clone this repo:
git clone https://github.com/eastev/simple-loc.git - Enter the directory:
cd simple-loc - Build it:
make - Install it:
sudo make install
If you want to uninstall simple-loc use: sudo make uninstall
You can see all make commands with: make help
All information about usage and simple-loc parameters can be seen by: loc -h
For example to count all code lines of all languages in current directory and
subdirectories use: loc.
If you want to specify directory use: loc -d <dir>
Simple-loc has its own language config /etc/simple-loc/langs.conf
It can be modified (Instructions are in a head of file). Basic config has some properties for C, C++, C#, Python, Makefile and etc.
Copyright © eastev <eastevrud31@gmail.com>
All rights reserved.