Project

pantoglot

0.0
No release in over 3 years
Low commit activity in last 3 years
Given a path to a file or directory, excluding `.git` and its contents, symlinks, and any non-text files, attempt to identify the language and calculate the LOC/SLOC using Linguist and output results in JSON.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.16
~> 10.0

Runtime

 Project Readme

Pantoglot

Analyze source code language, LOC and SLOC breakdown for a given file-tree or file.

Given a path to a file or directory, excluding .git and its contents, symlinks, and any non-text files, attempt to identify the language and calculate the LOC/SLOC using Linguist and output results in JSON.

Usage

The simplest method of utilization is via docker using the public image and provided bash wrapper in ./bin:

$ bin/docker-pantoglot /path/to/input >> output.json

Alternatively, install the gem locally. (Note that the dependency on Linguist inherits added dependency complexities requiring environment-specific resolution.)

$ gem install pantoglot