pub struct SectionOrderingRule;
Expand description
Detects section ordering issues.
Trait Implementations§
Source§impl Clone for SectionOrderingRule
impl Clone for SectionOrderingRule
Source§fn clone(&self) -> SectionOrderingRule
fn clone(&self) -> SectionOrderingRule
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 SectionOrderingRule
impl Debug for SectionOrderingRule
Source§impl Default for SectionOrderingRule
impl Default for SectionOrderingRule
Source§fn default() -> SectionOrderingRule
fn default() -> SectionOrderingRule
Returns the “default value” for a type. Read more
Source§impl Rule for SectionOrderingRule
impl Rule for SectionOrderingRule
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
A short, single sentence description of the lint rule.
Source§fn explanation(&self) -> &'static str
fn explanation(&self) -> &'static str
Get the long-form explanation of the lint rule.
Get the tags of the lint rule.
Source§fn exceptable_nodes(&self) -> Option<&'static [SyntaxKind]>
fn exceptable_nodes(&self) -> Option<&'static [SyntaxKind]>
Gets the nodes that are exceptable for this rule. Read more
Gets the ID of rules that are related to this rule. Read more
Source§impl Visitor for SectionOrderingRule
impl Visitor for SectionOrderingRule
Source§fn task_definition(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
task: &TaskDefinition,
)
fn task_definition( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, task: &TaskDefinition, )
Visits a task definition node.
Source§fn workflow_definition(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
workflow: &WorkflowDefinition,
)
fn workflow_definition( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, workflow: &WorkflowDefinition, )
Visits a workflow definition node.
Source§fn struct_definition(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
struct_def: &StructDefinition,
)
fn struct_definition( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, struct_def: &StructDefinition, )
Visits a struct definition node.
Source§fn document(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
doc: &Document,
version: SupportedVersion,
)
fn document( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, doc: &Document, version: SupportedVersion, )
Visits the root document node.
Source§fn whitespace(&mut self, diagnostics: &mut Diagnostics, whitespace: &Whitespace)
fn whitespace(&mut self, diagnostics: &mut Diagnostics, whitespace: &Whitespace)
Visits a whitespace token.
Source§fn comment(&mut self, diagnostics: &mut Diagnostics, comment: &Comment)
fn comment(&mut self, diagnostics: &mut Diagnostics, comment: &Comment)
Visit a comment token.
Source§fn version_statement(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
stmt: &VersionStatement,
)
fn version_statement( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, stmt: &VersionStatement, )
Visits a top-level version statement node.
Source§fn import_statement(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
stmt: &ImportStatement,
)
fn import_statement( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, stmt: &ImportStatement, )
Visits a top-level import statement node.
Source§fn input_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &InputSection,
)
fn input_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &InputSection, )
Visits an input section node.
Source§fn output_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &OutputSection,
)
fn output_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &OutputSection, )
Visits an output section node.
Source§fn command_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &CommandSection,
)
fn command_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &CommandSection, )
Visits a command section node.
Source§fn command_text(&mut self, diagnostics: &mut Diagnostics, text: &CommandText)
fn command_text(&mut self, diagnostics: &mut Diagnostics, text: &CommandText)
Visits a command text token in a command section node.
Source§fn requirements_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &RequirementsSection,
)
fn requirements_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &RequirementsSection, )
Visits a requirements section node.
Source§fn task_hints_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &TaskHintsSection,
)
fn task_hints_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &TaskHintsSection, )
Visits a task hints section node.
Source§fn workflow_hints_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &WorkflowHintsSection,
)
fn workflow_hints_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &WorkflowHintsSection, )
Visits a workflow hints section node.
Source§fn runtime_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &RuntimeSection,
)
fn runtime_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &RuntimeSection, )
Visits a runtime section node.
Source§fn runtime_item(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
item: &RuntimeItem,
)
fn runtime_item( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, item: &RuntimeItem, )
Visits a runtime item node.
Source§fn metadata_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &MetadataSection,
)
fn metadata_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &MetadataSection, )
Visits a metadata section node.
Source§fn parameter_metadata_section(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
section: &ParameterMetadataSection,
)
fn parameter_metadata_section( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, section: &ParameterMetadataSection, )
Visits a parameter metadata section node.
Source§fn metadata_object(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
object: &MetadataObject,
)
fn metadata_object( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, object: &MetadataObject, )
Visits a metadata object in a metadata or parameter metadata section.
Source§fn metadata_object_item(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
item: &MetadataObjectItem,
)
fn metadata_object_item( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, item: &MetadataObjectItem, )
Visits a metadata object item in a metadata object.
Source§fn metadata_array(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
item: &MetadataArray,
)
fn metadata_array( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, item: &MetadataArray, )
Visits a metadata array node in a metadata or parameter metadata
section.
Source§fn unbound_decl(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
decl: &UnboundDecl,
)
fn unbound_decl( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, decl: &UnboundDecl, )
Visits an unbound declaration node.
Source§fn bound_decl(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
decl: &BoundDecl,
)
fn bound_decl( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, decl: &BoundDecl, )
Visits a bound declaration node.
Source§fn expr(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
expr: &Expr,
)
fn expr( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, expr: &Expr, )
Visits an expression node.
Source§fn string_text(&mut self, diagnostics: &mut Diagnostics, text: &StringText)
fn string_text(&mut self, diagnostics: &mut Diagnostics, text: &StringText)
Visits a string text token in a literal string node.
Source§fn placeholder(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
placeholder: &Placeholder,
)
fn placeholder( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, placeholder: &Placeholder, )
Visits a placeholder node.
Source§fn conditional_statement(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
stmt: &ConditionalStatement,
)
fn conditional_statement( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, stmt: &ConditionalStatement, )
Visits a conditional statement node in a workflow.
Source§fn scatter_statement(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
stmt: &ScatterStatement,
)
fn scatter_statement( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, stmt: &ScatterStatement, )
Visits a scatter statement node in a workflow.
Source§fn call_statement(
&mut self,
diagnostics: &mut Diagnostics,
reason: VisitReason,
stmt: &CallStatement,
)
fn call_statement( &mut self, diagnostics: &mut Diagnostics, reason: VisitReason, stmt: &CallStatement, )
Visits a call statement node in a workflow.
impl Copy for SectionOrderingRule
Auto Trait Implementations§
impl Freeze for SectionOrderingRule
impl RefUnwindSafe for SectionOrderingRule
impl Send for SectionOrderingRule
impl Sync for SectionOrderingRule
impl Unpin for SectionOrderingRule
impl UnwindSafe for SectionOrderingRule
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more