[][src]Struct deno_lint::linter::Linter

pub struct Linter {
    pub ast_parser: AstParser,
    pub ignore_file_directive: String,
    pub ignore_diagnostic_directives: Vec<String>,
    pub lint_unused_ignore_directives: bool,
}

Fields

ast_parser: AstParserignore_file_directive: Stringignore_diagnostic_directives: Vec<String>lint_unused_ignore_directives: bool

Implementations

impl Linter[src]

pub fn default() -> Self[src]

pub fn new(
    ignore_file_directive: String,
    ignore_diagnostic_directives: Vec<String>,
    lint_unused_ignore_directives: bool
) -> Self
[src]

pub fn lint(
    &mut self,
    file_name: String,
    source_code: String,
    syntax: Syntax,
    rules: Vec<Box<dyn LintRule>>
) -> Result<Vec<LintDiagnostic>, SwcDiagnosticBuffer>
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Linter

impl Send for Linter

impl Sync for Linter

impl Unpin for Linter

impl !UnwindSafe for Linter

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Node for T where
    T: Any + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.