A linter, debugger, and language server for Rego that identifies mistakes, enforces best practices, and enhances policy development.
Regal is a linter, debugger, and language server for Rego, the policy language used with Open Policy Agent (OPA). It helps developers identify common mistakes, enforce coding standards, and improve the performance and correctness of their policy code. By integrating into editors and CI/CD pipelines, it elevates the entire policy development workflow.
Developers and teams writing Rego policies for Open Policy Agent, ranging from beginners learning the language to experienced practitioners maintaining large policy libraries.
Regal provides a comprehensive, Rego-specific toolset that goes beyond basic linting to include a full language server and debugger, offering immediate feedback and advanced editor features. Its extensive, customizable rule set and strong community adoption make it the definitive companion for serious Rego development.
Regal is a linter and language server for Rego, bringing your policy development experience to the next level!
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Covers over 100 rules across categories like bugs, performance, and style, with detailed documentation linked in the README, helping identify common mistakes and inefficiencies.
Provides a full language server with context-aware completions, hover tooltips, and go-to-definition for editors like VS Code and Neovim, enhancing the development workflow.
Includes Debug Adapter Protocol (DAP) support for live debugging of Rego policies, making it easier to troubleshoot complex logic interactively.
Can be run in build pipelines to enforce policy quality on every commit or pull request, as highlighted in the CI/CD documentation for consistent enforcement.
Explicitly marked as in beta, so APIs may change without notice, making it risky for embedding in production systems or projects requiring long-term stability.
The README warns that style rules can generate many violations on existing code, requiring significant initial cleanup or disabling of the style category to avoid overwhelm.
Only useful for Rego policy development within the OPA ecosystem, offering no value for projects using other policy languages or broader code quality tools.