rust-code-analysis-code-split 0.0.26-cs.0

Fork of mozilla/rust-code-analysis bumped to tree-sitter 0.26 for use by code-split. Computes complexity metrics (cyclomatic, cognitive, Halstead, MI, LOC).
Documentation
mod common;

use common::compare_rca_output_with_files;

#[test]
fn test_deepspeech() {
    // FIXME: Ignoring these files temporarily due to parsing errors (see issue: https://github.com/mozilla/rust-code-analysis/issues/1142),
    // in order to allow CI to pass until the issue is resolved.
    let exclude = &[
        "**/DeepSpeech/native_client/deepspeech.cc",
        "**/DeepSpeech/native_client/getopt_win.h",
        "**/DeepSpeech/native_client/kenlm/util/mmap.cc",
        "**/DeepSpeech/native_client/deepspeech.h",
        "**/DeepSpeech/native_client/kenlm/util/double-conversion/fast-dtoa.cc",
        "**/DeepSpeech/native_client/kenlm/lm/left_test.cc",
        "**/DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.7/src/test/fst_test.h",
        "**/DeepSpeech/native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/test/fst_test.h",
    ];

    compare_rca_output_with_files("DeepSpeech", &["*.cc", "*.cpp", "*.h", "*.hh"], exclude);
}