Repository Analysis

opentofu/opentofu

OpenTofu lets you declaratively manage your cloud infrastructure.

3.0 Likely human-written View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of opentofu/opentofu, a Go project with 29,426 GitHub stars. SynthScan v2.0 examined 651,320 lines of code across 4090 source files, recording 1677 pattern matches distributed across 12 syntactic categories. The overall adjusted score of 3.0 places this repository in the Likely human-written band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-07-13
Last Push
29.4K
Stars
Go
Language
651.3K
Lines of Code
4.1K
Files
1.7K
Pattern Hits
2026-07-14
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 12MEDIUM 68LOW 1596

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1677 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Over-Commented Block1468 hits · 1468 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/experiments.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWcmd/tofu/commands.go41// ordered so that we can show them in the typical workflow order, ratherCOMMENT
LOWcmd/tofu/testing.go1// Copyright (c) The OpenTofu AuthorsCOMMENT
LOWcmd/tofu/registries_disco.go21// newServiceDiscovery returns a newly-created [disco.Disco] object that isCOMMENT
LOWcmd/tofu/main.go301 AutocompleteInstall: "install-autocomplete",COMMENT
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// to enable an OTLP exporter, which is in turn configured by all theCOMMENT
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/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/parse_target.go241 }COMMENT
LOWinternal/addrs/parse_target.go321 })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
1408 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.go48 expected := `# This file is maintained automatically by "tofu init".CODE
MEDIUMinternal/command/providers_lock_test.go64 expected := `# This file is maintained automatically by "tofu init".CODE
MEDIUMinternal/command/init_test.go2316# This file is maintained automatically by "tofu init".COMMENT
MEDIUMinternal/command/init_test.go2350# This file is maintained automatically by "tofu init".COMMENT
MEDIUMinternal/command/init_test.go2363# This file is maintained automatically by "tofu init".COMMENT
MEDIUMinternal/command/init_test.go2376# This file is maintained automatically by "tofu init".COMMENT
MEDIUMinternal/command/init_test.go2390# 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.yml68 # 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.go369 return // should not happen, but we'll be robustCODE
MEDIUMinternal/tofu/context.go373 continue // should not happen, but we'll be robustCODE
MEDIUMinternal/lang/functions.go95 // 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.go63 // need to find a more nuanced definition of what it means forCOMMENT
MEDIUMinternal/configs/static_scope.go312 // 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.go265 // 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.go441 // 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/types.go47// 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
LOWinternal/providercache/installer.go216 // Step 1: Which providers might we need to fetch a new version of?COMMENT
LOWinternal/providercache/installer.go224 // Step 2: Query the provider source for each of the providers we selectedCOMMENT
LOWinternal/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.go2973 // Step 1: create the resources and instancesCOMMENT
LOWinternal/tofu/context_apply_test.go3008 // 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
LOWinternal/providercache/installer.go216 // Step 1: Which providers might we need to fetch a new version of?COMMENT
LOWinternal/providercache/installer.go224 // Step 2: Query the provider source for each of the providers we selectedCOMMENT
LOWinternal/providercache/installer.go234 // Step 3: For each provider version we've decided we need to install,COMMENT
LOWinternal/tofu/context_apply_test.go2973 // Step 1: create the resources and instancesCOMMENT
LOWinternal/tofu/context_apply_test.go3008 // 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.go1349 idVal = cty.StringVal("placeholder")CODE
LOWinternal/command/show_test.go1385 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…
AI Response Leakage5 hits · 49 pts
SeverityFileLineSnippetContext
HIGHinternal/engine/planning/plan_mode_destroy.go314 // In this implementation, planGlueDestroy.PlanModuleCallOrphans does all of the workCOMMENT
HIGHinternal/engine/planning/plan_mode_destroy.go320 // In this implementation, planGlueDestroy.PlanModuleCallOrphans does all of the workCOMMENT
HIGHinternal/engine/planning/plan_mode_destroy.go326 // In this implementation, planGlueDestroy.PlanModuleCallOrphans does all of the workCOMMENT
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
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.go456 buf.WriteString(fmt.Sprintf("[bold] # %s[reset] will be [bold][red]replaced[reset], as requested", dispAddr))CODE
HIGHinternal/command/jsonformat/plan.go547 buf.WriteString(fmt.Sprintf("[bold] # %s[reset] will be [bold][red]replaced[reset], as requested", dispAddr))CODE
HIGHinternal/command/jsonformat/plan_test.go6371 ExpectedOutput: ` # test_instance.example will be replaced, as requestedCODE
HIGHinternal/command/jsonformat/plan_test.go6382 ExpectedOutput: ` # test_instance.example will be replaced, as requestedCODE
HIGHinternal/command/views/view.go42 // ModuleDeprecationWarnLvl is used to filter out deprecation warnings for outputs and variables as requested by the usCOMMENT
HIGHinternal/command/arguments/view.go29 // ModuleDeprecationWarnLvl is used to filter out deprecation warnings for outputs and variables as requested by the usCOMMENT
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
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALinternal/command/jsonplan/values.go212 r.Addr.Resource.Resource.Mode.String(),CODE
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