jqa-core-framework icon indicating copy to clipboard operation
jqa-core-framework copied to clipboard

Support for parameter type list

Open simonnagl opened this issue 7 years ago • 8 comments

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.

simonnagl avatar Jul 30 '18 10:07 simonnagl