Skip to content

Commit

Permalink
docs: use 4 spaces for indentation in circular-imports docs (#612)
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Eknert <[email protected]>
  • Loading branch information
anderseknert authored Mar 28, 2024
1 parent 45705ca commit 1f2b72f
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/rules/imports/circular-import.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ import rego.v1
import data.shared
admins := {
"anna",
"bob",
"anna",
"bob",
}
allow if {
input.role in shared.roles
input.role in shared.roles
}
allow if {
input.user in admins
input.user in admins
}
```

Expand All @@ -43,8 +43,8 @@ import data.authz # circular import!
roles := { "admin", "editor", "viewer" }
users := authz.admins | {
"chloe",
"dave",
"chloe",
"dave",
}
```

Expand All @@ -68,11 +68,11 @@ import rego.v1
import data.shared
allow if {
input.role in shared.roles
input.role in shared.roles
}
allow if {
input.user in shared.users
input.user in shared.users
}
```

Expand All @@ -81,8 +81,8 @@ allow if {
package admins
admins := {
"anna",
"bob",
"anna",
"bob",
}
```

Expand All @@ -95,8 +95,8 @@ import data.admins
roles := {"admin", "editor", "viewer"}
users := admins.admins | {
"chloe",
"david",
"chloe",
"david",
}
```

Expand Down

0 comments on commit 1f2b72f

Please sign in to comment.