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

Allow regal lint - to lint from stdin #1122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

anderseknert
Copy link
Member

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

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

Signed-off-by: Anders Eknert <anders@styra.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: lint stdin
1 participant