Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vgramer opened this issue Sep 30, 2021 · 0 comments
Open

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

vgramer opened this issue Sep 30, 2021 · 0 comments

Comments

@vgramer
Copy link
Member

vgramer commented Sep 30, 2021

What would you like to be added

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

  • as
  • default
  • else
  • false
  • import
  • package
  • not
  • null
  • some
  • true
  • with

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant