pub struct LintIssue { /* private fields */ }Available on crate feature
analysis only.Expand description
A single lint issue found in the script.
Implementations§
Source§impl LintIssue
impl LintIssue
Sourcepub const fn new(
severity: IssueSeverity,
category: IssueCategory,
rule_id: &'static str,
message: String,
) -> Self
pub const fn new( severity: IssueSeverity, category: IssueCategory, rule_id: &'static str, message: String, ) -> Self
Create a new lint issue.
Sourcepub fn with_description(self, description: String) -> Self
pub fn with_description(self, description: String) -> Self
Add detailed description.
Sourcepub fn with_location(self, location: IssueLocation) -> Self
pub fn with_location(self, location: IssueLocation) -> Self
Add location information.
Sourcepub fn with_suggested_fix(self, fix: String) -> Self
pub fn with_suggested_fix(self, fix: String) -> Self
Add suggested fix.
Sourcepub const fn severity(&self) -> IssueSeverity
pub const fn severity(&self) -> IssueSeverity
Get severity level.
Sourcepub const fn category(&self) -> IssueCategory
pub const fn category(&self) -> IssueCategory
Get issue category.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
Get detailed description.
Sourcepub const fn location(&self) -> Option<&IssueLocation>
pub const fn location(&self) -> Option<&IssueLocation>
Get location information.
Sourcepub fn suggested_fix(&self) -> Option<&str>
pub fn suggested_fix(&self) -> Option<&str>
Get suggested fix.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LintIssue
impl RefUnwindSafe for LintIssue
impl Send for LintIssue
impl Sync for LintIssue
impl Unpin for LintIssue
impl UnwindSafe for LintIssue
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