Repository Analysis

gruntwork-io/terratest

Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.

30.2 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of gruntwork-io/terratest, a Go project with 7,934 GitHub stars. SynthScan v2.0 examined 105,307 lines of code across 895 source files, recording 872 pattern matches distributed across 8 syntactic categories. The overall adjusted score of 30.2 places this repository in the Strong AI signal 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).

30.2
Adjusted Score
30.2
Raw Score
100%
Time Factor
2026-07-12
Last Push
7.9K
Stars
Go
Language
105.3K
Lines of Code
895
Files
872
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 0MEDIUM 724LOW 147

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 872 distinct pattern matches across 8 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.

Decorative Section Separators719 hits · 2980 pts
SeverityFileLineSnippetContext
MEDIUMexamples/terraform-ssh-password-example/main.tf12# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/main.tf15# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/main.tf21# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/main.tf23# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/main.tf44# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/main.tf46# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/main.tf69# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/main.tf71# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/variables.tf4# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/variables.tf9# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/variables.tf12# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/variables.tf19# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-password-example/variables.tf22# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/main.tf12# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/main.tf15# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/main.tf36# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/main.tf38# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/variables.tf4# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/variables.tf14# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/variables.tf17# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/variables.tf19# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-gcp-example/variables.tf22# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/main.tf27# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/main.tf30# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/main.tf72# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/main.tf74# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/main.tf94# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/main.tf96# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/main.tf108# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/main.tf110# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/variables.tf4# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/variables.tf9# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/variables.tf12# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/variables.tf29# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-network-example/variables.tf32# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-dynamodb-example/main.tf23# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-dynamodb-example/main.tf25# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-dynamodb-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-dynamodb-example/variables.tf3# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-dynamodb-example/variables.tf9# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-aws-dynamodb-example/variables.tf12# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/main.tf12# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/main.tf15# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/main.tf21# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/main.tf23# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/main.tf46# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/main.tf48# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/main.tf71# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/main.tf73# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/variables.tf4# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/variables.tf9# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/variables.tf12# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/variables.tf19# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-asg-scp-example/variables.tf22# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-certificate-example/main.tf12# ---------------------------------------------------------------------------------------------------------------------COMMENT
MEDIUMexamples/terraform-ssh-certificate-example/main.tf15# ---------------------------------------------------------------------------------------------------------------------COMMENT
659 more matches not shown…
Over-Commented Block122 hits · 122 pts
SeverityFileLineSnippetContext
LOWdocs/_config.yml1# Welcome to Jekyll!COMMENT
LOWdocs/scripts/convert_adoc_to_md.sh1# Required:COMMENT
LOWexamples/terraform-ssh-password-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-gcp-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-asg-scp-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-ssh-certificate-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-remote-exec-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-redeploy-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…les/azure/terraform-azure-network-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…/azure/terraform-azure-postgresql-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…zure/terraform-azure-loadbalancer-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…/terraform-azure-recoveryservices-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…ure/terraform-azure-resourcegroup-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/azure/terraform-azure-aci-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…e/terraform-azure-availabilityset-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…amples/azure/terraform-azure-disk-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…zure/terraform-azure-loganalytics-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…les/azure/terraform-azure-mysqldb-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…les/azure/terraform-azure-synapse-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…s/azure/terraform-azure-frontdoor-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/azure/terraform-azure-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…re/terraform-azure-container-apps-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…/azure/terraform-azure-servicebus-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…azure/terraform-azure-datafactory-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/azure/terraform-azure-acr-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…les/azure/terraform-azure-monitor-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…les/azure/terraform-azure-storage-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…mples/azure/terraform-azure-sqldb-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/azure/terraform-azure-nsg-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/azure/terraform-azure-vm-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…es/azure/terraform-azure-keyvault-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…azure/terraform-azure-functionapp-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOW…erraform-azure-sqlmanagedinstance-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-aws-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-aws-rds-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-gcp-pubsub-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-http-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-packer-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-ssh-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/helm-basic-example/values.yaml1# This chart purposefully does not provide any values, to demonstrate how to test required values.COMMENT
LOWexamples/terraform-aws-lambda-example/variables.tf21# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-aws-ecs-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-basic-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/helm-dependency-example/values.yaml1# This chart purposefully does not provide any values, to demonstrate how to test required values.COMMENT
LOWexamples/terraform-gcp-ig-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-aws-ssm-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWexamples/terraform-aws-s3-example/variables.tf1# ---------------------------------------------------------------------------------------------------------------------COMMENT
LOWscripts/check-release-mode.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/check-acyclic-deps.sh1#!/usr/bin/env bashCOMMENT
LOWscripts/check-siv-placement.sh1#!/usr/bin/env bashCOMMENT
LOWmodules/teststructure/validate_struct.go21COMMENT
LOWmodules/teststructure/teststructure.go61}COMMENT
LOWmodules/teststructure/teststructure.go81//COMMENT
LOWmodules/teststructure/teststructure.go101// relative to the repo root. If your tests reside in the "/test" relative to the root, then you will use this asCOMMENT
LOWmodules/teststructure/teststructure.go181 )COMMENT
LOWmodules/terraform/plan.go181COMMENT
LOWmodules/terraform/plan.go221COMMENT
LOWmodules/terraform/format_test.go61// Some of our tests execute code that loops over a map to produce output. The problem is that the order of mapCOMMENT
LOWmodules/terraform/output.go461// Also returns an error object if an error was generated.COMMENT
LOWmodules/terraform/output.go501// OutputForKeys calls terraform output for the given key list and returns values as a map.COMMENT
62 more matches not shown…
Verbosity Indicators8 hits · 18 pts
SeverityFileLineSnippetContext
LOWmodules/terragrunt/terragrunt_e2e_test.go31 // Step 1: Plan with exit code (original bug scenario from issue #1609)COMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go39 // Step 2: Apply all modulesCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go46 // Step 3: Plan again - should show no changes (exit code 0)COMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go52 // Step 4: Clean up - Destroy allCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go76 // Step 1: Initialize stackCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go82 // Step 2: Generate stackCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go88 // Step 3: Run stack planCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go98 // Step 4: Clean stackCOMMENT
Structural Annotation Overuse8 hits · 18 pts
SeverityFileLineSnippetContext
LOWmodules/terragrunt/terragrunt_e2e_test.go31 // Step 1: Plan with exit code (original bug scenario from issue #1609)COMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go39 // Step 2: Apply all modulesCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go46 // Step 3: Plan again - should show no changes (exit code 0)COMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go52 // Step 4: Clean up - Destroy allCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go76 // Step 1: Initialize stackCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go82 // Step 2: Generate stackCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go88 // Step 3: Run stack planCOMMENT
LOWmodules/terragrunt/terragrunt_e2e_test.go98 // Step 4: Clean stackCOMMENT
Fake / Example Data9 hits · 13 pts
SeverityFileLineSnippetContext
LOWmodules/terraform/cmd_test.go43 ".*lorem ipsum.*": "this warning message should shown.",CODE
LOWmodules/terraform/apply_test.go82 "lorem ipsum": "lorem ipsum warning",CODE
LOWmodules/terraform/apply_test.go90 "lorem ipsum dolor sit amet": "some warning",CODE
LOWmodules/terraform/apply_test.go90 "lorem ipsum dolor sit amet": "some warning",CODE
LOWmodules/terraform/apply_test.go98 "lorem ipsum": "lorem ipsum warning",CODE
LOWmodules/terraform/apply_test.go106 "lorem ipsum": "lorem ipsum warning",CODE
LOWmodules/k8s/kubectl_test.go63- name: dummy-userCODE
LOWmodules/k8s/kubectl_test.go65 token: dummy-tokenCODE
LOWmodules/k8s/kubectl_test.go70 user: dummy-userCODE
Self-Referential Comments3 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUM.golangci.yml1# This file is generated from https://github.com/gruntwork-io/terragrunt/blob/main/.golangci.ymlCOMMENT
MEDIUMexamples/terraform-gcp-ig-example/main.tf18# Create a Regional Managed Instance GroupCOMMENT
MEDIUMexamples/terraform-gcp-ig-example/main.tf33# Create the Instance Template that will be used to populate the Managed Instance Group.COMMENT
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALdocs/assets/js/main.js4marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"CODE
AI Slop Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMexamples/helm-basic-example/templates/service.yaml6 # These labels are required by helm. You can read more about required labels in the chart best practices guide:COMMENT
MEDIUMexamples/helm-dependency-example/templates/service.yaml6 # These labels are required by helm. You can read more about required labels in the chart best practices guide:COMMENT