Class VerificationIndents
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.pg.verification.VerificationIndents
- All Implemented Interfaces:
IVerification
Verification implementation for code indentation rules.
Analyzes function bodies to ensure proper indentation according to
configured style guidelines and formatting standards.
-
Constructor Summary
ConstructorsConstructorDescriptionVerificationIndents(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.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. -
Method Summary
-
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 bodyfunctionDefinition- the function definition as a stringlanguage- the function language (SQL, plpgsql, etc.)filename- the name of the file being verifiederrors- list to collect verification errorsrules- 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 bodydefinition- the parsed function body contexttokenStream- the token stream containing function tokensfilename- the name of the file being verifiederrors- list to collect verification errorsrules- verification rules and properties to apply
-
-
Method Details
-
verify
public void verify()Description copied from interface:IVerificationPerforms the verification check. Implementations should analyze code structures and report any violations or issues found during the verification process.- Specified by:
verifyin interfaceIVerification
-