pub struct ProcessLinter { /* private fields */ }Expand description
What: The linter of one invocation: the environment it runs with, its bounds, where its files go, and, once known, its program and configuration file. Why: The lookup and the file are made at most once; their failures are remembered and reported to every later candidate the same way.
In TS you’d write (pseudocode):
class ProcessLinter implements MarkdownLinter { executable?: string | null; configuration?: TemporaryFile | string }Trait Implementations§
Source§impl MarkdownLinter for ProcessLinter
What:
impl MarkdownLinter for ProcessLinter starts the real linter for each request.
Why:
See the module comment.
impl MarkdownLinter for ProcessLinter
What:
impl MarkdownLinter for ProcessLinter starts the real linter for each request.
Why:
See the module comment.
In TS you’d write (pseudocode):
class ProcessLinter implements MarkdownLinter {}Source§fn lint(&mut self, request: &LintRequest<'_>) -> Result<LintRun, String>
fn lint(&mut self, request: &LintRequest<'_>) -> Result<LintRun, String>
What:
Lint one candidate through the linter’s standard input.
Why:
The linter reads .lfsconfig and linked images from the worktree,
so it runs
from the top level and is told the candidate’s name relative to it.
In TS you’d write (pseudocode):
lint(request: LintRequest): LintRun; // throws stringAuto Trait Implementations§
impl Freeze for ProcessLinter
impl RefUnwindSafe for ProcessLinter
impl Send for ProcessLinter
impl Sync for ProcessLinter
impl Unpin for ProcessLinter
impl UnsafeUnpin for ProcessLinter
impl UnwindSafe for ProcessLinter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more