Skip to main content

StaticAnalyzerConfig

Trait StaticAnalyzerConfig 

Source
pub trait StaticAnalyzerConfig {
    // Required methods
    fn ini<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Ini> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn save<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn with_path(self, path: PathBuf) -> Self;
    fn resolve_package(value: impl AsRef<str>) -> String;
}
Expand description

Trait for static analyzer configuration (e.g. .vale.ini)

Required Methods§

Source

fn ini<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Ini> + Send + 'async_trait>>
where Self: 'async_trait,

Convert to INI

Source

fn save<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Self> + Send + 'async_trait>>
where Self: 'async_trait,

Save configuration

Source

fn with_path(self, path: PathBuf) -> Self

Set parent path of configuration

Source

fn resolve_package(value: impl AsRef<str>) -> String

Resolve package source: convert bare package name to download URL or pass through existing URL/path

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§