pub struct RustValidator;Expand description
Rust validator using cargo check and clippy
Implementations§
Source§impl RustValidator
impl RustValidator
Sourcepub fn check_common_issues(
&self,
content: &str,
file_path: &str,
) -> Vec<ValidationError>
pub fn check_common_issues( &self, content: &str, file_path: &str, ) -> Vec<ValidationError>
Checks for common Rust issues
Sourcepub fn check_unwrap_calls(
&self,
content: &str,
file_path: &str,
) -> Vec<ValidationWarning>
pub fn check_unwrap_calls( &self, content: &str, file_path: &str, ) -> Vec<ValidationWarning>
Checks for unwrap() calls
Sourcepub fn check_panic_calls(
&self,
content: &str,
file_path: &str,
) -> Vec<ValidationWarning>
pub fn check_panic_calls( &self, content: &str, file_path: &str, ) -> Vec<ValidationWarning>
Checks for panic! calls
Trait Implementations§
Source§impl Clone for RustValidator
impl Clone for RustValidator
Source§fn clone(&self) -> RustValidator
fn clone(&self) -> RustValidator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustValidator
impl Debug for RustValidator
Source§impl Default for RustValidator
impl Default for RustValidator
Source§impl LanguageValidator for RustValidator
impl LanguageValidator for RustValidator
Auto Trait Implementations§
impl Freeze for RustValidator
impl RefUnwindSafe for RustValidator
impl Send for RustValidator
impl Sync for RustValidator
impl Unpin for RustValidator
impl UnwindSafe for RustValidator
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