Block a docker run or docker create that sets no memory limit, and read docker's TLS and buildx --builder options as taking a value #372

Merged
lilleman merged 18 commits from item-228 into main 2026-10-24 01:00:42 +02:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 7b61fd5b4b - Show all commits
+1 -1
View File
@@ -1,5 +1,5 @@
"""Whether a simple command is a heavy one, for the `run-heavy` rule: a docker build, or a run of a mutation tool."""
from rule_hook.docker_command import LAUNCHERS, docker_arguments, docker_subcommand, tool_name
from rule_hook.docker_command import docker_arguments, docker_subcommand, LAUNCHERS, tool_name
# Each mutation tool, and the words that make its call a mutation run when one of them follows it within two words; where the set is empty, every call is one.
MUTATORS = {"cargo": {"mutants"}, "infection": set(), "mutmut": {"run"}, "stryker": {"run"}}
+1 -1
View File
@@ -5,10 +5,10 @@ import typing
from round_titles import CAP, lacks_counts, past_cap
from git_command import commits
from rule_hook.docker_command import unlimited_container
from rule_hook.heavy_command import heavy
from review_folder import REPORTS
from shell_command import Simple
from rule_hook.docker_command import unlimited_container
RuleName = typing.Literal["action-pin", "commit-one-line", "docker-run-memory", "ignorefile-sorted", "image-pin", "no-ai-attribution", "reviewer-report", "reviewer-rung", "round-cap", "round-title-counts", "run-heavy", "todo-rank-check"]