
com.whiteclarkegroup.liquibaselinter.linters.TableNameLinter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-linter Show documentation
Show all versions of liquibase-linter Show documentation
Liquibase extension to add configurable script linting
package com.whiteclarkegroup.liquibaselinter.linters;
import com.whiteclarkegroup.liquibaselinter.config.rules.RuleRunner;
import com.whiteclarkegroup.liquibaselinter.config.rules.RuleType;
import liquibase.change.AbstractChange;
import liquibase.exception.ChangeLogParseException;
public class TableNameLinter {
public void lintTableName(final String tableName, final AbstractChange change, RuleRunner ruleRunner) throws ChangeLogParseException {
ruleRunner.forChange(change)
.run(RuleType.TABLE_NAME, tableName)
.run(RuleType.TABLE_NAME_LENGTH, tableName);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy