schemacrawler / SchemaCrawler

Free database schema discovery and comprehension tool
http://www.schemacrawler.com/
Other
1.6k stars 199 forks source link

Lints > How to exclude a column from a lint with config file #57

Closed mbarre closed 8 years ago

mbarre commented 8 years ago

Hi @sualeh ,

How are you doing ?

I have a question about lint config file and column exclusion.

I try to exclude the column "version" (hibernate reserved column) from schemacrawler.tools.linter.LinterTableWithQuotedNames lint. But I didn't manage to do it, I tried many regex that seem to be good.

Here some examples, of what I tried

1_ exclude schemaname.tablename."columnname"

<linter id="schemacrawler.tools.linter.LinterTableWithQuotedNames">
<run>true</run>
<column-exclusion-pattern><![CDATA[(\w*.){2}"version"]]></column-exclusion-pattern>
</linter>

2_ exclude tablename."columnname"

<linter id="schemacrawler.tools.linter.LinterTableWithQuotedNames">
<run>true</run>
<column-exclusion-pattern><![CDATA[\w*."version"]]></column-exclusion-pattern>
</linter>

3_ exclude "columnname"

<linter id="schemacrawler.tools.linter.LinterTableWithQuotedNames">
<run>true</run>
<column-exclusion-pattern><![CDATA["version"]]></column-exclusion-pattern>
</linter>

But nothing is working... So, I would like to know if is still used in config file ? Or is there another way to exclude column ?

mbarre commented 8 years ago

I've just tested it. :+1: Thanks

schemacrawler commented 8 years ago

Thanks for checking.

adriens commented 8 years ago

Great news !