How to pass xml linter config in code using Schemacrawler API

67 Views Asked by At

Command-line schemacrawler has --linter-configs option, where we can pass xml config. Is it possible to pass this linter-config.xml with schemacrawler API in code?

1

There are 1 best solutions below

0
On

You can build LinterConfigs completely programmatically - take a look at LintTest::lints, or read in an XML file - take a look at LintTest::runLintersWithConfig

Sualeh Fatehi, SchemaCrawler