Closed mbarre closed 8 years ago
I tried to exclude some tables from the lints.
I realized that my linter java classes that override the method configure ignore the <table-exclusion-pattern> value in the config file.
<table-exclusion-pattern>
<linter id="io.github.mbarre.schemacrawler.tool.linter.LinterColumnContentNotNormalized"> <run>true</run> <table-exclusion-pattern><![CDATA[pdc_adm\.((databasechangeloglock)|(databasechangelog))]]></table-exclusion-pattern> <config> <property name="nbRepeatTolerance">2</property> <property name="minTextColumnSize">2</property> </config> </linter>
@Override public void configure(LinterConfig linterConfig) { nbRepeatTolerance = linterConfig.getConfig().getIntegerValue(NB_REPEAT_TOLERANCE_CONFIG, NB_REPEAT_TOLERANCE); minTextColumnSize = linterConfig.getConfig().getIntegerValue(MIN_TEXT_COLUMN_SIZE_CONFIG, MIN_TEXT_COLUMN_SIZE); }
If I comment the method configure the <table-exclusion-pattern> is taken account.
You need to call super.configure(linterConfig); first.
super.configure(linterConfig);
It works better like that ;) :+1:
Thanks.
:-)
I tried to exclude some tables from the lints.
I realized that my linter java classes that override the method configure ignore the
<table-exclusion-pattern>
value in the config file.If I comment the method configure the
<table-exclusion-pattern>
is taken account.