pub struct TemplateLinter { /* private fields */ }Expand description
Template linter for comprehensive template validation
Implementations§
Source§impl TemplateLinter
impl TemplateLinter
Sourcepub fn with_production_rules(self) -> Self
pub fn with_production_rules(self) -> Self
Add common lint rules for production templates
Sourcepub fn lint(
&self,
template_content: &str,
template_name: &str,
) -> Result<Vec<String>>
pub fn lint( &self, template_content: &str, template_name: &str, ) -> Result<Vec<String>>
Lint template content
§Arguments
template_content- Template source contenttemplate_name- Template name for reporting
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemplateLinter
impl !RefUnwindSafe for TemplateLinter
impl !Send for TemplateLinter
impl !Sync for TemplateLinter
impl Unpin for TemplateLinter
impl !UnwindSafe for TemplateLinter
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