我想在我的项目中使用Schemacrawler皮棉,并且只想使用自定义皮棉。根据文档,它说我们可以使用命令-linterconfigs=[path to linter XML configuration file]
,但是当我尝试创建XML配置文件并仅使用自定义棉绒时,我仍然看到默认的棉绒正在运行。我做错什么了吗?
这是我遵循的步骤:
./schemacrawler.sh --server=postgresql -command=lint -linterconfigs=schemacrawler-linter-configs.xml -database=example.database
答案 0 :(得分:0)
Rashmi,默认情况下,SchemaCrawler运行所有linter。您需要在linters配置文件中关闭不需要的所有linter。这是如何执行此操作的示例:
<schemacrawler-linter-configs>
<linter id="schemacrawler.tools.linter.LinterForeignKeyMismatch">
<run>false</run>
</linter>
</schemacrawler-linter-configs>
Sualeh Fatehi,SchemaCrawler