This plugin provides language support for HashiCorp Sentinel. Sentinel is a policy as code framework that enables policy based decisions on HashiCorp projects. An example would be a set of policies to prevent common misconfigurations of an AWS S3 Bucket in a Terraform workspace plan/apply.
I've been unable to parse this statement:
if checkMyValue(x) and x < y {
return x
}
However, there are two work arounds.
Reversing the order is parsing correctly
if x < y and checkMyValue(x) {
return x
}
Or add parentheses around x < y
if checkMyValue(x) and (x < y) {
return x
}
Using IDE built-in plugin system:
Preferences > Plugins > Marketplace > Search for "intellij-hashicorp-sentinel" > Install Plugin
Manually:
Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...
Plugin based on the IntelliJ Platform Plugin Template.