From 29aa38554352b9cf7823c7ce5b6ef1dc5662c809 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Sun, 11 Mar 2018 18:49:27 +0100 Subject: [PATCH] add cloc command --- conf | 3 +++ deploy/nix_cloc | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 deploy/nix_cloc diff --git a/conf b/conf index b64188c..593359b 100755 --- a/conf +++ b/conf @@ -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 diff --git a/deploy/nix_cloc b/deploy/nix_cloc new file mode 100644 index 0000000..9300a1f --- /dev/null +++ b/deploy/nix_cloc @@ -0,0 +1,5 @@ +Nix + filter remove_matches ^\s*# + filter remove_inline #.*$ + extension nix + 3rd_gen_scale 3.9