pub struct AnalysisOptions {
pub blank_in_block_comment_as_comment: bool,
pub collapse_continuation_lines: bool,
pub enable_style: bool,
pub style_lang_scope: StyleLangScope,
}Expand description
IEEE 1045-1992 counting options passed from sloc-core (built from AnalysisConfig).
analyze_text accepts this struct so that the caller can control behaviour that the
standard defines as configurable parameters rather than fixed conventions.
Fields§
§blank_in_block_comment_as_comment: boolWhen true (IEEE 1045-1992 default), blank lines inside block comments count as
comment lines rather than blank lines.
collapse_continuation_lines: boolWhen true, backslash-continued physical lines are collapsed into a single logical
line for SLOC counting purposes (IEEE logical SLOC mode).
enable_style: boolWhen true (default), run lexical style-guide heuristics and populate
RawFileAnalysis::style_analysis. Set to false to skip style scoring entirely.
style_lang_scope: StyleLangScopeRestrict style analysis to a specific language family slug ("all" or "c_family").
When "c_family", only C / C++ / Objective-C files are style-analysed.
Trait Implementations§
Source§impl Clone for AnalysisOptions
impl Clone for AnalysisOptions
Source§fn clone(&self) -> AnalysisOptions
fn clone(&self) -> AnalysisOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more