Class VerificationIndents

java.lang.Object
org.pgcodekeeper.core.parsers.antlr.pg.verification.VerificationIndents
All Implemented Interfaces:
IVerification

public class VerificationIndents extends Object implements IVerification
Verification implementation for code indentation rules. Analyzes function bodies to ensure proper indentation according to configured style guidelines and formatting standards.
  • Constructor Details

    • VerificationIndents

      public VerificationIndents(org.antlr.v4.runtime.Token codeStart, String functionDefinition, String language, String filename, List<Object> errors, VerificationProperties rules)
      Creates a new indentation verification instance for string-based function definitions.
      Parameters:
      codeStart - the starting token of the function body
      functionDefinition - the function definition as a string
      language - the function language (SQL, plpgsql, etc.)
      filename - the name of the file being verified
      errors - list to collect verification errors
      rules - verification rules and properties to apply
    • VerificationIndents

      public VerificationIndents(org.antlr.v4.runtime.Token codeStart, SQLParser.Function_bodyContext definition, org.antlr.v4.runtime.CommonTokenStream tokenStream, String filename, List<Object> errors, VerificationProperties rules)
      Creates a new indentation verification instance for parsed function bodies.
      Parameters:
      codeStart - the starting token of the function body
      definition - the parsed function body context
      tokenStream - the token stream containing function tokens
      filename - the name of the file being verified
      errors - list to collect verification errors
      rules - verification rules and properties to apply
  • Method Details

    • verify

      public void verify()
      Description copied from interface: IVerification
      Performs the verification check. Implementations should analyze code structures and report any violations or issues found during the verification process.
      Specified by:
      verify in interface IVerification