pub struct QualityReport {
pub lint_passed: bool,
pub lint_issues: Vec<String>,
pub syntax_valid: bool,
pub has_tests: bool,
pub has_docstring: bool,
pub has_error_handling: bool,
pub has_hardcoded_secrets: bool,
pub score: f32,
}Expand description
Quality report for a single file.
Fields§
§lint_passed: bool§lint_issues: Vec<String>§syntax_valid: bool§has_tests: bool§has_docstring: bool§has_error_handling: bool§has_hardcoded_secrets: bool§score: f32Trait Implementations§
Source§impl Debug for QualityReport
impl Debug for QualityReport
Auto Trait Implementations§
impl Freeze for QualityReport
impl RefUnwindSafe for QualityReport
impl Send for QualityReport
impl Sync for QualityReport
impl Unpin for QualityReport
impl UnsafeUnpin for QualityReport
impl UnwindSafe for QualityReport
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