From f3c0c8a7057cce92a18ef3f3c703b1dfd381e8e8 Mon Sep 17 00:00:00 2001 From: Nathan Braswell Date: Fri, 26 Jun 2015 14:18:28 -0400 Subject: [PATCH] Added a kraken cloc definition and script to run cloc with the definition. --- current_stats.sh | 2 ++ kraken_cloc_definition.txt | 6 ++++++ 2 files changed, 8 insertions(+) create mode 100755 current_stats.sh create mode 100644 kraken_cloc_definition.txt diff --git a/current_stats.sh b/current_stats.sh new file mode 100755 index 0000000..5913990 --- /dev/null +++ b/current_stats.sh @@ -0,0 +1,2 @@ +#!/bin/sh +cloc --read-lang-def=kraken_cloc_definition.txt . diff --git a/kraken_cloc_definition.txt b/kraken_cloc_definition.txt new file mode 100644 index 0000000..fc1a2e9 --- /dev/null +++ b/kraken_cloc_definition.txt @@ -0,0 +1,6 @@ +Kraken + filter remove_matches ^\s*// + filter remove_inline //.*$ + filter call_regexp_common C + extension krak + 3rd_gen_scale 1.0