tldr-core 0.1.4

Core analysis engine for TLDR code analysis tool
Documentation
use crate::types::Language;

use super::super::SurfaceLanguageProfile;

const NOISE_DIRS: &[&str] = &[
    "benchmark",
    "benchmarks",
    "doc",
    "docs",
    "example",
    "examples",
    "node_modules",
    "test",
    "tests",
    "vendor",
];
const NOISE_FILE_SUFFIXES: &[&str] = &["benchmark.php", "bench.php", "test.php", "tests.php"];
const DROP_SEGMENTS: &[&str] = &["lib", "src"];
const PREFIX_SRC: &[&str] = &["src"];
const PREFIX_LIB: &[&str] = &["lib"];
const DROP_PREFIXES: &[&[&str]] = &[PREFIX_SRC, PREFIX_LIB];
const PREFERRED_ROOTS: &[&str] = &["src", "lib"];
const ENTRYPOINTS: &[&str] = &["composer.json", "src", "lib"];

pub(super) const PROFILE: SurfaceLanguageProfile = SurfaceLanguageProfile {
    language: Language::Php,
    noise_dirs: NOISE_DIRS,
    noise_file_suffixes: NOISE_FILE_SUFFIXES,
    drop_segments: DROP_SEGMENTS,
    drop_prefixes: DROP_PREFIXES,
    preferred_roots: PREFERRED_ROOTS,
    entrypoints: ENTRYPOINTS,
};