pub struct QualityInput {
pub code: Option<String>,
pub path: Option<String>,
pub summary_only: bool,
pub include_baselined: bool,
}Expand description
The input of quality.report: which findings to answer with.
Fields§
§code: Option<String>Only findings carrying this code (RUST_PUBLIC_MISSING_EXAMPLE). All of them when
absent. A code nothing recognises is refused rather than answered with an empty
list, so a typo cannot read as a clean report.
path: Option<String>Only findings whose file path starts with this, repository-relative
(apps/majordomus-cli/src/web). All of them when absent.
summary_only: boolAnswer with the counts and leave the findings out. For a caller that wants the state of the crate and not the list of what to do about it.
include_baselined: boolInclude the findings the ratchet already accepts, which are left out by default.
The default is what a gate wants: only what is new. This is what a person paying the
debt down wants, and it is what --write-baseline must ask for — a baseline written
from a report that had the baseline applied to it would empty the file, accepting
nothing and failing on everything the next time it ran.
Trait Implementations§
Source§impl BenchmarkCases for QualityInput
impl BenchmarkCases for QualityInput
Source§fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
fn benchmark_cases(_: &CaseContext<'_>) -> Vec<NamedCase<Self>>
Source§fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
fn benchmark_cases_json(ctx: &CaseContext<'_>) -> Vec<NamedCase<Value>>
Source§impl Clone for QualityInput
impl Clone for QualityInput
Source§fn clone(&self) -> QualityInput
fn clone(&self) -> QualityInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QualityInput
impl Debug for QualityInput
Source§impl Default for QualityInput
impl Default for QualityInput
Source§fn default() -> QualityInput
fn default() -> QualityInput
Source§impl<'de> Deserialize<'de> for QualityInput
impl<'de> Deserialize<'de> for QualityInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for QualityInput
impl JsonSchema for QualityInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more