pub enum FindingIdQueryReason {
Show 14 variants
Diff,
ChangedSince,
PackageBaselines,
ChangedFiles,
Workspace,
ChangedWorkspaces,
Scope,
File,
IssueTypeFilter,
Production,
IncludeEntryExports,
Baseline,
RuleOff,
Filtered,
}Expand description
One reason why a missing id does not prove that the finding is gone.
Serialized as kebab-case inside inconclusive_reasons. The set is OPEN: a
name this build does not emit means “some reason”, not an error, and the
query stays inconclusive.
Variants§
Diff
A diff index narrowed the report (--diff-file, --diff-stdin,
FALLOW_DIFF_FILE or a CI format).
ChangedSince
A global changed-since ref.
PackageBaselines
The per-package refs of workspaces.changedSince in the config.
ChangedFiles
A resolved changed-file set narrowed the report.
Workspace
--workspace.
ChangedWorkspaces
--changed-workspaces.
Scope
The positional [PATH] scope.
File
One or more --file.
IssueTypeFilter
An issue-type filter such as --unused-exports.
Production
Production mode, from the flag or from the project config. It removes test, story and dev files before the analysis, so a finding in such a file is never seen. A project that sets production mode in its config therefore never gets a conclusive answer.
IncludeEntryExports
--include-entry-exports or the includeEntryExports config key. It
changes which exports unused-exports reports.
Baseline
--baseline: the run hides the findings the baseline lists.
RuleOff
The rule of a missing id is off in rules or in one of the
overrides[].rules. The analysis does not look for such a finding,
so its absence proves nothing.
Filtered
The analysis found a requested id, and a filter of this run removed it
from the report. The ids are in filtered.
Implementations§
Trait Implementations§
Source§impl Clone for FindingIdQueryReason
impl Clone for FindingIdQueryReason
impl Copy for FindingIdQueryReason
Source§impl Debug for FindingIdQueryReason
impl Debug for FindingIdQueryReason
impl Eq for FindingIdQueryReason
Source§impl From<ScopeReason> for FindingIdQueryReason
impl From<ScopeReason> for FindingIdQueryReason
Source§fn from(reason: ScopeReason) -> Self
fn from(reason: ScopeReason) -> Self
Source§impl Ord for FindingIdQueryReason
impl Ord for FindingIdQueryReason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FindingIdQueryReason
impl PartialEq for FindingIdQueryReason
Source§impl PartialOrd for FindingIdQueryReason
impl PartialOrd for FindingIdQueryReason
Source§impl Serialize for FindingIdQueryReason
impl Serialize for FindingIdQueryReason
impl StructuralPartialEq for FindingIdQueryReason
Auto Trait Implementations§
impl Freeze for FindingIdQueryReason
impl RefUnwindSafe for FindingIdQueryReason
impl Send for FindingIdQueryReason
impl Sync for FindingIdQueryReason
impl Unpin for FindingIdQueryReason
impl UnsafeUnpin for FindingIdQueryReason
impl UnwindSafe for FindingIdQueryReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.