pub struct StyleIrSummary {Show 29 fields
pub language: String,
pub line_count: usize,
pub function_count: usize,
pub god_function_count: usize,
pub panic_call_count: usize,
pub naming_violation_count: usize,
pub deeply_nested_block_count: usize,
pub debug_call_count: usize,
pub goroutine_spawn_count: usize,
pub defer_in_loop_count: usize,
pub go_convention_count: usize,
pub python_issue_count: usize,
pub java_issue_count: usize,
pub ruby_issue_count: usize,
pub c_issue_count: usize,
pub ts_issue_count: usize,
pub js_issue_count: usize,
pub swift_issue_count: usize,
pub dead_code_count: usize,
pub duplicate_import_count: usize,
pub excessive_param_count: usize,
pub unsafe_block_count: usize,
pub magic_number_count: usize,
pub commented_out_lines: usize,
pub todo_count: usize,
pub over_engineering_count: usize,
pub code_smell_count: usize,
pub is_clean_signal_baseline: bool,
pub thresholds: StyleIrThresholdSummary,
}Expand description
Stable JSON-ready summary of a Style IR snapshot.
Fields§
§language: String§line_count: usize§function_count: usize§god_function_count: usize§panic_call_count: usize§naming_violation_count: usize§deeply_nested_block_count: usize§debug_call_count: usize§goroutine_spawn_count: usize§defer_in_loop_count: usize§go_convention_count: usize§python_issue_count: usize§java_issue_count: usize§ruby_issue_count: usize§c_issue_count: usize§ts_issue_count: usize§js_issue_count: usize§swift_issue_count: usize§dead_code_count: usize§duplicate_import_count: usize§excessive_param_count: usize§unsafe_block_count: usize§magic_number_count: usize§commented_out_lines: usize§todo_count: usize§over_engineering_count: usize§code_smell_count: usize§is_clean_signal_baseline: bool§thresholds: StyleIrThresholdSummaryTrait Implementations§
Source§impl Clone for StyleIrSummary
impl Clone for StyleIrSummary
Source§fn clone(&self) -> StyleIrSummary
fn clone(&self) -> StyleIrSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StyleIrSummary
impl Debug for StyleIrSummary
Source§impl PartialEq for StyleIrSummary
impl PartialEq for StyleIrSummary
Source§fn eq(&self, other: &StyleIrSummary) -> bool
fn eq(&self, other: &StyleIrSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StyleIrSummary
impl Serialize for StyleIrSummary
impl Eq for StyleIrSummary
impl StructuralPartialEq for StyleIrSummary
Auto Trait Implementations§
impl Freeze for StyleIrSummary
impl RefUnwindSafe for StyleIrSummary
impl Send for StyleIrSummary
impl Sync for StyleIrSummary
impl Unpin for StyleIrSummary
impl UnsafeUnpin for StyleIrSummary
impl UnwindSafe for StyleIrSummary
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.