UFGInsurance / mulint

Mule project linter
MIT License
6 stars 0 forks source link

Check for inline sql in query templates #34

Closed aoathout closed 5 years ago

aoathout commented 5 years ago

I have been seeing template-queries in global.xml where the sql is inline. We should be putting the sql in files under src/main/resources/sql and then referencing them. Below is an example of what should be flagged as an issue and the second is something that should pass

  1. Inline sql `

    `
  2. Using a file `

    <db:in-param name="username" defaultValue="null"/>
    <db:in-param name="email" defaultValue="null"/>

    </db:template-query>`