mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
lint
This commit is contained in:
parent
61ea7e91a7
commit
a95ea7e142
1 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ pub enum LintResult {
|
||||||
},
|
},
|
||||||
/// File was not parsed and linted because, eg. it might have
|
/// File was not parsed and linted because, eg. it might have
|
||||||
/// been a minified file.
|
/// been a minified file.
|
||||||
Skipped { diagnostic: LintDiagnostic },
|
Skipped { diagnostic: Box<LintDiagnostic> },
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct CliLinterOptions {
|
pub struct CliLinterOptions {
|
||||||
|
@ -121,11 +121,11 @@ impl CliLinter {
|
||||||
custom_docs_url: None,
|
custom_docs_url: None,
|
||||||
info: vec![],
|
info: vec![],
|
||||||
};
|
};
|
||||||
let diagnostic = LintDiagnostic {
|
let diagnostic = Box::new(LintDiagnostic {
|
||||||
specifier,
|
specifier,
|
||||||
range: None,
|
range: None,
|
||||||
details,
|
details,
|
||||||
};
|
});
|
||||||
return Ok(LintResult::Skipped { diagnostic });
|
return Ok(LintResult::Skipped { diagnostic });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue