You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file was located in the github rules folder: https://github.com/mindersec/minder-rules-and-profiles/tree/main/rule-types/github so it looks like it was expecting the package to be "github". I also couldn't get rid of the "File should be formatted with opa fmt" error unless I ran mindev ruletype lint -r [my.yaml] --skip-rego
Should the linter work out of the. box for these scenarios?
So, unfortunately, a bunch of our rules have linting warnings from OPA. They still work but don't follow all practices set by the linter. These are non-fatal errors. I understand it's confusing though.
Describe the issue
I'm writing a rule similar to https://github.com/mindersec/minder-rules-and-profiles/pull/228/files#diff-c403aa914bf9da4592bdc7034803e737cabb0713223d0c07ddb4a8ba99004936
When i run mindev ruletype lint -r [my.yaml] on a file I get the following errors:
The file was located in the github rules folder: https://github.com/mindersec/minder-rules-and-profiles/tree/main/rule-types/github so it looks like it was expecting the package to be "github". I also couldn't get rid of the "File should be formatted with
opa fmt
" error unless I ran mindev ruletype lint -r [my.yaml] --skip-regoShould the linter work out of the. box for these scenarios?
To Reproduce
Run on mindev ruletype lint -r on https://github.com/mindersec/minder-rules-and-profiles/pull/228/files#diff-c403aa914bf9da4592bdc7034803e737cabb0713223d0c07ddb4a8ba99004936
What version are you using?
No response
The text was updated successfully, but these errors were encountered: