Go to file
Joshua Clayton 4947e54f27 Better manage column formatting
Why?
====

Formatting each column requires context on the column, as well as
information on alignment. This extracts the column formatting logic to a
specific formatter.

ColumnFormatter is coupled to the order of columns/data displayed to the
user.
2016-05-10 06:37:31 -04:00
app Hook into interrupt to trigger other behavior 2016-05-10 05:35:28 -04:00
src/Unused Better manage column formatting 2016-05-10 06:37:31 -04:00
test Allow multiple matches with single-occurring appropriate tokens 2016-05-08 22:25:48 -04:00
.gitignore Ignore tmp 2016-05-01 05:25:50 -04:00
LICENSE Initial 2016-04-28 05:37:06 -04:00
README.md Update README with how to install binary 2016-05-01 04:48:35 -04:00
Setup.hs Initial 2016-04-28 05:37:06 -04:00
stack.yaml Initial 2016-04-28 05:37:06 -04:00
unused.cabal Better manage column formatting 2016-05-10 06:37:31 -04:00

Unused

A command line tool in Haskell to identify unused code.

Using Unused

unused reads from a pipe expecting a series of tokens to search the codebase for.

This could be done with echo:

echo "module\nimport" | unused

Or pulling in a ctags file:

cat .git/tags | cut -f1 | sort -u | unused

My end goal is to have the latter rolled up into unused itself, so you can navigate to a directory, run unused, and everything works as expected.

Building and Compiling

This project uses Haskell and Stack.

Once you have these tools installed:

stack install

This will generate a binary in $HOME/.local/bin; ensure this directory is in your $PATH.

License

Copyright 2016 Josh Clayton. See the LICENSE.