Shogoki / nslocer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nSLOCer

This is a small command line tool to get the normalized source lines of Code (nSLOC), written in Rust. Currently it supports the following languages:

  • Go
  • Rust
  • Solidity
  • Javascript

It is based on tokei, which does most of the heavy lifting.

Prerequisites

To use nslocer with Rust files you need to have rustfmt installed and in your PATH.

Installation

To install from source using cargo.

cargo install https://github.com/Shogoki/nslocer

Usage

After installation you can simply call nslocer.

Example:

nslocer

Full Help

nslocer --help
A simple tool to calculate normalized lines of code, utilitizing tokei in the background

Usage: nslocer [OPTIONS]

Options:
  -p, --path <PATH>                    [default: .]
  -e, --excluded-path <EXCLUDED_PATH>  Exclude path from being analyzed
  -h, --help                           Print help
  -V, --version                        Print version

About


Languages

Language:Rust 100.0%