Trait svlint::linter::SyntaxRule

source ·
pub trait SyntaxRule: Sync + Send {
    // Required methods
    fn check(
        &mut self,
        syntax_tree: &SyntaxTree,
        event: &NodeEvent<'_>,
        config: &ConfigOption
    ) -> SyntaxRuleResult;
    fn name(&self) -> String;
    fn hint(&self, config: &ConfigOption) -> String;
    fn reason(&self) -> String;

    // Provided method
    fn into_rule(self) -> Rule
       where Self: Sized + 'static { ... }
}

Required Methods§

source

fn check( &mut self, syntax_tree: &SyntaxTree, event: &NodeEvent<'_>, config: &ConfigOption ) -> SyntaxRuleResult

source

fn name(&self) -> String

source

fn hint(&self, config: &ConfigOption) -> String

source

fn reason(&self) -> String

Provided Methods§

source

fn into_rule(self) -> Rule
where Self: Sized + 'static,

Implementors§

source§

impl SyntaxRule for ActionBlockWithSideEffect

source§

impl SyntaxRule for BlockingAssignmentInAlwaysAtEdge

source§

impl SyntaxRule for BlockingAssignmentInAlwaysFf

source§

impl SyntaxRule for BlockingAssignmentInAlwaysLatch

source§

impl SyntaxRule for CaseDefault

source§

impl SyntaxRule for DefaultNettypeNone

source§

impl SyntaxRule for EnumWithType

source§

impl SyntaxRule for EventlistCommaAlwaysFf

source§

impl SyntaxRule for EventlistOr

source§

impl SyntaxRule for ExplicitCaseDefault

source§

impl SyntaxRule for ExplicitIfElse

source§

impl SyntaxRule for FunctionSameAsSystemFunction

source§

impl SyntaxRule for FunctionWithAutomatic

source§

impl SyntaxRule for GeneralAlwaysLevelSensitive

source§

impl SyntaxRule for GeneralAlwaysNoEdge

source§

impl SyntaxRule for GenerateCaseWithLabel

source§

impl SyntaxRule for GenerateForWithLabel

source§

impl SyntaxRule for GenerateIfWithLabel

source§

impl SyntaxRule for GenvarDeclarationInLoop

source§

impl SyntaxRule for GenvarDeclarationOutLoop

source§

impl SyntaxRule for InoutWithTri

source§

impl SyntaxRule for InputWithVar

source§

impl SyntaxRule for InterfacePortWithModport

source§

impl SyntaxRule for KeywordForbiddenAlways

source§

impl SyntaxRule for KeywordForbiddenAlwaysComb

source§

impl SyntaxRule for KeywordForbiddenAlwaysFf

source§

impl SyntaxRule for KeywordForbiddenAlwaysLatch

source§

impl SyntaxRule for KeywordForbiddenGenerate

source§

impl SyntaxRule for KeywordForbiddenLogic

source§

impl SyntaxRule for KeywordForbiddenPriority

source§

impl SyntaxRule for KeywordForbiddenUnique0

source§

impl SyntaxRule for KeywordForbiddenUnique

source§

impl SyntaxRule for KeywordForbiddenWireReg

source§

impl SyntaxRule for KeywordRequiredGenerate

source§

impl SyntaxRule for LocalparamExplicitType

source§

impl SyntaxRule for LocalparamTypeTwostate

source§

impl SyntaxRule for LoopStatementInAlwaysComb

source§

impl SyntaxRule for LoopStatementInAlwaysFf

source§

impl SyntaxRule for LoopStatementInAlwaysLatch

source§

impl SyntaxRule for LoopVariableDeclaration

source§

impl SyntaxRule for LowercamelcaseInterface

source§

impl SyntaxRule for LowercamelcaseModule

source§

impl SyntaxRule for LowercamelcasePackage

source§

impl SyntaxRule for ModuleAnsiForbidden

source§

impl SyntaxRule for ModuleNonansiForbidden

source§

impl SyntaxRule for MultilineForBegin

source§

impl SyntaxRule for MultilineIfBegin

source§

impl SyntaxRule for NonBlockingAssignmentInAlwaysComb

source§

impl SyntaxRule for NonBlockingAssignmentInAlwaysNoEdge

source§

impl SyntaxRule for OperatorCaseEquality

source§

impl SyntaxRule for OperatorIncdec

source§

impl SyntaxRule for OperatorSelfAssignment

source§

impl SyntaxRule for OutputWithVar

source§

impl SyntaxRule for PackageItemNotUnderPackage

source§

impl SyntaxRule for ParameterDefaultValue

source§

impl SyntaxRule for ParameterExplicitType

source§

impl SyntaxRule for ParameterInGenerate

source§

impl SyntaxRule for ParameterInPackage

source§

impl SyntaxRule for ParameterTypeTwostate

source§

impl SyntaxRule for PrefixInout

source§

impl SyntaxRule for PrefixInput

source§

impl SyntaxRule for PrefixInstance

source§

impl SyntaxRule for PrefixInterface

source§

impl SyntaxRule for PrefixModule

source§

impl SyntaxRule for PrefixOutput

source§

impl SyntaxRule for PrefixPackage

source§

impl SyntaxRule for ProceduralContinuousAssignment

source§

impl SyntaxRule for ReForbiddenAssert

source§

impl SyntaxRule for ReForbiddenAssertProperty

source§

impl SyntaxRule for ReForbiddenChecker

source§

impl SyntaxRule for ReForbiddenClass

source§

impl SyntaxRule for ReForbiddenFunction

source§

impl SyntaxRule for ReForbiddenGenerateblock

source§

impl SyntaxRule for ReForbiddenGenvar

source§

impl SyntaxRule for ReForbiddenInstance

source§

impl SyntaxRule for ReForbiddenInterface

source§

impl SyntaxRule for ReForbiddenLocalparam

source§

impl SyntaxRule for ReForbiddenModport

source§

impl SyntaxRule for ReForbiddenModuleAnsi

source§

impl SyntaxRule for ReForbiddenModuleNonansi

source§

impl SyntaxRule for ReForbiddenPackage

source§

impl SyntaxRule for ReForbiddenParameter

source§

impl SyntaxRule for ReForbiddenPortInout

source§

impl SyntaxRule for ReForbiddenPortInput

source§

impl SyntaxRule for ReForbiddenPortInterface

source§

impl SyntaxRule for ReForbiddenPortOutput

source§

impl SyntaxRule for ReForbiddenPortRef

source§

impl SyntaxRule for ReForbiddenProgram

source§

impl SyntaxRule for ReForbiddenProperty

source§

impl SyntaxRule for ReForbiddenSequence

source§

impl SyntaxRule for ReForbiddenTask

source§

impl SyntaxRule for ReForbiddenVarClass

source§

impl SyntaxRule for ReForbiddenVarClassmethod

source§

impl SyntaxRule for ReRequiredAssert

source§

impl SyntaxRule for ReRequiredAssertProperty

source§

impl SyntaxRule for ReRequiredChecker

source§

impl SyntaxRule for ReRequiredClass

source§

impl SyntaxRule for ReRequiredFunction

source§

impl SyntaxRule for ReRequiredGenerateblock

source§

impl SyntaxRule for ReRequiredGenvar

source§

impl SyntaxRule for ReRequiredInstance

source§

impl SyntaxRule for ReRequiredInterface

source§

impl SyntaxRule for ReRequiredLocalparam

source§

impl SyntaxRule for ReRequiredModport

source§

impl SyntaxRule for ReRequiredModuleAnsi

source§

impl SyntaxRule for ReRequiredModuleNonansi

source§

impl SyntaxRule for ReRequiredPackage

source§

impl SyntaxRule for ReRequiredParameter

source§

impl SyntaxRule for ReRequiredPortInout

source§

impl SyntaxRule for ReRequiredPortInput

source§

impl SyntaxRule for ReRequiredPortInterface

source§

impl SyntaxRule for ReRequiredPortOutput

source§

impl SyntaxRule for ReRequiredPortRef

source§

impl SyntaxRule for ReRequiredProgram

source§

impl SyntaxRule for ReRequiredProperty

source§

impl SyntaxRule for ReRequiredSequence

source§

impl SyntaxRule for ReRequiredTask

source§

impl SyntaxRule for ReRequiredVarClass

source§

impl SyntaxRule for ReRequiredVarClassmethod

source§

impl SyntaxRule for SequentialBlockInAlwaysComb

source§

impl SyntaxRule for SequentialBlockInAlwaysFf

source§

impl SyntaxRule for SequentialBlockInAlwaysLatch

source§

impl SyntaxRule for StyleCommaleading

source§

impl SyntaxRule for StyleIndent

source§

impl SyntaxRule for StyleKeyword0Or1Space

source§

impl SyntaxRule for StyleKeyword0Space

source§

impl SyntaxRule for StyleKeyword1Or2Space

source§

impl SyntaxRule for StyleKeyword1Space

source§

impl SyntaxRule for StyleKeywordConstruct

source§

impl SyntaxRule for StyleKeywordDatatype

source§

impl SyntaxRule for StyleKeywordEnd

source§

impl SyntaxRule for StyleKeywordMaybelabel

source§

impl SyntaxRule for StyleKeywordNew

source§

impl SyntaxRule for StyleKeywordNewline

source§

impl SyntaxRule for StyleOperatorArithmetic

source§

impl SyntaxRule for StyleOperatorArithmeticLeadingSpace

source§

impl SyntaxRule for StyleOperatorBoolean

source§

impl SyntaxRule for StyleOperatorBooleanLeadingSpace

source§

impl SyntaxRule for StyleOperatorInteger

source§

impl SyntaxRule for StyleOperatorIntegerLeadingSpace

source§

impl SyntaxRule for StyleOperatorUnary

source§

impl SyntaxRule for StyleTrailingwhitespace

source§

impl SyntaxRule for TabCharacter

source§

impl SyntaxRule for UppercamelcaseInterface

source§

impl SyntaxRule for UppercamelcaseModule

source§

impl SyntaxRule for UppercamelcasePackage