open-policy-agent / opa-idea-plugin

Open Policy Agent plugin for IntelliJ
MIT License
56 stars 22 forks source link

Reserved words of rego should not be used as variable or rule name #111

Open vgramer opened 3 years ago

vgramer commented 3 years ago

What would you like to be added

The following words are reserved and cannot be used as variable names, rule names:

The plugin should show an error if it's used as a variable or rule name.

Implementation details

Don't need to change the grammar, there is an "API" in IDEA to do that