File tree Expand file tree Collapse file tree 8 files changed +20
-19
lines changed Expand file tree Collapse file tree 8 files changed +20
-19
lines changed Original file line number Diff line number Diff line change 1818
1919(development
2020 (depends-on "kotlin-mode")
21+ (depends-on "go-mode")
2122 (depends-on "lua-mode")
23+ (depends-on "rust-mode")
24+ (depends-on "typescript-mode")
2225 (depends-on "treesit-langs"
2326 :repo "emacs-tree-sitter/treesit-langs"
2427 :fetcher 'github) ; pre-built binary
Original file line number Diff line number Diff line change 2626
2727(cognitive-complexity-test bash-simple
2828 " test/bash/Simple.sh"
29- bash-ts -mode
29+ sh -mode
3030 '(3
3131 (function_definition . 0 )
3232 (command . 0 )
4444
4545(cognitive-complexity-test bash-recursion
4646 " test/bash/Recursion.sh"
47- bash-ts -mode
47+ sh -mode
4848 '(2
4949 (function_definition . 0 )
5050 (if_statement . 1 )
Original file line number Diff line number Diff line change 2626
2727(cognitive-complexity-test c-simple
2828 " test/c/Simple.c"
29- c-ts- mode
29+ c-mode
3030 '(4
3131 (preproc_ifdef . 1 )
3232 (function_definition . 0 )
3737
3838(cognitive-complexity-test c-recursion
3939 " test/c/Recursion.c"
40- c-ts- mode
40+ c-mode
4141 '(2
4242 (function_definition . 0 )
4343 (if_statement . 1 )
Original file line number Diff line number Diff line change 2626
2727(cognitive-complexity-test simple-go-code
2828 " test/go/Simple.go"
29- go-ts- mode
29+ go-mode
3030 '(2
3131 (" function_declaration" . 0 )
3232 (" if_statement" . 1 )
3535
3636(cognitive-complexity-test recursion-go-code
3737 " test/go/Recursion.go"
38- go-ts- mode
38+ go-mode
3939 '(2
4040 (" function_declaration" . 0 )
4141 (" if_statement" . 1 )
4545; ; https://github.com/emacs-vs/codemetrics/issues/7
4646(cognitive-complexity-test go-nested-print-calls
4747 " test/go/NestedPrints.go"
48- go-ts- mode
48+ go-mode
4949 '(6
5050 (" function_declaration" . 0 )
5151 (" for_statement" . 1 )
Original file line number Diff line number Diff line change 2626
2727(cognitive-complexity-test javascript-simple
2828 " test/javascript/Simple.js"
29- js-ts- mode
29+ js-mode
3030 '(3
3131 (function_declaration . 0 )
3232 (call_expression . 0 )
3636
3737(cognitive-complexity-test javascript-recursion
3838 " test/javascript/Recursion.js"
39- js-ts- mode
39+ js-mode
4040 '(2
4141 (function_declaration . 0 )
4242 (if_statement . 1 )
4343 (call_expression . 1 )))
4444
4545(cognitive-complexity-test javascript-nesting
4646 " test/javascript/Nesting.js"
47- js-ts- mode
47+ js-mode
4848 '(4
4949 (call_expression . 0 )
5050 (arrow_function . 0 )
5858
5959(cognitive-complexity-test javascript-logical-operators
6060 " test/javascript/LogicalOperators.js"
61- js-ts- mode
61+ js-mode
6262 '(2
6363 (" &&" . 0 )
6464 (" ||" . 0 )
Original file line number Diff line number Diff line change 8787 (binary_expression . 0 )
8888 (binary_expression . 0 )))
8989
90-
91-
9290; ;; lua-test.el ends here
Original file line number Diff line number Diff line change 2626
2727(cognitive-complexity-test rust-simple
2828 " test/rust/Simple.rs"
29- rust-ts- mode
29+ rust-mode
3030 '(2
3131 (function_item . 0 )
3232 (function_item . 0 )
3737
3838(cognitive-complexity-test rust-recursion
3939 " test/rust/Recursion.rs"
40- rust-ts- mode
40+ rust-mode
4141 '(2
4242 (function_item . 0 )
4343 (if_expression . 1 )
4444 (call_expression . 1 )))
4545
4646(cognitive-complexity-test rust-nesting
4747 " test/rust/Nesting.rs"
48- rust-ts- mode
48+ rust-mode
4949 '(5
5050 (function_item . 0 )
5151 (macro_invocation . 0 )
6060
6161(cognitive-complexity-test rust-logical-operators
6262 " test/rust/LogicalOperators.rs"
63- rust-ts- mode
63+ rust-mode
6464 '(6
6565 (function_item . 0 )
6666 (if_expression . 1 )
7676
7777(cognitive-complexity-test rust-control-flow
7878 " test/rust/ControlFlow.rs"
79- rust-ts- mode
79+ rust-mode
8080 '(17
8181 (function_item . 0 )
8282 (loop_expression . 1 )
Original file line number Diff line number Diff line change 2626
2727(cognitive-complexity-test typescript-simple
2828 " test/typescript/Simple.ts"
29- typescript-ts- mode
29+ typescript-mode
3030 '(1
3131 (" class_declaration" . 0 )
3232 (" method_definition" . 0 )
You can’t perform that action at this time.
0 commit comments