diff --git a/checkov/common/output/report.py b/checkov/common/output/report.py index 1d46ec8ee4f..8e70112c48f 100644 --- a/checkov/common/output/report.py +++ b/checkov/common/output/report.py @@ -337,7 +337,7 @@ def print_console( if not is_quiet: for file in self.parsing_errors: - output_data += colored(f"Error parsing file {file}ֿ\n", "red") + output_data += colored(f"Error parsing file {file}\n", "red") if created_baseline_path: output_data += colored( diff --git a/checkov/common/runners/runner_registry.py b/checkov/common/runners/runner_registry.py index a608807a05b..881f2183e47 100644 --- a/checkov/common/runners/runner_registry.py +++ b/checkov/common/runners/runner_registry.py @@ -488,7 +488,7 @@ def print_reports( ) # Remove colors from the cli output - ansi_escape = re.compile(r'(?:\x1B[@-_]|[\x80-\x9F])[0–9:;<=>?]*[ -/]*[@-~]') + ansi_escape = re.compile(r'(?:\x1B[@-_]|[\x80-\x9F])[0-9:;<=>?]*[ -/]*[@-~]') data_outputs['cli'] = ansi_escape.sub('', cli_output) if "sarif" in config.output: sarif = Sarif(reports=sarif_reports, tool=self.tool) diff --git a/checkov/kubernetes/checks/resource/k8s/HostPort.py b/checkov/kubernetes/checks/resource/k8s/HostPort.py index 74fdea6a6d4..15346ed320a 100644 --- a/checkov/kubernetes/checks/resource/k8s/HostPort.py +++ b/checkov/kubernetes/checks/resource/k8s/HostPort.py @@ -9,7 +9,7 @@ def __init__(self) -> None: """ https://kubernetes.io/docs/concepts/configuration/overview/ - Don’t specify a hostPort for a Pod unless it is absolutely necessary. + Don't specify a hostPort for a Pod unless it is absolutely necessary. When you bind a Pod to a hostPort, it limits the number of places the Pod can be scheduled, because each combination must be unique. diff --git a/checkov/serverless/utils.py b/checkov/serverless/utils.py index f79a5bf2cfe..184fd1d6652 100644 --- a/checkov/serverless/utils.py +++ b/checkov/serverless/utils.py @@ -54,7 +54,7 @@ def get_scannable_file_paths(root_folder: str | None = None, excluded_paths: lis return files_list for root, d_names, f_names in os.walk(root_folder): - # Don't walk in to "node_modules" directories under the root folder. If –for some reason– + # Don't walk in to "node_modules" directories under the root folder. If for some reason # scanning one of these is desired, it can be directly specified. if "node_modules" in d_names: d_names.remove("node_modules") diff --git a/checkov/terraform/checks/resource/kubernetes/HostPort.py b/checkov/terraform/checks/resource/kubernetes/HostPort.py index a71a9a4d203..7ce054d8f1c 100644 --- a/checkov/terraform/checks/resource/kubernetes/HostPort.py +++ b/checkov/terraform/checks/resource/kubernetes/HostPort.py @@ -9,7 +9,7 @@ def __init__(self): """ https://kubernetes.io/docs/concepts/configuration/overview/ - Don’t specify a hostPort for a Pod unless it is absolutely necessary. + Don't specify a hostPort for a Pod unless it is absolutely necessary. When you bind a Pod to a hostPort, it limits the number of places the Pod can be scheduled, because each combination must be unique.