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

kubescape / regolibrary / 5399341997 / 1
85%
master: 85%

Build:
DEFAULT BRANCH: master
Ran 28 Jun 2023 09:18AM UTC
Files 3
Run time 0s
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

28 Jun 2023 09:12AM UTC coverage: 84.385%. Remained the same
5399341997.1

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

Source Files on job 5399341997.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5399341997
  • a5de7a65 on github
  • Prev Job for on master (#5374796704.1)
  • Next Job for on master (#5434975946.1)
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