无法使用linterconfigs命令

时间:2019-02-06 16:44:28

标签: linter schemacrawler

我想在我的项目中使用Schemacrawler皮棉,并且只想使用自定义皮棉。根据文档,它说我们可以使用命令-linterconfigs=[path to linter XML configuration file],但是当我尝试创建XML配置文件并仅使用自定义棉绒时,我仍然看到默认的棉绒正在运行。我做错什么了吗?

这是我遵循的步骤:

  1. 下载并解压缩软件包
  2. 创建名为example.database的转储数据库
  3. 使用现有的皮棉之一创建schemacrawler-linter-configs.xml
  4. 使用以下命令在_schemacrawler目录中的转储数据库上运行lint

./schemacrawler.sh --server=postgresql -command=lint -linterconfigs=schemacrawler-linter-configs.xml -database=example.database

1 个答案:

答案 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