-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: Search for .regal.yaml and use for roots
This updates the search for config to correctly look for .regal.yaml too. It also correctly uses .regal.yaml files for root determination. ``` $ cat foo.rego ───────┬──────────────────────────────────────────────────────────────────── │ File: foo.rego ───────┼──────────────────────────────────────────────────────────────────── 1 │ package foo 2 │ 3 │ allow if true ───────┴──────────────────────────────────────────────────────────────────── $ cat .regal.yaml ───────┬──────────────────────────────────────────────────────────────────── │ File: .regal.yaml ───────┼──────────────────────────────────────────────────────────────────── 1 │ rules: 2 │ style: 3 │ opa-fmt: 4 │ level: ignore ───────┴──────────────────────────────────────────────────────────────────── $ ../regal fix --force foo.rego 1 fix applied: In project root: /Users/charlieegan3/Code/regal/temp foo.rego -> foo/foo.rego: - directory-package-mismatch ``` Signed-off-by: Charlie Egan <[email protected]>
- Loading branch information
1 parent
760b484
commit b9e3791
Showing
6 changed files
with
164 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters