• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubescape / regolibrary / 5399341997
85%

Build:
DEFAULT BRANCH: master
Ran 28 Jun 2023 09:18AM UTC
Jobs 1
Files 3
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5399341997

push

github

alegrey91
Add Regal linter config, and fix some reported issues

Kicking the tires of my new open source linter for Rego,
[Regal](https://github.com/styrainc/regal), and wanted to test it
against a real-world policy library. This was a great exercise, as
it uncovered a few quirks in Regal, which have now been fixed.

I figured that I'd share the results with you in a PR, so here we
are.

This PR fixes a number of issues reported:

- [redundant-alias](https://github.com/StyraInc/regal/blob/main/docs/rules/imports/redundant-alias.md)
- [redundant-data-import](https://github.com/StyraInc/regal/blob/main/docs/rules/imports/redundant-data-import.md)
- [use-in-operator](https://github.com/StyraInc/regal/blob/main/docs/rules/style/use-in-operator.md)
- [rule-shadows-builtin](https://github.com/StyraInc/regal/blob/main/docs/rules/bugs/rule-shadows-builtin.md)
- [custom-in-construct](https://github.com/StyraInc/regal/blob/main/docs/rules/idiomatic/custom-in-construct.md)

Provided is also a configuration for Regal that disables a number of rules
mostly related to style, which someone might want to look into one day, but
they are not critical.

If you like it, perhaps we could have it integrated into the CI pipeline to have
the linter run on PRs, etc.

Finally, I added support for `print` statements in the test runner, as that greatly
simplifies debugging the tests.

Signed-off-by: Anders Eknert <anders@styra.com>

508 of 602 relevant lines covered (84.39%)

4428.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5399341997.1 28 Jun 2023 09:18AM UTC 0
84.39
GitHub Action Run
Source Files on build 5399341997
Detailed source file information is not available for this build.
  • Back to Repo
  • a5de7a65 on github
  • Prev Build on master (#5374796704)
  • Next Build on master (#5434975946)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc