Skip to content

Commit 6424c05

Browse files
committed
[reporting] Adds a custom type definition for cloc
cloc reports don't have a type definition for Jest tests or Jest snapshots. This file adds them so you can separate those stats from normal javascript usage: cloc ./ --hide-rate --by-percent cmb --read-lang-def=cloc-type-definitions.txt
1 parent bd195b6 commit 6424c05

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cloc-type-definitions.txt

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Jest Tests
2+
filter rm_comments_in_strings " /* */
3+
filter rm_comments_in_strings " //
4+
filter call_regexp_common C++
5+
extension test.js
6+
3rd_gen_scale 1.48
7+
end_of_line_continuation \\$
8+
Jest Test Snapshots
9+
filter rm_comments_in_strings " /* */
10+
filter rm_comments_in_strings " //
11+
filter call_regexp_common C++
12+
extension js.snap
13+
3rd_gen_scale 1.48
14+
end_of_line_continuation \\$

0 commit comments

Comments
 (0)