SPeCS Packages Documentation
    Preparing search index...

    Represents a standard guideline that detects and corrects violations in the code according to a particular coding standard.

    Need to implement/define:

    • initialValue()
    • match($jp, logErrors)
    • apply($jp)

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    context: C

    Accessors

    • get dependencies(): Visit[]

      Returns Visit[]

      List of dependent visits, which is empty by default

    Methods

    • Checks if the joinpoint violates the guideline

      Parameters

      • $jp: Joinpoint

        Joinpoint to analyze

      • logErrors: boolean

        [logErrors=false] - Whether to log errors if a violation is detected

      Returns boolean

      Returns true if the joinpoint violates the guideline, false otherwise