Rank Command

The rank command will show a CLI table of files in order of their respective metric values. It is useful for identifying e.g. complex files.

../_images/wily_rank.png

Examples

To show all files in the index, simply use wily rank without arguments.

$ wily rank

To display a file ranking, simply provide the path to a directory.

$ wily rank src/

By default, wily will show the default metric (maintainability index).

To change the metric, provide the metric name (run wily list-metrics for a list) as argument.

$ wily rank src/ loc

Wily rank will show the last revision by default. If you want to show a specific revision, you can provide the reference of a revision via --revision.

$ wily rank src/ --revision HEAD^2

Wily rank will exit with 0 by default if no error occurs.

Command Line Usage