AI Slop Code Risk Monitor

opentofu/opentofu

SlopCodeMonitor badge for opentofu/opentofu Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

OpenTofu lets you declaratively manage your cloud infrastructure.

3.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for opentofu/opentofu, a Go project with 30,683 GitHub stars. SynthScan examined 668,653 lines of code across 4193 source files, recording 1727 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 3.0 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

3.0
Adjusted Signal
3.0
Raw Pattern Score
100%
Time Factor
2026-10-30
Last Push
30.7K
Stars
Go
Language
668.7K
Lines of Code
4.2K
Files
1.7K
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 13.3/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1662 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

Are imports declared and package/API names verified? 65 finding(s).

Agent Over-Engineering Ratio 0.0/100 · LOW

Are wrappers, guards, and repeated structures necessary? 1 finding(s).

PR Review Velocity Impact 13.4/100 · LOW

Which changes need focused human review? 1727 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 2HIGH 10MEDIUM 68LOW 1647

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1727 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block1519 hits · 1519 pts
SeverityFileLineSnippetContext
LOWcmd/tofu/version.go21// logGodebugUsage produces extra DEBUG log lines if the Go runtime's metricsCOMMENT
LOWcmd/tofu/provider_source_test.go161 }COMMENT
LOWcmd/tofu/provider_source.go101// implicitProviderSource builds a default provider source to use if there'sCOMMENT
LOWcmd/tofu/provider_source.go121 // (original working directory), not the directory specified with -chdir.COMMENT
LOWcmd/tofu/provider_source.go141 // We'll make sure the directory actually exists before we add it,COMMENT
LOWcmd/tofu/provider_source.go181 // This "userdirs" library implements an appropriate user-specific andCOMMENT
LOWcmd/tofu/testing.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWcmd/tofu/registries_disco.go21// newServiceDiscovery returns a newly-created [disco.Disco] object that isCOMMENT
LOWtools/loggraphdiff/loggraphdiff.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWtools/loggraphdiff/loggraphdiff.go21// module.child.output.a_output - *terraform.NodeApplyableOutputCOMMENT
LOWtools/find-dep-upgrades/main.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWtools/find-dep-upgrades/main.go61 // so we'll use that here even though the complexity of that package'sCOMMENT
LOWtools/find-dep-upgrades/main.go241 }COMMENT
LOWtools/selected-go-version/selected-go-version.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWtools/selected-go-version/selected-go-version.go41 }COMMENT
LOWtools/protobuf-compile/protobuf-compile.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWtools/find-pkg-importer/main.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/encryption/plan.go21 //COMMENT
LOWinternal/encryption/state.go21 //COMMENT
LOWinternal/encryption/state.go41 //COMMENT
LOWinternal/encryption/base.go41}COMMENT
LOWinternal/encryption/base.go61 //COMMENT
LOWinternal/encryption/keyprovider/config.go21COMMENT
LOWinternal/encryption/keyprovider/descriptor.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/encryption/keyprovider/meta.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/encryption/keyprovider/keyprovider.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOW…rnal/encryption/keyprovider/openbao/compliance_test.go21// By default the tests in here behave like unit tests, running against aCOMMENT
LOWinternal/encryption/method/config.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/encryption/method/method.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/tracing/context_probe.go21// primary motivation, but could potentially be used for otherCOMMENT
LOWinternal/tracing/context_probe.go81// FunctionsReported returns an interable sequence of all of the functionsCOMMENT
LOWinternal/tracing/utils.go121}COMMENT
LOWinternal/tracing/data.go21// differs when the span is not recording.COMMENT
LOWinternal/tracing/init.go41This mechanism might be removed altogether if a different strategy seemsCOMMENT
LOWinternal/tracing/init.go61// trace state to use.COMMENT
LOWinternal/tracing/init.go81// https://opentelemetry.io/docs/specs/otel/protocol/exporter/#configuration-optionsCOMMENT
LOWinternal/tracing/traceattrs/opentofu.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/tracing/traceattrs/opentofu.go21// creating import cycles.COMMENT
LOWinternal/tracing/traceattrs/opentofu.go41// [OpenTofuProviderAddress] to indicate which provider the version number isCOMMENT
LOWinternal/tracing/traceattrs/opentofu.go61func OpenTofuModuleCallName(name string) attribute.KeyValue {COMMENT
LOWinternal/tracing/traceattrs/generic.go21// it's easier to keep our version selections consistent.COMMENT
LOWinternal/tracing/traceattrs/semconv.go21 // semconv version imported by the "go.opentelemetry.io/otel/sdk/resource",COMMENT
LOWinternal/tracing/traceattrs/semconv.go81//COMMENT
LOWinternal/addrs/provider.go21// not have an explicit hostname.COMMENT
LOWinternal/addrs/provider.go41// The this namespace is literally named "builtin", in the hope that usersCOMMENT
LOWinternal/addrs/provider.go61//COMMENT
LOWinternal/addrs/provider.go121 // because existing code expects legacy provider names to pass throughCOMMENT
LOWinternal/addrs/provider.go161func MustParseProviderSourceString(str string) Provider {COMMENT
LOWinternal/addrs/provider.go181// rather than some similar rules defined locally, because the hostname partCOMMENT
LOWinternal/addrs/check_rule_diagnostic.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/addrs/check_rule_diagnostic.go21// contain a CheckRule.COMMENT
LOWinternal/addrs/move_endpoint.go21// addresses in a "moved" statement in the configuration, but it's alsoCOMMENT
LOWinternal/addrs/move_endpoint.go81 // For our purposes here we'll just do a unify without a base moduleCOMMENT
LOWinternal/addrs/move_endpoint.go161//COMMENT
LOWinternal/addrs/unique_key.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/addrs/module_source_test.go321COMMENT
LOWinternal/addrs/module_source_test.go501 // of "normalized" addresses as separate from the original user input,COMMENT
LOWinternal/addrs/resource_instance_object.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWinternal/addrs/resource_instance_object.go181 }COMMENT
LOWinternal/addrs/resource_instance_object.go201}COMMENT
1459 more matches not shown…
Self-Referential Comments34 hits · 98 pts
SeverityFileLineSnippetContext
MEDIUMwebsite/docker-compose.build-non-main.yml6# This file is meant to be used only in running the `website` GH workflow on non-main branches and PRs that are targetinCOMMENT
MEDIUMinternal/depsfile/locks_file.go148 Bytes: []byte("# This file is maintained automatically by \"tofu init\".\n"),CODE
MEDIUMinternal/depsfile/locks_file_test.go250 wantContent := `# This file is maintained automatically by "tofu init".CODE
MEDIUMinternal/backend/remote-state/azure/meta-test/main.tf3# Create an application and service accountCOMMENT
MEDIUMinternal/command/providers_lock_test.go46 expected := `# This file is maintained automatically by "tofu init".CODE
MEDIUMinternal/command/providers_lock_test.go62 expected := `# This file is maintained automatically by "tofu init".CODE
MEDIUMinternal/command/init_test.go2222# This file is maintained automatically by "tofu init".COMMENT
MEDIUMinternal/command/init_test.go2256# This file is maintained automatically by "tofu init".COMMENT
MEDIUMinternal/command/init_test.go2269# This file is maintained automatically by "tofu init".COMMENT
MEDIUMinternal/command/init_test.go2282# This file is maintained automatically by "tofu init".COMMENT
MEDIUMinternal/command/init_test.go2296# This file is maintained automatically by "tofu init".COMMENT
MEDIUM…and/testdata/providers-lock/append/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUM…roviders-mirror-with-bad-lock-file/.terraform.lock.hcl1# This file is maintained automatically by "tofu init".COMMENT
MEDIUM…fu-providers-mirror-with-lock-file/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
MEDIUM…ests/tests/moved_with_refresh_only/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…sts/tests/basic_json_string_update/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…ence-tests/tests/moved_with_update/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…nce-tests/tests/replace_within_set/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…uivalence-tests/tests/drift_simple/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…ts/tests/drift_relevant_attributes/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…uivalence-tests/tests/moved_simple/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…ests/basic_multiline_string_update/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…nce-tests/tests/replace_within_map/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…-tests/tests/replace_within_object/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…lence-tests/tests/moved_with_drift/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…ts/fully_populated_complex_destroy/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…ce-tests/tests/replace_within_list/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…e-tests/tests/null_provider_delete/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…-tests/tests/local_provider_update/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…-tests/tests/local_provider_delete/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…nce-tests/tests/drift_refresh_only/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM…sts/fully_populated_complex_update/.terraform.lock.hcl1# This file is maintained automatically by "opentf init".COMMENT
MEDIUM.github/workflows/nightly.yml66 # Create a staging directory for uploadCOMMENT
MEDIUM.github/scripts/compare-release-version.sh19# Create a clean semver tag without the v prefixCOMMENT
AI Slop Vocabulary31 hits · 90 pts
SeverityFileLineSnippetContext
MEDIUM…rnal/getproviders/package_location_oci_blob_archive.go242 // anyway to be robust since go-getter returns this information regardless.COMMENT
MEDIUMinternal/getmodules/oci_getter.go444 // but we'll return an error here anyway just to be robust.COMMENT
MEDIUMinternal/repl/session.go197 // but we'll be robust here and just pass through the GoStringCOMMENT
MEDIUMinternal/legacy/tofu/state_filter.go103 // is a bit more robust.COMMENT
MEDIUMinternal/tofu/eval_variable.go41 // but we'll check it here too to be robust.COMMENT
MEDIUMinternal/tofu/eval_variable_test.go110 // metadata is stripped from empty default collections. Essentially, youCOMMENT
MEDIUMinternal/tofu/context.go363 return // should not happen, but we'll be robustCODE
MEDIUMinternal/tofu/context.go367 continue // should not happen, but we'll be robustCODE
MEDIUMinternal/lang/functions.go96 // robust.COMMENT
MEDIUMinternal/lang/blocktoattr/fixup.go36 // in the presence of poorly-configured test mocks, so we'll be robustCOMMENT
MEDIUMinternal/lang/globalref/analyzer_meta_references.go366 // for all of the relative traversal types, but we'll be robust inCOMMENT
MEDIUMinternal/lang/exprs/example_test.go172 // NOTE: This is not a robust implementation of "upper", justCOMMENT
MEDIUMinternal/lang/funcs/datetime.go195 // be robust here.COMMENT
MEDIUM…lang/eval/internal/tofu2024/compile_input_variables.go64 // need to find a more nuanced definition of what it means forCOMMENT
MEDIUMinternal/configs/static_scope.go315 // handle this here just to be robust.COMMENT
MEDIUMinternal/configs/configschema/validate_traversal.go71 // but we'll handle this with a generic error anyway to be robust.COMMENT
MEDIUMinternal/configs/configschema/empty_value.go61 // but we'll be robust and return a result nonetheless.COMMENT
MEDIUMinternal/configs/configload/loader_snapshot.go266 // This function doesn't try to be incredibly robust in supportingCOMMENT
MEDIUMinternal/states/state_test.go410 // happen" case but we'll test to make sure we're robust toCOMMENT
MEDIUMinternal/states/statemgr/filesystem.go194 // TODO: this should use a more robust method of writing state, by firstCOMMENT
MEDIUMinternal/states/statemgr/persistent.go84// Some implementations may optionally utilize config schema to persistCOMMENT
MEDIUMinternal/registry/package_extract.go34 // decompressors should all be robust to malicious input anyway.COMMENT
MEDIUMinternal/command/meta_providers.go139 // unit tests might not always populate Meta fully and so we'll be robustCOMMENT
MEDIUMinternal/command/cliconfig/cliconfig.go451 // improve on this later using the more-robust merging behaviorCOMMENT
MEDIUMinternal/command/views/hook_ui.go114 // bug in the caller but we'll ignore it in order to be robust.COMMENT
MEDIUMinternal/command/clistate/local_state.go68// TODO: this should use a more robust method of writing state, by firstCOMMENT
MEDIUMinternal/command/arguments/view.go51 // more nuanced set of data to be presented to the view constructors.COMMENT
MEDIUM…tdata/move-statement-implied/move-statement-implied.tf1# This fixture is useful only in conjunction with a previous run state thatCOMMENT
MEDIUM…move-statement-implied/child/move-statement-implied.tf1# This fixture is useful only in conjunction with a previous run state thatCOMMENT
MEDIUMinternal/moduletest/status.go35// Essentially, if a test suite has a bunch of failures and passes the overallCOMMENT
LOWscripts/changelog-links.sh12# released items are presented as clickable links, but we can just use theCOMMENT
Verbosity Indicators31 hits · 65 pts
SeverityFileLineSnippetContext
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf3 ## Step 1: Leave the original encryption method unchanged:COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf8 # Step 2: Add the unencrypted method here:COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf12 ## Step 3: Disable or remove the "enforced" option:COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf15 ## Step 4: Move the original encryption method into the "fallback" block:COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf20 ## Step 5: Reference the unencrypted method as your primary "encryption" method.COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf24 ## Step 6: Run "tofu apply".COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf26 ## Step 7: Remove the "state" block once the migration is complete.COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf28 ## Step 8: Repeat steps 3-7 for plan{} if needed.COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf9 ## Step 1: Add the unencrypted method:COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf12 ## Step 2: Add the desired key provider:COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf17 ## Step 3: Add the desired encryption method:COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf23 ## Step 4: Link the desired encryption method:COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf26 ## Step 5: Add the "fallback" block referencing theCOMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf32 ## Step 6: Run "tofu apply".COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf34 ## Step 7: Remove the "fallback" block above andCOMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf39 ## Step 8: Repeat steps 4-8 for plan{} if needed.COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf9 ## Step 1: Add the desired key provider:COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf13 ## Step 2: Set up your encryption method:COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf19 ## Step 3: Link the desired encryption method:COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf22 ## Step 4: Run "tofu apply".COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf24 ## Step 5: Consider adding the "enforced" option:COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf28 ## Step 6: Repeat steps 3-5 for plan{} if needed.COMMENT
LOW⚡internal/providercache/installer.go216 // Step 1: Which providers might we need to fetch a new version of?COMMENT
LOW⚡internal/providercache/installer.go224 // Step 2: Query the provider source for each of the providers we selectedCOMMENT
LOW⚡internal/providercache/installer.go234 // Step 3: For each provider version we've decided we need to install,COMMENT
LOWinternal/dag/walk.go453 // Dependencies satisfied! We need to check if any erroredCOMMENT
LOWinternal/tofu/context_apply_test.go2917 // Step 1: create the resources and instancesCOMMENT
LOWinternal/tofu/context_apply_test.go2952 // Step 2: update with an empty config, to destroy everythingCOMMENT
LOWinternal/tofu/transform_targets.go115 // Step 1: Find all excluded targetable nodes, and their descendantsCOMMENT
LOWinternal/tofu/transform_targets.go149 // Step 2: Of the targetable nodes that were not excluded, build the graph similarly to -targetCOMMENT
LOWinternal/tofu/transform_targets.go168 // Step 3: Add outputsCOMMENT
Structural Annotation Overuse31 hits · 65 pts
SeverityFileLineSnippetContext
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf3 ## Step 1: Leave the original encryption method unchanged:COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf8 # Step 2: Add the unencrypted method here:COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf12 ## Step 3: Disable or remove the "enforced" option:COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf15 ## Step 4: Move the original encryption method into the "fallback" block:COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf20 ## Step 5: Reference the unencrypted method as your primary "encryption" method.COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf24 ## Step 6: Run "tofu apply".COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf26 ## Step 7: Remove the "state" block once the migration is complete.COMMENT
LOW⚡…e/state/examples/encryption/fallback_to_unencrypted.tf28 ## Step 8: Repeat steps 3-7 for plan{} if needed.COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf9 ## Step 1: Add the unencrypted method:COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf12 ## Step 2: Add the desired key provider:COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf17 ## Step 3: Add the desired encryption method:COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf23 ## Step 4: Link the desired encryption method:COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf26 ## Step 5: Add the "fallback" block referencing theCOMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf32 ## Step 6: Run "tofu apply".COMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf34 ## Step 7: Remove the "fallback" block above andCOMMENT
LOW⚡…state/examples/encryption/fallback_from_unencrypted.tf39 ## Step 8: Repeat steps 4-8 for plan{} if needed.COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf9 ## Step 1: Add the desired key provider:COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf13 ## Step 2: Set up your encryption method:COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf19 ## Step 3: Link the desired encryption method:COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf22 ## Step 4: Run "tofu apply".COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf24 ## Step 5: Consider adding the "enforced" option:COMMENT
LOW⚡…site/docs/language/state/examples/encryption/sample.tf28 ## Step 6: Repeat steps 3-5 for plan{} if needed.COMMENT
LOW⚡internal/providercache/installer.go216 // Step 1: Which providers might we need to fetch a new version of?COMMENT
LOW⚡internal/providercache/installer.go224 // Step 2: Query the provider source for each of the providers we selectedCOMMENT
LOW⚡internal/providercache/installer.go234 // Step 3: For each provider version we've decided we need to install,COMMENT
LOWinternal/tofu/context_apply_test.go2917 // Step 1: create the resources and instancesCOMMENT
LOWinternal/tofu/context_apply_test.go2952 // Step 2: update with an empty config, to destroy everythingCOMMENT
LOWinternal/tofu/transform_targets.go115 // Step 1: Find all excluded targetable nodes, and their descendantsCOMMENT
LOWinternal/tofu/transform_targets.go149 // Step 2: Of the targetable nodes that were not excluded, build the graph similarly to -targetCOMMENT
LOWinternal/tofu/transform_targets.go168 // Step 3: Add outputsCOMMENT
LOW…l/lang/eval/internal/tofu2024/module_instance_scope.go207 // NOTE: This function only handles top-level symbol names which areCOMMENT
Fake / Example Data63 hits · 63 pts
SeverityFileLineSnippetContext
LOWinternal/backend/remote/testdata/plan-long-line/main.tf3 long_line = "[{'_id':'5c5ab0ed7de45e993ffb9eeb','index':0,'guid':'e734d772-6b5a-4cb0-805c-91cd5e560e20','isActive':fCODE
LOWinternal/cloud/state_test.go331 Token: "placeholder",CODE
LOWinternal/cloud/testing.go321 Token: "fake-token",CODE
LOWinternal/cloud/testdata/plan-long-line/main.tf3 long_line = "[{'_id':'5c5ab0ed7de45e993ffb9eeb','index':0,'guid':'e734d772-6b5a-4cb0-805c-91cd5e560e20','isActive':fCODE
LOWinternal/states/statemgr/statemgr_fake.go95 return "placeholder", nilCODE
LOWinternal/states/statemgr/statemgr_fake.go109 if id != "placeholder" {CODE
LOWinternal/states/statemgr/statemgr_fake.go154 return "placeholder", nilCODE
LOWinternal/command/show_test.go1301 idVal = cty.StringVal("placeholder")CODE
LOWinternal/command/show_test.go1337 idVal = cty.StringVal("placeholder")CODE
LOWinternal/command/testdata/login-oauth-server/main.go69 client = "placeholder"CODE
LOW…mmand/testdata/test/function_call_in_variables/main.tf18 value = "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json15 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json28 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json48 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json52 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json73 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json77 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json96 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json100 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json122 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/drift/output.json135 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/moved/output.json15 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/moved/output.json36 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/moved/output.json40 "id": "placeholder"CODE
LOWinternal/command/testdata/show-json/moved/output.json62 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json15 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json28 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json49 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json53 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json74 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json78 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json98 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json102 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json124 "id": "placeholder"CODE
LOW…nal/command/testdata/show-json/moved-drift/output.json137 "id": "placeholder"CODE
LOW…testdata/show-json/conditions/output-refresh-only.json17 "value": "placeholder"CODE
LOW…testdata/show-json/conditions/output-refresh-only.json28 "after": "placeholder",CODE
LOW…testdata/show-json/conditions/output-refresh-only.json42 "value": "placeholder"CODE
LOW…testdata/show-json/conditions/output-refresh-only.json56 "id": "placeholder",CODE
LOW…testdata/show-json/conditions/output-refresh-only.json72 "id": "placeholder",CODE
LOW…al/command/testdata/show-json/basic-update/output.json27 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-update/output.json47 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-update/output.json51 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-update/output.json92 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-delete/output.json27 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-delete/output.json47 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-delete/output.json51 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-delete/output.json71 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-delete/output.json113 "id": "placeholder"CODE
LOW…al/command/testdata/show-json/basic-delete/output.json126 "id": "placeholder"CODE
LOW…d/testdata/show-json/multi-resource-update/output.json29 "id": "placeholder"CODE
LOW…d/testdata/show-json/multi-resource-update/output.json64 "id": "placeholder"CODE
LOW…d/testdata/show-json/multi-resource-update/output.json68 "id": "placeholder"CODE
LOW…d/testdata/show-json/multi-resource-update/output.json133 "id": "placeholder"CODE
LOW…ommand/testdata/show-json/requires-replace/output.json35 "id": "placeholder"CODE
LOW…ommand/testdata/show-json/requires-replace/output.json64 "id": "placeholder"CODE
LOWinternal/command/e2etest/static_plan_test.go85 run("show", stateVar, modVar, statePath).Success().Contains(`out = "placeholder"`)CODE
LOWinternal/command/e2etest/static_plan_test.go93 run("output", stateVar, modVar).Success().Contains(`out = "placeholder"`)CODE
LOWinternal/command/e2etest/static_plan_test.go115 run("state", "pull", stateVar, modVar).Success().Contains(`"outputs":{"out":{"value":"placeholder","type":"string"}}`CODE
LOW…2etest/testdata/static_plan_typed_variables/mod/mod.tf2 value = "placeholder"CODE
3 more matches not shown…
Synthetic Comment Markers7 hits · 42 pts
SeverityFileLineSnippetContext
HIGHinternal/configs/parser.go86// have been loaded through this parser, with source filenames (as requestedCOMMENT
HIGHinternal/command/jsonformat/plan.go452 fmt.Fprintf(&buf, "[bold] # %s[reset] will be [bold][red]replaced[reset], as requested", dispAddr)CODE
HIGHinternal/command/jsonformat/plan.go543 fmt.Fprintf(&buf, "[bold] # %s[reset] will be [bold][red]replaced[reset], as requested", dispAddr)CODE
HIGHinternal/command/jsonformat/plan_test.go6364 ExpectedOutput: ` # test_instance.example will be replaced, as requestedCODE
HIGHinternal/command/jsonformat/plan_test.go6375 ExpectedOutput: ` # test_instance.example will be replaced, as requestedCODE
HIGHinternal/command/views/view.go49 // ModuleDeprecationWarnLvl is used to filter out deprecation warnings for outputs and variables as requested by the usCOMMENT
HIGHinternal/command/arguments/view.go41 // ModuleDeprecationWarnLvl is used to filter out deprecation warnings for outputs and variables as requested by the usCOMMENT
AI Response Leakage3 hits · 22 pts
SeverityFileLineSnippetContext
HIGHinternal/tofu/context_plan2_test.go3708// I've added all the required test cases that are needed to verify the fix for the issue.COMMENT
HIGHrfc/20240725-exclude-resources.md26# In this example there are 4 null_resources, with the following dependency graph:COMMENT
HIGHrfc/20240513-static-evaluation-providers.md209 # NOTE: In this example for_each is set to exactly the same expression asCOMMENT
Hallucination Indicators2 hits · 20 pts
SeverityFileLineSnippetContext
CRITICALinternal/lang/eval/internal/tofu2024/module_instance.go236 if !providerInst.Addr.Config.Config.Provider.Equals(rsrc.Provider) {CODE
CRITICALinternal/command/jsonplan/values.go212 r.Addr.Resource.Resource.Mode.String(),CODE
Slop Phrases4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMinternal/tofu/context_plugins_test.go26// so the caller can feel free to modify the returned value to furtherCOMMENT
MEDIUMinternal/tofu/context_plugins_test.go59// callers can feel free to modify it once returned.COMMENT
MEDIUMinternal/command/testdata/fmt/general_out.tf3# here, but you can also add other _in.tf/_out.tf pairs in theCOMMENT
MEDIUMinternal/command/testdata/fmt/general_in.tf3# here, but you can also add other _in.tf/_out.tf pairs in theCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…docs/cli/commands/test/examples/module/main.tftest.hcl7 # Check if the webserver returned an HTTP 200 status code:COMMENT
Hyper-Verbose Identifiers1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinternal/command/jsonformat/differ/attribute.go77 // function computeChangeForDynamicValues(), but external callers willCOMMENT