Fork me on GitHub

The current Mule Lint release is version 0.5.3. If you are filing an issue, please ensure you are running this version.

Running Mule Lint

Maven

Mule Lint provides maven support by a plugin that can be tied into your normal build. The plugin is kept up with each release so as not to cause confusion with different versions. To use the maven plugin, follow these steps:

<plugin>
  <groupId>org.nuisto</groupId>
  <artifactId>mule-lint-maven-plugin</artifactId>
  <version>${mule.lint.version}</version>
  <executions>
    <execution>
      <id>runit</id>
      <phase>compile</phase>
      <goals>
        <goal>analyze-mule</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <dictionary>dictionary.txt</dictionary>
    <rules>rules.txt</rules>
    <sources>src/main/app</sources>
    <output>results.json</output>
    <excludes>
      <exclude>**/foo/*.xml</exclude>
      <exclude>**/bar/*.xml</exclude>
    </excludes>
  </configuration>
</plugin>

Now you can execute the compile stage (or even just `mvn package`) and the maven plugin will run:

  
$ mvn clean compile
...
...
[INFO] --- maven-compiler-plugin:3.6.2:compile (default-compile) @ mule-lint-project-example ---
[INFO] No sources to compile
[INFO]
[INFO] --- mule-lint-maven-plugin:0.6.0-SNAPSHOT:analyze-mule (runit) @ mule-lint-project-example ---
[INFO] Found 2 files
[INFO] Found 2 infractions.
...
...
  

Command Line

Mule Lint itself provides jar files so devs can use any kind of tools to initiate checks against the projects. To install Mule Lint on your machine, follow these steps:

  
$ TODO
  

Source Code

Source code downloads are available for the following releases:

View all releases on Mule Lint's release page.