pub struct PicklsLinterConfig {
pub program: String,
pub args: Vec<String>,
pub use_stdin: bool,
pub pattern: String,
pub filename_match: Option<usize>,
pub line_match: usize,
pub start_col_match: Option<usize>,
pub end_col_match: Option<usize>,
pub severity_match: Option<usize>,
pub description_match: Option<isize>,
pub use_stderr: bool,
}Fields§
§program: StringIf program is not an absolute path, the PATH will be searched in an OS-defined way.
args: Vec<String>Arguments to pass to program. Use “$filename” wherever the absolute path to the real filename should go.
Use “$tmpfilename” where Pickls should inject a temp file (if the linter only accepts file
input).
use_stdin: boolWhether to use stdin to push the contents of the file to program or to rely on the usage
of “$filename” arg.
pattern: StringRegex from which to pull diagnostics from stdout of program. The pattern is matched on
every line of output. When there is a match, a diagnostic is produced.
filename_match: Option<usize>Regex group (1-indexed) that matches the filename of the diagnostic.
line_match: usizeRegex group (1-indexed) that matches the line number of the diagnostic.
start_col_match: Option<usize>Regex group (1-indexed) that matches the starting column number of the diagnostic. (Optional)
end_col_match: Option<usize>Regex group (1-indexed) that matches the ending column number of the diagnostic. (Optional)
severity_match: Option<usize>Regex group (1-indexed) that matches the severity of the alert. Unknown severities will resolve to warnings.
description_match: Option<isize>Regex group (1-indexed) that matches the line number of the diagnostic. Use -1 to indicate that the description is on the previous line of input.
use_stderr: boolWhether to scan stderr instead of stdout. Defaults to false. Setting to true will ignore stdout.
Trait Implementations§
Source§impl Clone for PicklsLinterConfig
impl Clone for PicklsLinterConfig
Source§fn clone(&self) -> PicklsLinterConfig
fn clone(&self) -> PicklsLinterConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more