Skip to content

Commit

Permalink
add more rules and fix opa-fmt problem
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturRibeiro-CX committed Feb 23, 2025
1 parent 24470f0 commit 505e5c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/.regal/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ rules:
rule-shadows-builtin:
# https://docs.styra.com/regal/rules/bugs/rule-shadows-builtin
level: ignore #warn
var-shadows-builtin:
# https://docs.styra.com/regal/rules/bugs/var-shadows-builtin
level: ignore
unused-output-variable:
# https://docs.styra.com/regal/rules/bugs/unused-output-variable
level: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ is_privileged_port(port) {
both_ports := split(port, ":")
host_port := both_ports[0]
to_number(host_port) < 1024
} else { #COVERS "CONTAINER" port from short syntax "HOST:CONTAINER"
} #COVERS "CONTAINER" port from short syntax "HOST:CONTAINER"

else {
both_ports := split(port, ":")
container_port := both_ports[1]
to_number(container_port) < 1024
Expand Down

0 comments on commit 505e5c4

Please sign in to comment.