Skip to content

Commit

Permalink
fix(terraform): Revert feat(terraform): Add a terraform block check (#…
Browse files Browse the repository at this point in the history
…6904) (#6937)

Revert "feat(terraform): Add a terraform block check (#6904)"

This reverts commit 0440c5a.

Co-authored-by: oshimko <[email protected]>
  • Loading branch information
OfekShimko and oshimko authored Jan 7, 2025
1 parent ed658d9 commit 480e4c8
Show file tree
Hide file tree
Showing 15 changed files with 1 addition and 251 deletions.
2 changes: 0 additions & 2 deletions checkov/terraform/base_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from checkov.common.util.secrets import omit_secret_value_from_graph_checks
from checkov.common.variables.context import EvaluationContext
from checkov.runner_filter import RunnerFilter
from checkov.terraform.checks.terraform.registry import terraform_registry
from checkov.terraform.modules.module_objects import TFDefinitionKey
from checkov.terraform.checks.data.registry import data_registry
from checkov.terraform.checks.module.registry import module_registry
Expand Down Expand Up @@ -88,7 +87,6 @@ def __init__(
"data": data_registry,
"provider": provider_registry,
"module": module_registry,
"terraform": terraform_registry,
}

@abstractmethod
Expand Down
1 change: 0 additions & 1 deletion checkov/terraform/checks/terraform/__init__.py

This file was deleted.

35 changes: 0 additions & 35 deletions checkov/terraform/checks/terraform/base_check.py

This file was deleted.

37 changes: 0 additions & 37 deletions checkov/terraform/checks/terraform/base_registry.py

This file was deleted.

4 changes: 0 additions & 4 deletions checkov/terraform/checks/terraform/registry.py

This file was deleted.

39 changes: 0 additions & 39 deletions checkov/terraform/checks/terraform/terraform/StateLock.py

This file was deleted.

3 changes: 0 additions & 3 deletions checkov/terraform/checks/terraform/terraform/__init__.py

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion checkov/terraform/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
_TerraformContext: TypeAlias = "dict[TFDefinitionKey, dict[str, Any]]"
_TerraformDefinitions: TypeAlias = "dict[TFDefinitionKey, dict[str, Any]]"

CHECK_BLOCK_TYPES = frozenset(["resource", "data", "provider", "module", "terraform"])
CHECK_BLOCK_TYPES = frozenset(["resource", "data", "provider", "module"])


class Runner(BaseTerraformRunner[_TerraformDefinitions, _TerraformContext, TFDefinitionKey]):
Expand Down
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

72 changes: 0 additions & 72 deletions tests/terraform/checks/terraform/terraform/test_StateLock.py

This file was deleted.

0 comments on commit 480e4c8

Please sign in to comment.