rsconstruct 0.9.0

Rust based fast build system
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! standard checker — registered as a {SimpleChecker}.

use crate::processors::SimpleChecker;
use crate::config::SimpleCheckerParams;

fn create_standard(toml: &toml::Value) -> anyhow::Result<Box<dyn crate::processors::Processor>> {
    crate::registries::deserialize_and_create(toml, |cfg| Box::new(SimpleChecker::new(cfg, SimpleCheckerParams { description: "Check JavaScript style using standard", subcommand: None, prepend_args: &[], extra_tools: &["node"] })))
}
inventory::submit! { crate::registries::ProcessorPlugin {
    version: 1,
    name: "standard", processor_type: crate::processors::ProcessorType::Checker, create: create_standard,
    known_fields: crate::registries::typed_known_fields::<crate::config::StandardConfig>,
    output_fields: crate::registries::typed_output_fields::<crate::config::StandardConfig>,
    must_fields: crate::registries::typed_must_fields::<crate::config::StandardConfig>,
    field_descriptions: crate::registries::typed_field_descriptions::<crate::config::StandardConfig>,
    defconfig_json: crate::registries::default_config_json::<crate::config::StandardConfig>,
} }