pub struct AuditIssue { /* private fields */ }Expand description
A single localization problem discovered during Fluent/Rust source analysis.
Each issue has:
- a
Kind(what kind of problem) - a
Subject(what entity is affected) - a human-readable
message(for display in CLI/TUI/reports)
Implementations§
Source§impl AuditIssue
impl AuditIssue
Sourcepub fn parse_fluent_file_error(file: &ParsedFluentFile) -> Self
pub fn parse_fluent_file_error(file: &ParsedFluentFile) -> Self
Fluent file failed to parse (syntax error, invalid AST, etc.).
Sourcepub fn parse_rust_file_error(file: &ParsedRustFile) -> Self
pub fn parse_rust_file_error(file: &ParsedRustFile) -> Self
Rust file failed to parse (used when scanning for dioxus_i18n macros).
Sourcepub fn missing_base_translation(locale: &Locale) -> Self
pub fn missing_base_translation(locale: &Locale) -> Self
Required locale has no translation files at all.
Sourcepub fn undefined_base_locale(root: &LanguageRoot, locales: &[Locale]) -> Self
pub fn undefined_base_locale(root: &LanguageRoot, locales: &[Locale]) -> Self
Variants exist for a language root, but no primary/base file was found.
Sourcepub fn duplicate_identifier(
locale: &Locale,
identifier: &QualifiedIdentifier,
) -> Self
pub fn duplicate_identifier( locale: &Locale, identifier: &QualifiedIdentifier, ) -> Self
Same identifier defined multiple times in one document.
Sourcepub fn invalid_reference(
locale: &Locale,
identifier: &QualifiedIdentifier,
) -> Self
pub fn invalid_reference( locale: &Locale, identifier: &QualifiedIdentifier, ) -> Self
Reference to non-existent message/term/attribute.
Sourcepub fn missing_translation(
locale: &Locale,
identifier: &QualifiedIdentifier,
) -> Self
pub fn missing_translation( locale: &Locale, identifier: &QualifiedIdentifier, ) -> Self
Key exists in canonical but is missing here.
Sourcepub fn redundant_translation(
locale: &Locale,
identifier: &QualifiedIdentifier,
) -> Self
pub fn redundant_translation( locale: &Locale, identifier: &QualifiedIdentifier, ) -> Self
Key exists here but not in canonical / primary (depending on context).
Sourcepub fn signature_mismatch(
locale: &Locale,
identifier: &QualifiedIdentifier,
) -> Self
pub fn signature_mismatch( locale: &Locale, identifier: &QualifiedIdentifier, ) -> Self
Number or names of placeholders differ from canonical.
Sourcepub fn undefined_identifier_literal(
path: &ParsedRustFile,
identifier: &QualifiedIdentifier,
) -> Self
pub fn undefined_identifier_literal( path: &ParsedRustFile, identifier: &QualifiedIdentifier, ) -> Self
String literal in t!/te!/tid! refers to non-existent key in canonical.
Sourcepub fn malformed_identifier_literal(path: &ParsedRustFile, error: &str) -> Self
pub fn malformed_identifier_literal(path: &ParsedRustFile, error: &str) -> Self
String literal in Rust macro is not a valid Fluent identifier.
Trait Implementations§
Source§impl Clone for AuditIssue
impl Clone for AuditIssue
Source§fn clone(&self) -> AuditIssue
fn clone(&self) -> AuditIssue
Returns a duplicate of the value. Read more
1.0.0 · 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 AuditIssue
impl Debug for AuditIssue
Auto Trait Implementations§
impl Freeze for AuditIssue
impl RefUnwindSafe for AuditIssue
impl !Send for AuditIssue
impl !Sync for AuditIssue
impl Unpin for AuditIssue
impl UnsafeUnpin for AuditIssue
impl UnwindSafe for AuditIssue
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<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
Invokes
WrappingSpan::make_wrapped to wrap an AST node in a span.