jqa-core-framework
jqa-core-framework copied to clipboard
Support for parameter type list
I implemented some constraints which I want to apply to different projects using a custom plugin. For different projects I need to exclude some special files which are allowed to violate the constraint. For this special cases I tried to use arguments. Here is an example:
<constraint id="tm20:UppercaseLiquibaseChangesetTableNames">
<requiresParameter name="exceptFileNames" type="String" defaultValue=['/com/bmw/tmtool/liquibase/base/2017-05-10_TM20-21.xml']/>
<description>Find Liquibase changesets with not uppercase table names</description>
<cypher><![CDATA[
MATCH (doc:Xml:Document), // Here comes the path(s) to check
WHERE // Here comes the constraint violation part
// exclude special cases
AND none(fileName IN {exceptFileNames} WHERE doc.fileName = fileName)
RETURN doc.fileName as file
]]></cypher>
</constraint>
It seems this is currently not supportet as type="String" puts '' around the value during substitutions. Is there a solution for my use-case currently?
I am willing to help to implement this issue. Are there any plans on how to implement this?
Thank you for your time and answer.