tylersmith34 / intellij-hashicorp-sentinel

This is a plugin for JetBrains IntelliJ to add language support for HashiCorp Sentinel.
Apache License 2.0
0 stars 1 forks source link
hashicorp intellij-hashicorp-sentinel sentinel

intellij-hashicorp-sentinel

Build Version Downloads

Template ToDo list

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.

Known issues

Syntax for boolean expressions

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
}

Installation


Plugin based on the IntelliJ Platform Plugin Template.