/snap-scc

A Linux Snap package for scc.

MIT LicenseMIT

scc Snap Package CircleCI Build Status GitHub License

A tool similar to cloc, sloccount and tokei. For counting physical the lines of code, blank lines, comment lines, and physical lines of source code in many programming languages.

Goal is to be the fastest code counter possible, but also perform COCOMO calculation like sloccount and to estimate code complexity similar to cyclomatic complexity calculators.

This repository provides the source code for the scc snap which is available in the Snapcraft Store. The snap is maintained by @FelicianoTech meanwhile the code for scc itself is maintained by Ben Boyter. The upstream repository can be found here.

Installation

scc can be installed via snap on Ubuntu 16.04, Ubuntu 18.04+, elementary OS 5.0+, and many Linux distros with snapd installed by running:

sudo snap install scc

If you don't have the snap command available, you might be able to find instructions for your distro here. Otherwise you can manually install a binary from the project's GitHub Releases page.

Usage

Basic usage of scc is simply:

scc path/to/code

scc will then run its analysis and generate a table of results for you. Note: If you use scc via the snap, the codebase you are checking needs to be within your user's home directory in order for it to have the correct permissions to run. More usage instructions can be found in the upstream repo's usage secction though the easiest way would be to run scc --help.

Development

This snap is built with Snapcraft v3.0+ and Multipass.

On Ubuntu:

sudo snap install --classic snapcraft multipass
snapcraft snap

License

Both the code for this snap as well as scc itself is licensed under the MIT license. This repo's license can be found here while the license for scc can be found here.