Repository Analysis

infracost/infracost

0.6 Likely human-written View on GitHub
0.6
Adjusted Score
0.6
Raw Score
100%
Time Factor
Last Push
Stars
Language
245,121
Lines of Code
2427
Files
133
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 12LOW 121

Pattern Findings

133 matches across 7 categories. Click a row to expand file-level details.

Over-Commented Block117 hits · 117 pts
SeverityFileLineSnippet
LOWinfracost-usage-defaults.medium.yml441 #
LOWinfracost-usage-defaults.medium.yml461 # storage_gb: 1000 # Total size of storage in GB.
LOWinfracost-usage-defaults.medium.yml481 # monthly_analytical_storage_read_operations: 1000000 # Monthly number of read analytical storage operations.
LOWinfracost-usage-defaults.medium.yml501 # storage_gb: 1000 # Total size of storage in GB.
LOWinfracost-usage-defaults.medium.yml581 # This resource need to be converted to CoreResource before default usages are fully supported.
LOWinfracost-usage-defaults.medium.yml661 # tests: 100000 # Overrides the number of tests done in the connection monitor
LOWinfracost-usage-defaults.medium.yml701 monthly_queries: 25000000 # Monthly number of DNS queries
LOWinfracost-usage-defaults.medium.yml801 # monthly_datapipeline_azure_hosted_external_integration_runtime_hours: 4000 # Monthly number of Azure hosted exter
LOWinfracost-usage-defaults.small.yml441 #
LOWinfracost-usage-defaults.small.yml461 # storage_gb: 1000 # Total size of storage in GB.
LOWinfracost-usage-defaults.small.yml481 # monthly_analytical_storage_read_operations: 1000000 # Monthly number of read analytical storage operations.
LOWinfracost-usage-defaults.small.yml501 # storage_gb: 1000 # Total size of storage in GB.
LOWinfracost-usage-defaults.small.yml581 # This resource need to be converted to CoreResource before default usages are fully supported.
LOWinfracost-usage-defaults.small.yml661 # tests: 100000 # Overrides the number of tests done in the connection monitor
LOWinfracost-usage-defaults.small.yml701 monthly_queries: 12500000 # Monthly number of DNS queries
LOWinfracost-usage-defaults.small.yml801 # monthly_datapipeline_azure_hosted_external_integration_runtime_hours: 4000 # Monthly number of Azure hosted exter
LOWinfracost-usage-defaults.large.yml441 #
LOWinfracost-usage-defaults.large.yml461 # storage_gb: 1000 # Total size of storage in GB.
LOWinfracost-usage-defaults.large.yml481 # monthly_analytical_storage_read_operations: 1000000 # Monthly number of read analytical storage operations.
LOWinfracost-usage-defaults.large.yml501 # storage_gb: 1000 # Total size of storage in GB.
LOWinfracost-usage-defaults.large.yml581 # This resource need to be converted to CoreResource before default usages are fully supported.
LOWinfracost-usage-defaults.large.yml701 azurerm_private_dns_txt_record:
LOWinfracost-usage-defaults.large.yml801 # monthly_datapipeline_self_hosted_activity_runs: 1 # Monthly number of self hosted activity runs.
LOWcmd/infracost/breakdown_test.go361 )
LOWcmd/infracost/generate_test.go61 path.Join("./testdata", dir),
LOW…ased_provider/modules/mymod_own/mysub_implicit/main.tf21# The configuration for module.mymod_aliased.module.mysub_implicit expects to
LOW…vider/modules/mymod_own_aliased/mysub_implicit/main.tf21# The configuration for module.mymod_aliased.module.mysub_implicit expects to
LOW…_provider/modules/mymod_aliased/mysub_implicit/main.tf21# The configuration for module.mymod_aliased.module.mysub_implicit expects to
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 calculating
LOW…reakdown_terraform_sync_usage_file/infracost-usage.yml1# You can use this file to define resource usage estimates for Infracost to use when calculating
LOW…reakdown_terraform_sync_usage_file/infracost-usage.yml41 # monthly_data_scanned_gb: 0.0 # Monthly data scanned by CloudWatch logs insights in GB.
LOWinternal/config/config.go21
LOWinternal/config/config.go41 ForceProjectType string `yaml:"force_project_type,omitempty" ignored:"true"`
LOWinternal/config/config.go101 TerraformWorkspace string `yaml:"terraform_workspace,omitempty" envconfig:"TERRAFORM_WORKSPACE"`
LOWinternal/config/config_file.go41 return true
LOWinternal/config/config_file.go61// errors.New("child error 1"),
LOWinternal/config/template/parser.go241 }
LOWinternal/apiclient/usage.go221 return ud, nil
LOW…nal/providers/terraform/terragrunt_registry_service.go41//
LOWinternal/providers/terraform/terragrunt_hcl_provider.go841 // - dependency.foo.bar["baz"]
LOW…alert_test/monitor_scheduled_query_rules_alert_test.tf41 threshold = 3
LOW…alert_test/monitor_scheduled_query_rules_alert_test.tf61# | where tolong(resultCode) >= 500
LOW…alert_test/monitor_scheduled_query_rules_alert_test.tf81# custom_webhook_payload = "{}"
LOWinternal/providers/cloudformation/aws/registry.go1package aws
LOWinternal/providers/cloudformation/aws/registry.go21 // GetConfigOrganizationManagedRuleItem(),
LOWinternal/providers/cloudformation/aws/registry.go41 // GetEFSFileSystemRegistryItem(),
LOWinternal/providers/cloudformation/aws/registry.go61 // GetRoute53RecordRegistryItem(),
LOWinternal/resources/azure/mssql_elasticpool.go61// Database Transaction Unit (DTU) is made a performance metric representing a mixture of performance metrics
LOWinternal/resources/azure/cognitive_account_speech.go21
LOWinternal/resources/azure/app_configuration.go41}
LOWinternal/resources/azure/network_watcher.go1package azure
LOWinternal/resources/azure/storage_account.go201// BlobStorage:
LOWinternal/resources/azure/storage_account.go281// Write Operations.
LOWinternal/resources/azure/storage_account.go341//
LOWinternal/resources/azure/storage_account.go401// List and Create Container Operations (List Operations for File storage).
LOWinternal/resources/azure/storage_account.go421// Standard Hot: cost exists
LOWinternal/resources/azure/storage_account.go481//
LOWinternal/resources/azure/storage_account.go521 UsageBased: true,
LOWinternal/resources/azure/storage_account.go541// Standard Hot: cost exists
LOWinternal/resources/azure/storage_account.go601// Premium: cost exists
57 more matches not shown…
AI Slop Vocabulary7 hits · 17 pts
SeverityFileLineSnippet
MEDIUMinfracost-usage-defaults.medium.yml238 backup_snapshot_size_gb: 119 # Individual storage size for backup snapshots, used in conjunction with resource param
MEDIUMinfracost-usage-example.yml336 backup_snapshot_size_gb: 200 # Individual storage size for backup snapshots, used in conjunction with resource
MEDIUMinfracost-usage-defaults.small.yml238 backup_snapshot_size_gb: 59 # Individual storage size for backup snapshots, used in conjunction with resource parame
MEDIUMinfracost-usage-defaults.large.yml238 backup_snapshot_size_gb: 238 # Individual storage size for backup snapshots, used in conjunction with resource param
MEDIUMinternal/resources/aws/glue_catalog_database.go14// to build a robust data analytics pipeline.
MEDIUMinternal/resources/aws/glue_crawler.go14// to build a robust data analytics pipeline.
MEDIUMinternal/resources/aws/glue_job.go16// to build a robust data analytics pipeline.
Self-Referential Comments4 hits · 12 pts
SeverityFileLineSnippet
MEDIUMinternal/providers/terraform/provider_schemas/main.tf1# This file is used with the "terraform provider schema" commands in "make tagschema" to generate
MEDIUM…aform_modules/f5c8778c26bb651908c92d1816ae14f0/main.tf152 # Create a truncated ID if needed
MEDIUM…aform_modules/f5c8778c26bb651908c92d1816ae14f0/main.tf164 # Create the short ID by adding a hash to the end of the truncated ID
MEDIUM…oject/with_existing_terraform_mods/.terraform.lock.hcl1# This file is maintained automatically by "terraform init".
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOWinternal/hcl/graph.go328 // so we need to check if the module output exists and add an edge from that
LOWinternal/hcl/modules/registry.go382 // Otherwise we need to check if the version matches the constraints
Slop Phrases1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM…odule-using-same-source/.github/workflows/pr-title.yml34 # If `subjectPattern` is configured, you can use this property to override
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWinternal/hcl/funcs/debug.go14// Example usage:
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippet
LOWinternal/vcs/metadata_test.go486 Name: "John Doe",