rustqual 1.6.0

Comprehensive Rust code quality analyzer — seven dimensions: IOSP, Complexity, DRY, SRP, Coupling, Test Quality, Architecture
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Boilerplate-detection (BP-001..BP-010 + config filtering) tests. Split
//! into focused sub-files (each ≤ the SRP file-length cap); the shared
//! `parse` helper + imports live here and reach the sub-modules via `use super::*`.

pub(super) use crate::adapters::analyzers::dry::boilerplate::*;
pub(super) use crate::config::sections::BoilerplateConfig;

mod bp001_to_005;
mod bp002_semantics;
mod bp006_to_008;
mod bp009_onward;
mod bp_predicates;

pub(super) fn parse(code: &str) -> Vec<(String, String, syn::File)> {
    let syntax = syn::parse_file(code).expect("parse failed");
    vec![("test.rs".to_string(), code.to_string(), syntax)]
}