Table of Contents
This project provides a jQAssistant plugin to analyze HCL language.
The plugin can be enabled in Maven based project by adding it as a dependency to the jQAssistant Maven plugin:
pom.xml
<build>
<plugins>
<plugin>
<groupId>com.buschmais.jqassistant</groupId>
<artifactId>jqassistant-maven-plugin</artifactId>
<version>${jqassistant.version}</version>
<executions>
<execution>
<id>default-cli</id>
<goals>
<goal>scan</goal>
<goal>analyze</goal>
</goals>
<configuration>
<concepts>
<concept>hcl:RootModule</concept> <!--(1)-->
</concepts>
<groups>
<group>hcl:Naming</group>
<group>hcl:Bugs</group>
</groups>
</configuration>
</execution>
</executions>
<dependencies>
<dependency> <!--(2)-->
<groupId>org.jqassistant.contrib.plugin</groupId>
<artifactId>jqassistant-hcl-plugin</artifactId>
<version>0.1.0</version>
</dependency>
<dependency> <!--(3)-->
<groupId>my.company</groupId>
<artifactId>my.rule.plugin</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
-
Configure wanted concepts of the plugin.
-
Declares the plugin as dependency of jQAssistant
-
Add your company rules for terraform as a jQAssistant plugin (if needed)
Download the grammar and put the file into src/main/antlr4/prg/jqassistant/contrib/plugin/hcl/grammar/
Please report any issues.
This plugin could not provide its functionality without the support of the following open source projects: