A command line tool to identify unused code.
v0.10.0.0, Exuberant Ctags 5.9
Patterns to include in execution and reports.
Patterns to exclude from execution and reports.
Amount of CPU. The default machine has
0.5 CPU with
1920 MiB RAM.
Below is the list of options that are supported:
-s,--single-occurrence Display only single occurrences -l,--likelihood ARG [Allows multiple] [Allowed: high, medium, low] Display results based on likelihood -a,--all-likelihoods Display all likelihoods --ignore PATH [Allows multiple] Ignore paths that contain PATH --commits ARG Number of recent commit SHAs to display per token --search ARG [Allowed: ag, rg] Select searching backend
In addition to general severity levels, the following tool specific severity levels can be specified:
High(equivalent to general severity level
Medium(equivalent to general severity level
Low(equivalent to general severity level
Unknown(equivalent to general severity level
NotCalculated(equivalent to general severity level
Note: The incremental analysis is disabled if any kinds of configuration files are changed. The files recognized as configuration files are as follows:
- Configuration files:
.unused.ymlat the repository root
With default options:
inspecode: unused: default
With custom machine:
inspecode: unused: machine: cpu: 1.5 # 1.5 CPU, 5760 MiB RAM
With custom options:
inspecode: unused: options: [--single-occurrence, --all-likelihoods]