add cloc command

auto-flake-update
Yorick van Pelt 2018-03-11 18:49:27 +01:00
parent 9db7e7bc35
commit 29aa385543
2 changed files with 8 additions and 0 deletions

3
conf
View File

@ -23,4 +23,7 @@ channel)
export NIX_PATH="/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=`pwd`/logical/$2.nix:$NIX_PATH"
eval ${@:3}
;;
cloc)
cloc --read-lang-def=deploy/nix_cloc .
;;
esac

5
deploy/nix_cloc Normal file
View File

@ -0,0 +1,5 @@
Nix
filter remove_matches ^\s*#
filter remove_inline #.*$
extension nix
3rd_gen_scale 3.9