StyraInc / regal

Regal is a linter and language server for Rego, bringing your policy development experience to the next level!
https://docs.styra.com/regal
Apache License 2.0
261 stars 35 forks source link

Allow `regal lint -` to lint from stdin #1122

Closed anderseknert closed 2 months ago

anderseknert commented 2 months ago

And print notices for rules ignored as a result of no filename being known.

➜ cat lab/p.rego | go run main.go lint -
1 file linted. No violations found. 2 rules skipped:
- directory-package-mismatch: disabled when filename is unknown
- file-missing-test-suffix: disabled when filename is unknown

Fixes #1118

anderseknert commented 2 months ago

Let me know if you find anything to improve!

srenatus commented 2 months ago

Works beautifully :sparkles: thanks again!