AI Slop Code Risk Monitor

infracost/infracost

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

Cloud cost intelligence for engineers, AI coding agents, and CI/CD 💰📉 Shift FinOps Left!

0.6 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for infracost/infracost, a Go project with 12,599 GitHub stars. SynthScan examined 246,346 lines of code across 2435 source files, recording 137 pattern matches distributed across 8 syntactic categories. The legacy adjusted pattern signal is 0.6 (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.

0.6
Adjusted Signal
0.6
Raw Pattern Score
100%
Time Factor
2026-10-21
Last Push
12.6K
Stars
Go
Language
246.3K
Lines of Code
2.4K
Files
137
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 3.2/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 0.0/100 · LOW

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

PR Review Velocity Impact 3.2/100 · LOW

Which changes need focused human review? 137 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 0HIGH 0MEDIUM 13LOW 124

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 137 distinct pattern matches across 8 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 Block120 hits · 120 pts
SeverityFileLineSnippetContext
LOWinfracost-usage-defaults.medium.yml441 #COMMENT
LOWinfracost-usage-defaults.medium.yml461 # storage_gb: 1000 # Total size of storage in GB.COMMENT
LOWinfracost-usage-defaults.medium.yml481 # monthly_analytical_storage_read_operations: 1000000 # Monthly number of read analytical storage operations.COMMENT
LOWinfracost-usage-defaults.medium.yml501 # storage_gb: 1000 # Total size of storage in GB.COMMENT
LOWinfracost-usage-defaults.medium.yml581 # This resource need to be converted to CoreResource before default usages are fully supported.COMMENT
LOWinfracost-usage-defaults.medium.yml661 # tests: 100000 # Overrides the number of tests done in the connection monitorCOMMENT
LOWinfracost-usage-defaults.medium.yml701 monthly_queries: 25000000 # Monthly number of DNS queriesCOMMENT
LOWinfracost-usage-defaults.medium.yml801 # monthly_datapipeline_azure_hosted_external_integration_runtime_hours: 4000 # Monthly number of Azure hosted exterCOMMENT
LOWinfracost-usage-defaults.small.yml441 #COMMENT
LOWinfracost-usage-defaults.small.yml461 # storage_gb: 1000 # Total size of storage in GB.COMMENT
LOWinfracost-usage-defaults.small.yml481 # monthly_analytical_storage_read_operations: 1000000 # Monthly number of read analytical storage operations.COMMENT
LOWinfracost-usage-defaults.small.yml501 # storage_gb: 1000 # Total size of storage in GB.COMMENT
LOWinfracost-usage-defaults.small.yml581 # This resource need to be converted to CoreResource before default usages are fully supported.COMMENT
LOWinfracost-usage-defaults.small.yml661 # tests: 100000 # Overrides the number of tests done in the connection monitorCOMMENT
LOWinfracost-usage-defaults.small.yml701 monthly_queries: 12500000 # Monthly number of DNS queriesCOMMENT
LOWinfracost-usage-defaults.small.yml801 # monthly_datapipeline_azure_hosted_external_integration_runtime_hours: 4000 # Monthly number of Azure hosted exterCOMMENT
LOWinfracost-usage-defaults.large.yml441 #COMMENT
LOWinfracost-usage-defaults.large.yml461 # storage_gb: 1000 # Total size of storage in GB.COMMENT
LOWinfracost-usage-defaults.large.yml481 # monthly_analytical_storage_read_operations: 1000000 # Monthly number of read analytical storage operations.COMMENT
LOWinfracost-usage-defaults.large.yml501 # storage_gb: 1000 # Total size of storage in GB.COMMENT
LOWinfracost-usage-defaults.large.yml581 # This resource need to be converted to CoreResource before default usages are fully supported.COMMENT
LOWinfracost-usage-defaults.large.yml701 azurerm_private_dns_txt_record:COMMENT
LOWinfracost-usage-defaults.large.yml801 # monthly_datapipeline_self_hosted_activity_runs: 1 # Monthly number of self hosted activity runs.COMMENT
LOWcmd/infracost/breakdown_test.go361 )COMMENT
LOWcmd/infracost/generate_test.go61 path.Join("./testdata", dir),COMMENT
LOW…ased_provider/modules/mymod_own/mysub_implicit/main.tf21# The configuration for module.mymod_aliased.module.mysub_implicit expects toCOMMENT
LOW…vider/modules/mymod_own_aliased/mysub_implicit/main.tf21# The configuration for module.mymod_aliased.module.mysub_implicit expects toCOMMENT
LOW…_provider/modules/mymod_aliased/mysub_implicit/main.tf21# The configuration for module.mymod_aliased.module.mysub_implicit expects toCOMMENT
LOW…m_directory_with_default_var_files/infracost-usage.yml1# You can use this file to define resource usage estimates for Infracost to use when calculatingCOMMENT
LOW…reakdown_terraform_sync_usage_file/infracost-usage.yml1# You can use this file to define resource usage estimates for Infracost to use when calculatingCOMMENT
LOW…reakdown_terraform_sync_usage_file/infracost-usage.yml41 # monthly_data_scanned_gb: 0.0 # Monthly data scanned by CloudWatch logs insights in GB.COMMENT
LOWinternal/config/config.go21COMMENT
LOWinternal/config/config.go41 ForceProjectType string `yaml:"force_project_type,omitempty" ignored:"true"`COMMENT
LOWinternal/config/config.go101 TerraformWorkspace string `yaml:"terraform_workspace,omitempty" envconfig:"TERRAFORM_WORKSPACE"`COMMENT
LOWinternal/config/config_file.go41 return trueCOMMENT
LOWinternal/config/config_file.go61// errors.New("child error 1"),COMMENT
LOWinternal/config/template/parser.go241 if _, err := os.Stat(targetPath); err == nil {COMMENT
LOWinternal/config/template/parser.go261// ├── infracost.yml.tmplCOMMENT
LOWinternal/security/files.go1// Package security contains security related functions, mainly checking a fileCOMMENT
LOWinternal/apiclient/usage.go221 return ud, nilCOMMENT
LOW…nal/providers/terraform/terragrunt_registry_service.go41 // defaultRegistryHostEnvVarName lets users point Terragrunt at a privateCOMMENT
LOW…nal/providers/terraform/terragrunt_registry_service.go61// This protocol will use the Module Registry Protocol (documented atCOMMENT
LOWinternal/providers/terraform/terragrunt_hcl_provider.go841 return ctyJsonVal.Value, nilCOMMENT
LOW…alert_test/monitor_scheduled_query_rules_alert_test.tf41 threshold = 3COMMENT
LOW…alert_test/monitor_scheduled_query_rules_alert_test.tf61# | where tolong(resultCode) >= 500COMMENT
LOW…alert_test/monitor_scheduled_query_rules_alert_test.tf81# custom_webhook_payload = "{}"COMMENT
LOWinternal/providers/cloudformation/aws/registry.go1package awsCOMMENT
LOWinternal/providers/cloudformation/aws/registry.go21 // GetConfigOrganizationManagedRuleItem(),COMMENT
LOWinternal/providers/cloudformation/aws/registry.go41 // GetEFSFileSystemRegistryItem(),COMMENT
LOWinternal/providers/cloudformation/aws/registry.go61 // GetRoute53RecordRegistryItem(),COMMENT
LOWinternal/resources/azure/mssql_elasticpool.go61// Database Transaction Unit (DTU) is made a performance metric representing a mixture of performance metricsCOMMENT
LOWinternal/resources/azure/cognitive_account_speech.go21COMMENT
LOWinternal/resources/azure/app_configuration.go41}COMMENT
LOWinternal/resources/azure/network_watcher.go1package azureCOMMENT
LOWinternal/resources/azure/storage_account.go201// BlobStorage:COMMENT
LOWinternal/resources/azure/storage_account.go281// Write Operations.COMMENT
LOWinternal/resources/azure/storage_account.go341//COMMENT
LOWinternal/resources/azure/storage_account.go401// List and Create Container Operations (List Operations for File storage).COMMENT
LOWinternal/resources/azure/storage_account.go421// Standard Hot: cost existsCOMMENT
LOWinternal/resources/azure/storage_account.go481//COMMENT
60 more matches not shown…
AI Slop Vocabulary7 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMinfracost-usage-defaults.medium.yml238 backup_snapshot_size_gb: 119 # Individual storage size for backup snapshots, used in conjunction with resource paramCODE
MEDIUMinfracost-usage-example.yml336 backup_snapshot_size_gb: 200 # Individual storage size for backup snapshots, used in conjunction with resourceCODE
MEDIUMinfracost-usage-defaults.small.yml238 backup_snapshot_size_gb: 59 # Individual storage size for backup snapshots, used in conjunction with resource parameCODE
MEDIUMinfracost-usage-defaults.large.yml238 backup_snapshot_size_gb: 238 # Individual storage size for backup snapshots, used in conjunction with resource paramCODE
MEDIUMinternal/resources/aws/glue_catalog_database.go14// to build a robust data analytics pipeline.COMMENT
MEDIUMinternal/resources/aws/glue_crawler.go14// to build a robust data analytics pipeline.COMMENT
MEDIUMinternal/resources/aws/glue_job.go16// to build a robust data analytics pipeline.COMMENT
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippetContext
MEDIUMinternal/providers/terraform/provider_schemas/main.tf1# This file is used with the "terraform provider schema" commands in "make tagschema" to generateCOMMENT
MEDIUM…aform_modules/f5c8778c26bb651908c92d1816ae14f0/main.tf152 # Create a truncated ID if neededCOMMENT
MEDIUM…aform_modules/f5c8778c26bb651908c92d1816ae14f0/main.tf164 # Create the short ID by adding a hash to the end of the truncated IDCOMMENT
MEDIUM…oject/with_existing_terraform_mods/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".COMMENT
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippetContext
LOWinternal/hcl/graph.go328 // so we need to check if the module output exists and add an edge from thatCOMMENT
LOWinternal/hcl/modules/registry.go382 // Otherwise we need to check if the version matches the constraintsCOMMENT
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUM…odule-using-same-source/.github/workflows/pr-title.yml34 # If `subjectPattern` is configured, you can use this property to overrideCOMMENT
Modern AI Meta-Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md103[**Infracost Cloud**](https://www.infracost.io/docs/infracost_cloud/get_started/) is the SaaS dashboard that ties everytCODE
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWinternal/hcl/funcs/debug.go14// Example usage:COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWinternal/vcs/metadata_test.go486 Name: "John Doe",CODE