AI Slop Code RIsk Monitor

cloud-custodian/cloud-custodian

Rules engine for cloud security, cost optimization, and governance, DSL in yaml for policies to query, filter, and take actions on resources

4.6 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for cloud-custodian/cloud-custodian, a Python project with 6,082 GitHub stars. SynthScan examined 1,259,024 lines of code across 14267 source files, recording 4967 pattern matches distributed across 23 syntactic categories. The legacy adjusted pattern signal is 4.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.

4.6
Adjusted Signal
4.6
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
6.1K
Stars
Python
Language
1.3M
Lines of Code
14.3K
Files
5.0K
Pattern Hits
2026-10-12
Scan Date
0.02
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 14.6/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 3.3/100 · LOW

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

Agent Over-Engineering Ratio 15.2/100 · LOW

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

PR Review Velocity Impact 22.8/100 · LOW

Which changes need focused human review? 4967 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 18HIGH 223MEDIUM 136LOW 4590

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 4967 distinct pattern matches across 23 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.

Hyper-Verbose Identifiers3614 hits · 3168 pts
SeverityFileLineSnippetContext
LOWtools/c7n_sentry/test_sentry.py29 def test_preserve_full_message(self):CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py173 def converge_destination_policy(client, config):CODE
LOWtools/c7n_kube/c7n_kube/server.py141 def create_admission_response(CODE
LOWtools/c7n_kube/c7n_kube/resources/custom_resource.py14def tag_custom_resource_instance(raw_instance, *, group, version, plural, scope):CODE
LOWtools/c7n_kube/tests/test_actions.py26 def test_delete_namespaced_resource(self):CODE
LOWtools/c7n_kube/tests/test_actions.py64 def test_enhanced_patch_schema_validation(self):CODE
LOWtools/c7n_kube/tests/test_actions.py77 def test_patch_resource_save_restore_logic(self):CODE
LOWtools/c7n_kube/tests/test_actions.py151 def test_patch_resource_edge_cases(self):CODE
LOWtools/c7n_kube/tests/test_actions.py247 def test_patch_resource_register_resources(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource.py11 def test_custom_cluster_resource_query(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource.py33 def test_custom_namespaced_resource_query(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource.py55 def test_custom_resource_validation(self):CODE
LOWtools/c7n_kube/tests/common_kube.py94 def _get_cassette_library_dir(self, name="flights"):CODE
LOWtools/c7n_kube/tests/test_kube.py38 def test_kube_cache_keyed_by_resource_type(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py13 def test_injects_crd_identity_without_touching_wire_content(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py33 def test_does_not_mutate_the_input_dict(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py42 def test_resources_discovers_and_tags_real_crd_instances(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py73 def test_filters_block_excludes_matching_instance(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py104 def _build_manager_with_filter(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py149 def test_selects_storage_version_among_multiple_served_versions(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py167 def test_skips_crd_whose_storage_version_is_not_served(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py191 def test_namespaced_crd_uses_correct_enum_op_and_preserves_kind(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py218 def test_service_is_not_mislabeled_as_core(self):CODE
LOWtools/c7n_kube/tests/test_custom_resource_discovery.py223 def test_one_crd_listing_failure_does_not_abort_others(self):CODE
LOWtools/c7n_kube/tests/test_labels.py29 def test_namespaced_label_action(self):CODE
LOWtools/c7n_kube/tests/test_labels.py55 def test_event_label_no_labels(self):CODE
LOWtools/c7n_kube/tests/test_labels.py82 def test_admission_event_auto_label_user(self):CODE
LOWtools/c7n_kube/tests/test_labels.py118 def test_admission_event_label(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py131 def test_server_handle_get_empty_policies(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py138 def test_server_handle_get_policies(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py159 def test_server_handle_post_no_policies(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py180 def test_server_handle_post_policies_deny_on_match(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py202 def test_server_handle_post_policies_allow_on_match(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py224 def test_server_handle_post_policies_deny_on_match_multiple(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py333 def test_server_response_with_patch(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py370 def test_server_bad_policy_execution_warn(self):CODE
LOWtools/c7n_kube/tests/test_k8s_server.py413 def test_server_bad_policy_execution_deny(self):CODE
LOWtools/c7n_kube/tests/test_query_pagination.py12 def test_pagination_multi_page(self):CODE
LOWtools/c7n_kube/tests/test_query_pagination.py25 def test_pagination_raw_dict_uses_wire_format_continue_key(self):CODE
LOWtools/c7n_kube/tests/test_query_pagination.py47 def test_pagination_shape_change_raises(self):CODE
LOWtools/c7n_kube/tests/test_policy.py9 def test_kube_admission_policy(self):CODE
LOWtools/c7n_kube/tests/test_policy.py93 def test_admission_warn_event(self):CODE
LOWtools/c7n_kube/tests/test_policy.py113 def test_admission_warn_event_no_results(self):CODE
LOWtools/c7n_kube/tests/test_policy.py161 def test_admission_action_validate(self):CODE
LOWtools/c7n_kube/tests/test_policy.py178 def test_sub_resource_pod_exec(self):CODE
LOWtools/c7n_kube/tests/test_policy.py212 def test_sub_resource_pod_attach_exec(self):CODE
LOWtools/c7n_guardian/c7n_guardian/cli.py436def get_or_create_detector_id(client):CODE
LOWtools/c7n_policystream/tests/test_policystream.py145 def test_diff_subdir_policies(self):STRING
LOWtools/c7n_openstack/tests/test_secret.py8 def test_secret_without_expiration(self):CODE
LOWtools/c7n_openstack/tests/test_user.py8 def test_user_extended_info_filter(self):CODE
LOWtools/c7n_openstack/tests/test_securitygroup.py17 def test_securitygroup_filter_ports(self):CODE
LOWtools/c7n_openstack/tests/test_securitygroup.py43 def test_securitygroup_filter_ipaddress(self):CODE
LOWtools/c7n_openstack/tests/test_storage_container.py8 def test_storage_container_public(self):CODE
LOWtools/c7n_openstack/tests/test_server.py35 def test_server_filter_flavor(self):CODE
LOWtools/c7n_openstack/tests/test_server.py79 def test_server_filter_securitygroup_open_to_internet(self):CODE
LOWtools/c7n_openstack/tests/test_server.py117 def test_server_filter_securitygroup_stateful(self):CODE
LOWtools/c7n_openstack/tests/common_openstack.py76 def _get_cassette_library_dir(self):CODE
LOWtools/c7n_openstack/tests/test_project.py17 def test_project_filter_by_name(self):CODE
LOWtools/c7n_terraform/tests_terraform/test_parser.py67def test_variable_resolver_value_map():CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py536def detect_partition_strategy(bid, delimiters=('/', '-'), prefix=''):CODE
3554 more matches not shown…
Empty Error Handlers104 hits · 520 pts
SeverityFileLineSnippetContext
HIGHtools/c7n_salactus/c7n_salactus/worker.py77except AttributeError:CODE
HIGHtools/c7n_azure/c7n_azure/policy.py363except (TypeError, OverflowError):CODE
HIGHtools/c7n_azure/c7n_azure/storage_utils.py53except ResourceExistsError:CODE
HIGHtools/c7n_azure/c7n_azure/storage_utils.py113except ResourceExistsError:CODE
HIGHtools/c7n_azure/tests_azure/test_azure_utils.py23except Exception:CODE
HIGH…/c7n_azure/tests_azure/test_functional_actions_tags.py31except Exception:CODE
HIGH…/c7n_azure/tests_azure/test_functional_actions_tags.py40except Exception:CODE
HIGH…/c7n_azure/tests_azure/test_functional_filters_tags.py28except Exception:CODE
HIGH…/c7n_azure/tests_azure/test_functional_filters_tags.py37except Exception:CODE
HIGHtools/c7n_azure/tests_azure/test_function.py8except ImportError:CODE
HIGHtools/c7n_azure/tests_azure/test_deployment_units.py36except AzureError:CODE
HIGHtools/c7n_azure/tests_azure/test_deployment_units.py45except AzureError:CODE
HIGHtools/c7n_awscc/build.py37except ImportError:CODE
HIGHtools/c7n_awscc/tests/zpill.py84except AttributeError:CODE
HIGHtools/sandbox/c7n_sphere11/c7n_sphere11/db.py36except TypeError:CODE
HIGHtools/c7n_gcp/tests/test_vertexai.py95except HttpError:CODE
HIGHtools/c7n_gcp/tests/test_vertexai.py165except HttpError:CODE
HIGHtools/c7n_gcp/tests/test_vertexai.py307except HttpError:CODE
HIGHtools/c7n_gcp/tests/test_gcp_common.py152except AssertionError:CODE
HIGHtools/c7n_mailer/c7n_mailer/sqs_queue_processor.py132except ValueError:CODE
HIGHtools/c7n_mailer/c7n_mailer/splunk_delivery.py126except JsonPointerException:CODE
HIGHtools/c7n_mailer/c7n_mailer/smtp_delivery.py30except smtplib.SMTPServerDisconnected:CODE
HIGHtools/c7n_mailer/c7n_mailer/utils.py19except ImportError: # pragma: no coverCODE
HIGHc7n/utils.py142except (AttributeError, TypeError, ValueError, OverflowError):CODE
HIGHc7n/utils.py152except exceptions:CODE
HIGHc7n/utils.py160except exceptions:CODE
HIGHc7n/mu.py91except AttributeError:CODE
HIGHc7n/mu.py426except self.client.exceptions.ResourceNotFoundException:CODE
HIGHc7n/mu.py1226except client.exceptions.ResourceConflictException:CODE
HIGHc7n/mu.py1255except ClientError:CODE
HIGHc7n/mu.py1261except ClientError:CODE
HIGHc7n/mu.py1371except ClientError: # pragma: no coverCODE
HIGHc7n/mu.py1379except ClientError: # pragma: no coverCODE
HIGHc7n/mu.py1532except lambda_client.exceptions.ResourceConflictException:CODE
HIGHc7n/mu.py1933except client.exceptions.ResourceConflictException:CODE
HIGHc7n/mu.py1947except self.client.exceptions.NoSuchConfigRuleException:CODE
HIGHc7n/mu.py1554except lambda_client.exceptions.ResourceNotFoundException:CODE
HIGHc7n/mu.py1594except lambda_client.exceptions.ResourceConflictException:CODE
HIGHc7n/mu.py1624except lambda_client.exceptions.ResourceNotFoundException:CODE
HIGHc7n/mu.py1726except lambda_client.exceptions.ResourceConflictException:CODE
HIGHc7n/mu.py1771except Done:CODE
HIGHc7n/mu.py1615except lambda_client.exceptions.ResourceNotFoundException:CODE
HIGHc7n/mu.py1768except sns_client.exceptions.NotFoundException:CODE
HIGHc7n/output.py228except NotImplementedError:CODE
HIGHc7n/filters/core.py376except (AttributeError, SyntaxError, KeyError):CODE
HIGHc7n/filters/core.py389except (AttributeError, SyntaxError):CODE
HIGHc7n/resources/appelb.py644except client.exceptions.LoadBalancerNotFoundException:CODE
HIGHc7n/resources/vpc.py3322except client.exceptions.ResourceAlreadyExistsException:CODE
HIGHc7n/resources/elasticsearch.py971except client.exceptions.ResourceAlreadyExistsException:CODE
HIGHc7n/resources/artifact.py138except client.exceptions.ResourceNotFoundException:CODE
HIGHc7n/resources/opensearch.py375except client.exceptions.ResourceNotFound:CODE
HIGHc7n/resources/waf.py182except client.exceptions.WAFNonexistentItemException:CODE
HIGHc7n/resources/rdscluster.py312except ignore:CODE
HIGHc7n/resources/iam.py3063except (client.exceptions.NoSuchEntityException,CODE
HIGHc7n/resources/sqs.py340except (client.exceptions.QueueDoesNotExist,CODE
HIGHc7n/resources/apigw.py454except client.exceptions.NotFoundException:CODE
HIGHc7n/resources/aws.py124except IndexError:CODE
HIGHc7n/resources/glue.py124except client.exceptions.AlreadyExistsException:CODE
HIGHc7n/resources/transfer.py193except client.exceptions.ResourceNotFoundException:CODE
HIGHc7n/resources/transfer.py272except client.exceptions.ResourceNotFoundException:CODE
44 more matches not shown…
Cross-Language Confusion85 hits · 422 pts
SeverityFileLineSnippetContext
HIGHtools/c7n_kube/c7n_kube/server.py48 resources = p.push(req)CODE
HIGHtools/c7n_kube/tests/test_labels.py72 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_labels.py102 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_labels.py143 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py33 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py64 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py88 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py108 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py129 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py156 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py207 resources = policy.push(event)CODE
HIGHtools/c7n_kube/tests/test_policy.py242 resources = policy.push(event)CODE
HIGHtools/c7n_azure/c7n_azure/handler.py56 p.push(event, context)CODE
HIGHtools/c7n_azure/c7n_azure/container_host/host.py403 policy.push(event, context)CODE
HIGHtools/c7n_azure/tests_azure/test_policy_mode.py561 resources = p.push(event, None)CODE
HIGHtools/c7n_azure/tests_azure/test_policy_mode.py587 resources = p.push(event, None)CODE
HIGHtools/c7n_azure/tests_azure/test_policy_mode.py609 resources = p.push(event, None)CODE
HIGHtools/c7n_azure/tests_azure/test_policy_mode.py627 resources = p.push(None, None)CODE
HIGH…/tests_azure/tests_resources/test_storage_container.py94 resources = p.push(event, None)CODE
HIGHtools/c7n_org/tests/test_org.py1136 # Should fail - {environment} is undefined, but {event} should be OKCOMMENT
HIGHtools/sandbox/zerodark/zerodark/metrics.py52 and (end > ? or end is null)STRING
HIGHtools/sandbox/zerodark/zerodark/resolver.py69 and (end > ? or end is null)''',STRING
HIGHtools/c7n_gcp/tests/test_gcp_storage.py341 [bucket] = p.push(CODE
HIGHtools/c7n_gcp/c7n_gcp/handler.py44 p.push(event, context)CODE
HIGHtools/c7n_gcp/c7n_gcp/resources/resourcemanager.py586 key: "targets[?bigQueryTarget && bigQueryTarget.disabled == `null`]"STRING
HIGHtools/c7n_left/c7n_left/core.py282 return policy.push(event)CODE
HIGHtools/c7n_mailer/tests/common.py305 "event": null,CODE
HIGHtools/c7n_mailer/tests/common.py360 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py411 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py463 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py514 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py567 "event":null,CODE
HIGHtools/c7n_mailer/tests/common.py593 "event": null,CODE
HIGHtools/c7n_mailer/tests/common.py653 "event": null,CODE
HIGHc7n/handler.py170 p.push(event, context)CODE
HIGH⚡c7n/resources/s3.py465 'BucketLoggingConfiguration': u'{"destinationBucketName":null,"logFilePrefix":null}',CODE
HIGH⚡c7n/resources/s3.py466 'BucketPolicy': u'{"policyText":null}',CODE
HIGH⚡c7n/resources/s3.py467 'BucketVersioningConfiguration': u'{"status":"Off","isMfaDeleteEnabled":null}',CODE
HIGH⚡c7n/resources/s3.py468 'BucketAccelerateConfiguration': u'{"status":null}',CODE
HIGHtests/test_cloudsearch.py74 resources = p.push(event, {})CODE
HIGHtests/test_vpc.py1495 resources = p.push(event_data("event-transit-gateway-delete-vpc-attachment.json"))CODE
HIGHtests/test_iam.py582 resources = p.push(event)CODE
HIGH⚡tests/test_iam.py1924 p.push(event)STRING
HIGH⚡tests/test_iam.py1931 resources = p.push(event)STRING
HIGHtests/test_iam.py972 resources = p.push({'detail': {STRING
HIGHtests/test_iam.py1009 resources = p.push({'detail': {STRING
HIGHtests/test_iam.py1702 resources = p.push({'detail': {STRING
HIGHtests/test_cloudfront.py111 resources = policy.push(event_data("event-cloud-trail-create-distribution.json"))CODE
HIGHtests/test_cloudfront.py135 resources = policy.push(event_data("event-cloud-trail-update-distribution.json"))CODE
HIGHtests/test_cloudfront.py158 resources = policy.push(event_data("event-cloud-trail-update-distribution.json"))CODE
HIGHtests/test_cloudfront.py189 resources = policy.push(event_data("event-cloud-trail-update-distribution.json"))CODE
HIGHtests/test_cloudfront.py221 resources = policy.push(event_data("event-cloud-trail-tag-distribution.json"))CODE
HIGHtests/test_cloudfront.py248 resources = policy.push(event_data("event-cloud-trail-tag-distribution.json"))CODE
HIGHtests/test_hsm.py100 resources = policy.push(event)CODE
HIGHtests/test_efs.py102 resources = policy.push(event, None)CODE
HIGHtests/test_efs.py124 resources = policy.push(event, None)CODE
HIGHtests/test_appelb.py41 result = p.push(event, {})[0]CODE
HIGHtests/test_appelb.py727 resources = policy.push(event_data("event-cloud-trail-appelb-add-tags.json"))CODE
HIGHtests/test_autotag.py29 resources = policy.push(event, None)CODE
HIGHtests/test_autotag.py55 resources = policy.push(event, None)CODE
25 more matches not shown…
Deep Nesting349 hits · 334 pts
SeverityFileLineSnippetContext
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py267CODE
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py351CODE
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py431CODE
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py370CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py164CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py342CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py691CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py759CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py173CODE
LOWtools/c7n_logexporter/c7n_logexporter/flowdeliver.py53CODE
LOWtools/c7n_logexporter/c7n_logexporter/flowdeliver.py85CODE
LOWtools/c7n_logexporter/c7n_logexporter/stream.py29CODE
LOWtools/c7n_kube/c7n_kube/utils.py1CODE
LOWtools/c7n_kube/c7n_kube/actions/core.py190CODE
LOWtools/c7n_guardian/c7n_guardian/cli.py141CODE
LOWtools/c7n_guardian/c7n_guardian/cli.py269CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py185CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py388CODE
LOWtools/c7n_policystream/policystream.py749CODE
LOWtools/c7n_policystream/policystream.py272CODE
LOWtools/c7n_policystream/policystream.py371CODE
LOWtools/c7n_policystream/policystream.py422CODE
LOWtools/c7n_terraform/c7n_terraform/parser.py102CODE
LOWtools/c7n_terraform/c7n_terraform/parser.py217CODE
LOWtools/c7n_terraform/c7n_terraform/parser.py444CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py307CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py602CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py729CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py803CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py886CODE
LOWtools/c7n_salactus/c7n_salactus/objectacl.py79CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py177CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py322CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py457CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py520CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py672CODE
LOWtools/c7n_salactus/c7n_salactus/inventory.py21CODE
LOWtools/c7n_sphinxext/c7n_sphinxext/docgen.py53CODE
LOWtools/c7n_sphinxext/c7n_sphinxext/docgen.py117CODE
LOWtools/c7n_azure/c7n_azure/query.py145CODE
LOWtools/c7n_azure/c7n_azure/graph_utils.py75CODE
LOWtools/c7n_azure/c7n_azure/policy.py325CODE
LOWtools/c7n_azure/c7n_azure/session.py36CODE
LOWtools/c7n_azure/c7n_azure/session.py238CODE
LOWtools/c7n_azure/c7n_azure/function_package.py61CODE
LOWtools/c7n_azure/c7n_azure/utils.py122CODE
LOWtools/c7n_azure/c7n_azure/utils.py614CODE
LOWtools/c7n_azure/c7n_azure/utils.py167CODE
LOWtools/c7n_azure/c7n_azure/utils.py395CODE
LOWtools/c7n_azure/c7n_azure/filters.py773CODE
LOWtools/c7n_azure/c7n_azure/filters.py841CODE
LOWtools/c7n_azure/c7n_azure/filters.py929CODE
LOWtools/c7n_azure/c7n_azure/output.py71CODE
LOWtools/c7n_azure/c7n_azure/container_host/host.py203CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py207CODE
LOW…ols/c7n_azure/c7n_azure/resources/network_interface.py85CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py386CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py431CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py497CODE
LOWtools/c7n_azure/c7n_azure/resources/app_gateway.py72CODE
289 more matches not shown…
Excessive Try-Catch Wrapping222 hits · 255 pts
SeverityFileLineSnippetContext
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py215 except Exception:CODE
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py517 except Exception:CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py96 except Exception:CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py120 except Exception:CODE
LOWtools/c7n_logexporter/c7n_logexporter/exporter.py126 except Exception:CODE
MEDIUMtools/c7n_logexporter/c7n_logexporter/exporter.py91def run(*args, **kw):CODE
LOWtools/c7n_kube/c7n_kube/server.py66 except Exception as e:CODE
LOWtools/c7n_kube/c7n_kube/server.py116 except Exception as e:CODE
LOWtools/c7n_kube/c7n_kube/resources/custom_resource.py56 except Exception:CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py214 except Exception:STRING
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py776 except Exception:STRING
MEDIUMtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py359def flush(self):CODE
LOWtools/c7n_policystream/policystream.py353 except Exception as e:CODE
MEDIUMtools/c7n_policystream/policystream.py347def _policy_file_rev(self, f, commit):CODE
LOWtools/c7n_terraform/c7n_terraform/parser.py470 except Exception as e:CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py208 except Exception as e:CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py328 except Exception as e:CODE
LOWtools/c7n_salactus/c7n_salactus/worker.py356 except Exception:CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py140 except Exception:CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py219 except Exception:CODE
MEDIUMtools/c7n_salactus/c7n_salactus/cli.py135def _f(*args, **kw):CODE
LOWtools/c7n_salactus/c7n_salactus/rqworker.py58 except Exception:CODE
MEDIUMtools/c7n_salactus/c7n_salactus/rqworker.py54def loads(s):CODE
LOWtools/c7n_sphinxext/c7n_sphinxext/docgen.py83 except Exception:CODE
LOWtools/c7n_sphinxext/c7n_sphinxext/docgen.py262 except Exception:CODE
MEDIUMtools/c7n_sphinxext/c7n_sphinxext/docgen.py259def main(provider, output_dir, group_by):CODE
LOWtools/c7n_azure/c7n_azure/query.py63 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/query.py169 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/graph_utils.py29 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/policy.py477 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/policy.py498 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/session.py146 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/session.py210 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/utils.py180 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/utils.py496 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/filters.py467 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/storage_utils.py56 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/storage_utils.py64 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/container_host/host.py238 except Exception as exc:CODE
LOWtools/c7n_azure/c7n_azure/container_host/host.py404 except Exception:CODE
MEDIUMtools/c7n_azure/c7n_azure/container_host/host.py401def run_policy(policy, event, context):CODE
LOW…azure/c7n_azure/resources/entraid_security_defaults.py69 except Exception as e:CODE
LOW⚡tools/c7n_azure/c7n_azure/resources/disk.py323 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py373 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py399 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py486 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py509 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py524 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/disk.py587 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/key_vault_keys.py159 except Exception as error:CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py95 except Exception as e:CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py110 except Exception as e:CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py203 except Exception as e:CODE
LOW…/c7n_azure/c7n_azure/resources/entraid_organization.py257 except Exception as e:CODE
LOW…zure/c7n_azure/resources/entraid_conditional_access.py104 except Exception as e:CODE
LOW…ols/c7n_azure/c7n_azure/resources/network_interface.py106 except Exception as error:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py103 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py121 except Exception as e:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py138 except Exception:CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py163 except Exception:CODE
162 more matches not shown…
Hallucination Indicators18 hits · 180 pts
SeverityFileLineSnippetContext
CRITICALtools/c7n_azure/c7n_azure/handler.py11from azure.core.exceptions import AzureErrorCODE
CRITICALtools/c7n_azure/c7n_azure/filters.py19from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtools/c7n_azure/c7n_azure/storage_utils.py7from azure.core.exceptions import ResourceExistsErrorCODE
CRITICALtools/c7n_azure/c7n_azure/resources/disk.py12from azure.core.exceptions import AzureErrorCODE
CRITICAL…7n_azure/c7n_azure/resources/network_security_group.py6from azure.core.exceptions import AzureErrorCODE
CRITICALtools/c7n_azure/c7n_azure/resources/sqldatabase.py20from azure.core.exceptions import AzureError, ResourceNotFoundErrorCODE
CRITICAL…ls/c7n_azure/c7n_azure/provisioning/storage_account.py3from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALtools/c7n_azure/c7n_azure/provisioning/app_insights.py3from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICAL…ols/c7n_azure/c7n_azure/provisioning/resource_group.py3from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALtools/c7n_azure/tests_azure/test_deployment_units.py4from azure.core.exceptions import AzureErrorCODE
CRITICALtools/c7n_azure/tests_azure/test_resolver.py301 from azure.core.exceptions import ResourceNotFoundErrorCODE
CRITICALtools/c7n_azure/tests_azure/test_resolver.py325 from azure.core.exceptions import ClientAuthenticationErrorCODE
CRITICALtools/c7n_azure/tests_azure/test_resolver.py351 from azure.core.exceptions import HttpResponseErrorCODE
CRITICAL…ols/c7n_azure/tests_azure/tests_resources/test_disk.py15from azure.core.exceptions import AzureError, HttpResponseErrorCODE
CRITICAL…ols/c7n_azure/tests_azure/tests_resources/test_disk.py459 self.action.client.virtual_machines.begin_deallocate.assert_called_once_with(CODE
CRITICAL…ols/c7n_azure/tests_azure/tests_resources/test_disk.py478 self.action.client.virtual_machines.begin_start.assert_called_once_with("rg", "vm-name")CODE
CRITICAL…c7n_azure/tests_azure/tests_resources/test_keyvault.py12from azure.core.exceptions import HttpResponseErrorCODE
CRITICALtools/c7n_mailer/c7n_mailer/ldap_lookup.py15from ldap3.core.exceptions import LDAPSocketOpenErrorCODE
Self-Referential Comments62 hits · 170 pts
SeverityFileLineSnippetContext
MEDIUM⚡tools/c7n_azure/c7n_azure/utils.py611# This function is a workaround for Azure KeyVault objects that lackCOMMENT
MEDIUM⚡tools/c7n_azure/tests_azure/test_graph_utils.py239 # Create a minimal context objectCOMMENT
MEDIUM⚡tools/c7n_azure/tests_azure/test_graph_utils.py1100 # Create a batch with 25 requests (Graph API limit is typically 20)COMMENT
MEDIUMtools/c7n_azure/tests_azure/test_graph_utils.py137 # Create a proper policy to get a real manager instanceCOMMENT
MEDIUM⚡…/c7n_azure/tests_azure/tests_resources/test_storage.py933 # Create a mock storage account resourceCOMMENT
MEDIUM⚡…/c7n_azure/tests_azure/tests_resources/test_storage.py941 # Create the filterCOMMENT
MEDIUM…ure/tests_azure/tests_resources/test_container_host.py491 # Create a bad yaml fileCOMMENT
MEDIUM…ure/tests_azure/tests_resources/test_container_host.py522 # Create a bad yaml fileSTRING
MEDIUM…ure/tests_azure/tests_resources/test_container_host.py543 # Create a bad yaml file (no name field)STRING
MEDIUM…ure/tests_azure/tests_resources/test_container_host.py581 # Create a bad yaml fileSTRING
MEDIUM…s_azure/tests_resources/terraform/entraid_user/main.tf105# Create a security group for testing group membership filtersCOMMENT
MEDIUMtools/c7n_azure/tests_azure/templates/provision.sh382 # Create a new modern agent version and then resolve stable agent details.COMMENT
MEDIUMtools/c7n_org/tests/test_org.py676 # Create an invalid accounts file (missing required field)COMMENT
MEDIUMtools/c7n_gcp/tests/test_vertexai.py208 # Create an evaluation item:COMMENT
MEDIUMtools/c7n_gcp/tests/test_vertexai.py228 # Create a run over itCOMMENT
MEDIUMtools/c7n_gcp/c7n_gcp/resources/armor.py68 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py61 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py555 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py606 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py656 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/network.py374 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/network.py427 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUMtools/c7n_gcp/c7n_gcp/resources/compute.py688 """This method is used to refresh labelFingerprint when a label action fails because theSTRING
MEDIUM…7n_mailer/c7n_mailer/azure_mailer/sendgrid_delivery.py112 # Create a To object instead of an Email objectCOMMENT
MEDIUMtools/dev/data_updatearnref.py142# Create the docs directoryCOMMENT
MEDIUMtools/c7n_tencentcloud/tests/test_tc_client.py437 # Create a temporary credentials fileCOMMENT
MEDIUM…s/c7n_tencentcloud/c7n_tencentcloud/filters/metrics.py152 # Create a map from resource_id to resource for quick lookupCOMMENT
MEDIUM⚡c7n/policy.py1395 """This method is no longer called within c7n, and despite being a privateSTRING
MEDIUMc7n/resources/firewall.py310 # Create a new log destination object by adding a single LogDestinationConfig array elementCOMMENT
MEDIUMc7n/resources/eventbridge.py184 # This function provides custom functionality to query event-rule-targetsCOMMENT
MEDIUMc7n/resources/eventbridge.py445 # This function provides custom functionality to query event-rule-targetsCOMMENT
MEDIUMc7n/resources/elb.py269 # Create a custom policy with epoch timestamp.COMMENT
MEDIUMc7n/resources/appmesh.py76 # This method is called in event mode and not pull mode.COMMENT
MEDIUMc7n/resources/appmesh.py205 # This method is called in event mode and not pull mode.COMMENT
MEDIUMc7n/resources/ebs.py1297 # Create a current snapshotCOMMENT
MEDIUMtests/test_kafka.py277 # Create a test resource without policy annotationCOMMENT
MEDIUMtests/test_vpc.py564 # Create a mock filter instanceCOMMENT
MEDIUMtests/test_vpc.py2174 # Create a mock filter instanceCOMMENT
MEDIUMtests/test_quotas.py215 # Create a mock resource where quota equals hard_limitCOMMENT
MEDIUMtests/test_quotas.py227 # Create the action with multiplier that would normally increaseCOMMENT
MEDIUMtests/test_quotas.py248 # Create a mock resource where calculated count would exceed hard_limitCOMMENT
MEDIUMtests/test_quotas.py260 # Create the action with multiplier that would exceed hard_limitCOMMENT
MEDIUMtests/test_rdsparamgroup.py16 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py57 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py92 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py183 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py231 # Create the PGCOMMENT
MEDIUMtests/test_rdsparamgroup.py271 # Create the PGCOMMENT
MEDIUMtests/test_appelb.py756 # Create a policy that deletes listeners on a specific portCOMMENT
MEDIUMtests/test_mu.py1577 # Create a module with both *.py and *.pyc.COMMENT
MEDIUMtests/test_bedrock.py68 # Create the job using the helper method with Terraform resources (only in recording mode)COMMENT
MEDIUMtests/test_bedrock.py115 # Create the job using the helper method with Terraform resources (only in recording mode)COMMENT
MEDIUMtests/test_bedrock.py170 # Create the job using the helper method with Terraform resources (only in recording mode)COMMENT
MEDIUMtests/test_bedrock.py249 # Create the job using the helper method with Terraform resources (only in recording mode)COMMENT
MEDIUMtests/test_s3.py3246 # Create an sns topicCOMMENT
MEDIUMtests/terraform/bedrock_guardrail_update/main.tf6# Create an application inference profileCOMMENT
MEDIUM…erraform/bedrock_application_inference_profile/main.tf6# Create an application inference profileCOMMENT
MEDIUMtests/terraform/bedrock_guardrail/main.tf6# Create an application inference profileCOMMENT
MEDIUMtests/terraform/bedrock_guardrail_tag_actions/main.tf9# Create an application inference profileCOMMENT
MEDIUM…sts/terraform/bedrock_inference_profile_delete/main.tf6# Create an application inference profile for delete testingCOMMENT
2 more matches not shown…
Cross-File Repetition29 hits · 145 pts
SeverityFileLineSnippetContext
HIGHtools/c7n_kube/c7n_kube/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_azure/c7n_azure/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_oci/c7n_oci/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_gcp/c7n_gcp/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_tencentcloud/c7n_tencentcloud/query.py0metaclass to have consistent action/filter registry for new resources.STRING
HIGHtools/c7n_azure/c7n_azure/filters.py0filter resources for tag specified future action filters resources by a 'maid_status' tag which specifies a future date STRING
HIGHtools/c7n_gcp/c7n_gcp/filters/labels.py0filter resources for tag specified future action filters resources by a 'maid_status' tag which specifies a future date STRING
HIGHc7n/tags.py0filter resources for tag specified future action filters resources by a 'maid_status' tag which specifies a future date STRING
HIGH…azure/c7n_azure/resources/entraid_security_defaults.py0get resources from microsoft graph api for use with graphsource.STRING
HIGH…/c7n_azure/c7n_azure/resources/entraid_organization.py0get resources from microsoft graph api for use with graphsource.STRING
HIGH…zure/c7n_azure/resources/entraid_conditional_access.py0get resources from microsoft graph api for use with graphsource.STRING
HIGHtools/c7n_azure/c7n_azure/resources/entraid_user.py0get resources from microsoft graph api for use with graphsource.STRING
HIGHtools/c7n_azure/c7n_azure/resources/entraid_group.py0get resources from microsoft graph api for use with graphsource.STRING
HIGHtools/c7n_azure/c7n_azure/actions/tagging.py0tag resources for future action. the optional 'tz' parameter can be used to adjust the clock to align with a given timezSTRING
HIGHtools/c7n_gcp/c7n_gcp/actions/labels.py0tag resources for future action. the optional 'tz' parameter can be used to adjust the clock to align with a given timezSTRING
HIGHc7n/tags.py0tag resources for future action. the optional 'tz' parameter can be used to adjust the clock to align with a given timezSTRING
HIGHtools/c7n_oci/c7n_oci/resources/object_storage.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_oci/c7n_oci/resources/dns.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_oci/c7n_oci/resources/virtual_network.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_oci/c7n_oci/resources/identity.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_oci/c7n_oci/resources/compute.py0remove tag action :example: remove the specified tags from the resource. defined tag needs to be referred as 'namespace.STRING
HIGHtools/c7n_gcp/c7n_gcp/resources/armor.py0takes resourcename (from a log) or selflink (from a resource) and parses from it the parameters needed to make a requestSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py0takes resourcename (from a log) or selflink (from a resource) and parses from it the parameters needed to make a requestSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/network.py0takes resourcename (from a log) or selflink (from a resource) and parses from it the parameters needed to make a requestSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/compute.py0takes resourcename (from a log) or selflink (from a resource) and parses from it the parameters needed to make a requestSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/armor.py0this method is used to refresh labelfingerprint when a label action fails because the fingerprint was stale.STRING
HIGHtools/c7n_gcp/c7n_gcp/resources/loadbalancer.py0this method is used to refresh labelfingerprint when a label action fails because the fingerprint was stale.STRING
HIGHtools/c7n_gcp/c7n_gcp/resources/network.py0this method is used to refresh labelfingerprint when a label action fails because the fingerprint was stale.STRING
HIGHtools/c7n_gcp/c7n_gcp/resources/compute.py0this method is used to refresh labelfingerprint when a label action fails because the fingerprint was stale.STRING
Unused Imports135 hits · 134 pts
SeverityFileLineSnippetContext
LOWtools/c7n_kube/c7n_kube/entry.py6CODE
LOWtools/c7n_kube/c7n_kube/entry.py24CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py37CODE
LOWtools/c7n_trailcreator/c7n_trailcreator/trailcreator.py39CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py29CODE
LOWtools/c7n_azure/c7n_azure/entry.py5CODE
LOWtools/c7n_azure/c7n_azure/entry.py11CODE
LOWtools/c7n_azure/c7n_azure/entry.py12CODE
LOWtools/c7n_azure/c7n_azure/entry.py13CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py13CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py14CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py15CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py16CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py17CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py18CODE
LOWtools/c7n_azure/c7n_azure/resources/entraid.py19CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py18CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py29CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py56CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py93CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py137CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py175CODE
LOW…ols/c7n_azure/tests_azure/test_resolver_integration.py218CODE
LOWtools/c7n_azure/tests_azure/azure_common.py28CODE
LOWtools/c7n_awscc/c7n_awscc/entry.py3CODE
LOWtools/c7n_awscc/c7n_awscc/manager.py6CODE
LOWtools/c7n_oci/tests/test_multi_region.py9CODE
LOWtools/c7n_oci/c7n_oci/query.py12CODE
LOWtools/c7n_oci/c7n_oci/entry.py5CODE
LOWtools/c7n_oci/c7n_oci/entry.py9CODE
LOWtools/c7n_oci/c7n_oci/entry.py12CODE
LOWtools/c7n_oci/c7n_oci/entry.py15CODE
LOWtools/c7n_oci/c7n_oci/entry.py18CODE
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py6CODE
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py6CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py6CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py10CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py5CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py6CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py10CODE
LOWtools/c7n_oci/c7n_oci/actions/__init__.py5CODE
LOWtools/c7n_gcp/c7n_gcp/client.py35CODE
LOWtools/c7n_gcp/c7n_gcp/entry.py7CODE
LOWtools/c7n_gcp/c7n_gcp/entry.py18CODE
LOWtools/c7n_gcp/c7n_gcp/entry.py21CODE
LOWtools/c7n_gcp/c7n_gcp/entry.py22CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py4CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py5CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py6CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py7CODE
LOWtools/c7n_gcp/c7n_gcp/filters/__init__.py8CODE
75 more matches not shown…
Fake / Example Data100 hits · 102 pts
SeverityFileLineSnippetContext
LOW⚡tools/c7n_azure/tests_azure/test_azure_utils.py194 source = 'Lorem ipsum dolor sit amet'CODE
LOW⚡tools/c7n_azure/tests_azure/test_azure_utils.py194 source = 'Lorem ipsum dolor sit amet'CODE
LOW⚡tools/c7n_azure/tests_azure/test_graph_utils.py224 def _setup_mock_session(self, token='fake-token'):CODE
LOW⚡tools/c7n_azure/tests_azure/test_graph_utils.py913 self.assertEqual(headers['Authorization'], 'Bearer fake-token-123')CODE
LOW⚡tools/c7n_azure/tests_azure/test_graph_utils.py926 mock_token.token = 'fake-token'CODE
LOW⚡tools/c7n_azure/tests_azure/test_graph_utils.py1096 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py166 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py562 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py622 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py655 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py694 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py786 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py825 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py862 mock_token.token = 'fake-token-123'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py954 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py1011 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py1067 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/test_graph_utils.py1143 mock_token.token = 'fake-token'CODE
LOWtools/c7n_azure/tests_azure/azure_common.py55 "displayName": "John Doe",CODE
LOWtools/c7n_azure/tests_azure/azure_common.py211 if os.environ.get(constants.ENV_ACCESS_TOKEN) == "fake_token":CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json106 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json109 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json170 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json173 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json234 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json237 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json298 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json301 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json362 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json365 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2292 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2295 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2356 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2359 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2420 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2423 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2484 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2487 "lastModifiedBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2548 "createdBy": "user@example.com",CODE
LOW…ttes/MachineLearningJobTest.machine-learning-jobs.json2551 "lastModifiedBy": "user@example.com",CODE
LOW…tests_azure/cassettes/KeyVaultTest.test_whitelist.json356 "displayName": "John Doe",CODE
LOW…settes/ApiManagementTest.test_certificates_filter.json41 "publisherEmail": "admin@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json106 "createdBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json109 "lastModifiedBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json170 "createdBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json173 "lastModifiedBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json234 "createdBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json237 "lastModifiedBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json298 "createdBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json301 "lastModifiedBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json362 "createdBy": "user@example.com",CODE
LOW…chineLearningJobTest.machine-learning-job-archive.json365 "lastModifiedBy": "user@example.com",CODE
LOWtools/c7n_azure/tests_azure/templates/alert-logs.json15 "defaultValue": "test@test.com"CODE
LOWtools/c7n_oci/tests/oci_common.py51 return re.sub(r'"[^"]+@oracle\.com"', '"user@example.com"', data)CODE
LOW…tests/terraform/identity_compartment/tf_resources.json9 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOW…7n_oci/tests/terraform/identity_user/tf_resources.json45 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/ip_auth/tf_resources.json22 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/zone/tf_resources.json9 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOWtools/c7n_oci/tests/terraform/zone/tf_resources.json28 "Oracle-Tags.CreatedBy": "user@example.com",CODE
LOW…n_oci/tests/terraform/identity_group/tf_resources.json9 "Oracle-Tags.CreatedBy": "user@example.com",CODE
40 more matches not shown…
Over-Commented Block103 hits · 99 pts
SeverityFileLineSnippetContext
LOWtools/c7n_sentry/c7n_sentry/c7nsentry.py221 breakCOMMENT
LOWtools/c7n_sentry/c7n_sentry/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_logexporter/c7n_logexporter/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/client.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/resources/core/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/resources/apps/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_kube/c7n_kube/actions/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_guardian/c7n_guardian/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_trailcreator/c7n_trailcreator/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_openstack/c7n_openstack/client.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_openstack/c7n_openstack/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_openstack/c7n_openstack/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_terraform/tests_terraform/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_terraform/c7n_terraform/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_salactus/c7n_salactus/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_sphinxext/c7n_sphinxext/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/c7n_azure/query.py361 # <subscription id>COMMENT
LOWtools/c7n_azure/c7n_azure/container_host/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/c7n_azure/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/c7n_azure/resources/sqldatabase.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/c7n_azure/actions/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/tests_azure/test_lock_action.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/tests_azure/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_azure/tests_azure/tests_resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_awscc/tests/zpill.py21from c7n.utils import get_account_id_from_stsCOMMENT
LOWtools/c7n_awscc/c7n_awscc/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_awscc/c7n_awscc/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_org/c7n_org/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/sandbox/c7n_sphere11/c7n_sphere11/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/sandbox/c7n_autodoc/example_config_file.yml1---COMMENT
LOWtools/sandbox/zerodark/zerodark/metrics.py101 dict(name='SurgeQueueLength', statistic='Maximum')]COMMENT
LOWtools/sandbox/zerodark/zerodark/flowrecord.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/sandbox/zerodark/zerodark/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/sandbox/zerodark/zerodark/floweni.py221 stats['Flows'] += 1COMMENT
LOWtools/sandbox/c7n_index/c7n_index/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_oci/c7n_oci/filters/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_oci/c7n_oci/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_gcp/tests/test_sql.py361COMMENT
LOWtools/c7n_gcp/c7n_gcp/client.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_gcp/c7n_gcp/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_gcp/c7n_gcp/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_left/c7n_left/providers/terraform/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_mailer/c7n_mailer/utils_email.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_mailer/c7n_mailer/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_mailer/c7n_mailer/gcp_mailer/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/dev/vector.toml1# AWS Client Side MonitoringCOMMENT
LOWtools/dev/data_updatearnref.py1#!/usr/bin/env python3COMMENT
LOWtools/dev/data_updatearnref.py21# this software without specific prior written permission.COMMENT
LOWtools/ops/azure/container-host/chart/values.yaml61 # SendGrid API key OR SMTP settingsCOMMENT
LOWtools/cask/main.go1// Copyright 2019 Microsoft CorporationCOMMENT
LOWtools/cask/main_test.go1// Copyright 2019 Microsoft CorporationCOMMENT
LOWtools/c7n_tencentcloud/c7n_tencentcloud/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_tencentcloud/c7n_tencentcloud/output.py1# Copyright The Cloud Custodian Authors.COMMENT
LOW…7n_tencentcloud/c7n_tencentcloud/resources/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_traildb/c7n_traildb/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
LOWtools/c7n_traildb/c7n_traildb/traildb.py121# STOP = 42COMMENT
LOWc7n/handler.py21logging.getLogger('urllib3').setLevel(logging.WARNING)COMMENT
LOWc7n/__init__.py1# Copyright The Cloud Custodian Authors.COMMENT
43 more matches not shown…
AI Slop Vocabulary24 hits · 46 pts
SeverityFileLineSnippetContext
LOWtools/c7n_guardian/c7n_guardian/cli.py222 # No role, just use current sessionCOMMENT
MEDIUMtools/c7n_salactus/c7n_salactus/cli.py615 # unleash the monkies ;-)COMMENT
MEDIUMtools/c7n_azure/c7n_azure/resources/disk.py600 # Imported here so the test harness's patch of utcnow takes effect.COMMENT
MEDIUM…/tests_resources/test_entraid_user_process_resource.py11 """Test _process_resource methods in EntraID User actions with comprehensive coverage."""STRING
MEDIUM…/c7n_azure/tests_azure/tests_resources/test_entraid.py3387 # Mock comprehensive response with mixed location typesCOMMENT
MEDIUM…/c7n_azure/tests_azure/tests_resources/test_entraid.py3503 # Define comprehensive policyCOMMENT
MEDIUM…/c7n_azure/tests_azure/tests_resources/test_entraid.py4604 """Test comprehensive named location policies combining multiple filters"""STRING
MEDIUM…ests_azure/tests_resources/test_resolver_functional.py314 """Test that multiple filters using same blob leverage caching"""STRING
MEDIUMtools/c7n_gcp/c7n_gcp/output.py110 # utilize.COMMENT
MEDIUM…ols/c7n_left/c7n_left/providers/terraform/variables.py101 # things with default values to facilitate attribute interpolation.COMMENT
LOW⚡tools/c7n_mailer/tests/test_ldap.py100 # for that result, we should query the cache and just return {}COMMENT
LOWtools/c7n_mailer/c7n_mailer/splunk_delivery.py180 return True # if no exception, just returnCODE
LOW…ols/c7n_tencentcloud/c7n_tencentcloud/resources/clb.py185 # for OPEN CLB, just use internet ip as keyCOMMENT
LOWc7n/deprecated.py124 # otherwise we just use the replacement as is.COMMENT
LOWc7n/policy.py583 # For cli usage by normal users, don't assume the role just useCOMMENT
MEDIUMc7n/mu.py1013 """for AWS Event Sources that want to utilize lazy client initialization.STRING
LOWc7n/filters/core.py318# Once 3.10 is no longer supported, just use enum.memberCOMMENT
MEDIUMc7n/filters/core.py455 """Fallback for older unit tests that don't utilize a query manager"""STRING
MEDIUMc7n/filters/core.py505 """Fallback for older unit tests that don't utilize a query manager"""STRING
MEDIUMc7n/resources/dynamodb.py678 """Override in order to disable the augment for serverless policies.STRING
MEDIUMc7n/resources/waf.py208 # Essentially a copy of DescribeSource.augment with the addition of Scope and Name parametersCOMMENT
MEDIUMc7n/resources/aws.py885 # We only utilize these regions if they are explicitly passed in on the cli.COMMENT
MEDIUMc7n/resources/ecr.py394 # see this for a more comprehensive listCOMMENT
LOWtests/test_cw_dashboard.py41 # filtering on the tag we just set exercises the read path - theseCOMMENT
Decorative Section Separators20 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUMtools/sandbox/c7n_autodoc/example_config_file.yml4 # ---------------COMMENT
MEDIUMtools/sandbox/c7n_autodoc/example_config_file.yml6 # ---------------COMMENT
MEDIUMtools/sandbox/c7n_autodoc/example_config_file.yml23 # ---------------COMMENT
MEDIUMtools/sandbox/c7n_autodoc/example_config_file.yml25 # ---------------COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py52# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py54# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py75# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py77# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py88# ==========================COMMENT
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py90# ==========================COMMENT
MEDIUM⚡…tch_prediction_job/model_artifact/create_test_model.py542# ==========================STRING
MEDIUM⚡…tch_prediction_job/model_artifact/create_test_model.py544# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py285# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py287# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py397# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py399# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py426# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py428# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py477# ==========================STRING
MEDIUM…tch_prediction_job/model_artifact/create_test_model.py479# ==========================STRING
Redundant / Tautological Comments20 hits · 31 pts
SeverityFileLineSnippetContext
LOWtools/c7n_azure/c7n_azure/query.py309 # Check if we're out of a policies execution limits.COMMENT
LOW…zure/c7n_azure/resources/entraid_conditional_access.py139 # Check if policy applies to admin roles and requires MFACOMMENT
LOW…zure/c7n_azure/resources/entraid_conditional_access.py147 # Check if admin roles are included and MFA is requiredCOMMENT
LOWtools/c7n_azure/c7n_azure/resources/entraid_user.py632 # Check if user has MFA methods configured using v1.0 APICOMMENT
LOWtools/c7n_azure/c7n_azure/resources/entraid_group.py213 # Check if user is a guestCOMMENT
LOWtools/c7n_azure/c7n_azure/resources/entraid_group.py217 # Check if user is external (from different domain)COMMENT
LOWtools/c7n_org/c7n_org/cli.py615 # Check if string contains variable placeholdersCOMMENT
LOWtools/c7n_org/c7n_org/cli.py865 # Check if deprecations should fail in strict modeCOMMENT
LOW…/tests/terraform/vertexai_batch_prediction_job/main.tf45# Output values for use in testsCOMMENT
LOW⚡…tch_prediction_job/model_artifact/create_test_model.py166 # Check if docker is availableCOMMENT
LOW…/c7n_gcp/tests/scripts/cleanup_vertex_ai_batch_jobs.py123 # Check if display name matches our test patternCOMMENT
LOWtools/c7n_gcp/c7n_gcp/resources/vertexai.py397 # Check if URI is a GCS pathCOMMENT
LOWc7n/query.py554 # Check if we're out of a policies execution limits.COMMENT
LOWc7n/cwe.py113 # Check if we have a short cut / aliasCOMMENT
LOWc7n/filters/iamaccess.py221 # Check if it's a wildcard or already whitelisted accountCOMMENT
LOWc7n/filters/iamrole.py225 # Check if all non-None role values are in the allowed listCOMMENT
LOWc7n/resources/vpc.py648 # Check if list contains 'amazon' synthetic valueCOMMENT
LOWc7n/resources/elasticsearch.py831 # Set it to something arbitrary here so the missing value doesn't fail validation.COMMENT
LOWc7n/resources/elasticache.py243 # Check if any available upgrades match this resource's engineCOMMENT
LOWc7n/resources/kafka.py193 # Check if it's a major version upgradeCOMMENT
Structural Annotation Overuse16 hits · 26 pts
SeverityFileLineSnippetContext
LOW⚡…azure/tests_azure/tests_resources/test_subscription.py120 # Step 1: Add a tagCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py145 # Step 2: Remove the tagCOMMENT
LOW⚡…azure/tests_azure/tests_resources/test_subscription.py175 # Step 1: Add multiple test tagsCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py202 # Step 2: Trim tags with space=0, preserving only cctest_preserveCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py218 # Step 3: Verify tags were trimmedCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py271 # Step 1: Mark the subscription for action (using default 4 days)COMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py295 # Step 2: Filter for marked subscriptionsCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1536 # Step 1: Stop the running jobCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1561 # Step 2: Wait for the stop action to take effect and verify cancellationCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1610 # Step 3: Delete the cancelled jobCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1639 # Step 4: Verify the job no longer existsCOMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md89### Step 1: Create the Model Storage BucketCOMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md105### Step 2: Create and Upload the Test ModelCOMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md191### Step 3: Set Environment Variables (Optional)COMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md209### Step 4: Generate Test Data if neededCOMMENT
LOW…erraform/vertexai_batch_prediction_job/vertex_batch.md232### Step 5: Run the Functional TestCOMMENT
Docstring Block Structure5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHtools/c7n_azure/c7n_azure/resolver.py15Resolve an azure:// URI to blob content. Args: uri: Azure blob URI in format azure://account.blob.core.windSTRING
HIGHtools/c7n_gcp/tests/test_vertexai.py312Get full model resource name for testing. Uses the model ID from environment variable and constructs the full rSTRING
HIGHtools/c7n_gcp/tests/test_vertexai.py353Poll a policy until resources reach expected state(s). Args: policy: Cloud Custodian policy to run STRING
HIGHtools/c7n_gcp/c7n_gcp/client.py489Executes query (ex. list) via a dedicated http object. Args: verb (str): Method to execute on the cSTRING
HIGHtools/c7n_gcp/c7n_gcp/resources/vertexai.py383Validate that a schema URI points to a valid YAML file. Args: schema_uri: GCS URI to schema file (eSTRING
Overly Generic Function Names22 hits · 22 pts
SeverityFileLineSnippetContext
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py94 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/object_storage.py129 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py83 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/dns.py117 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py79 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py115 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py202 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py235 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py320 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/virtual_network.py353 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py77 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py112 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py198 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py231 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py316 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/identity.py349 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py69 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py112 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py149 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py185 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py235 def perform_action(self, resource):CODE
LOWtools/c7n_oci/c7n_oci/actions/base.py58 def perform_action(self, resource):CODE
AI Structural Patterns21 hits · 21 pts
SeverityFileLineSnippetContext
LOWtools/c7n_kube/c7n_kube/server.py95CODE
LOWtools/c7n_salactus/c7n_salactus/cli.py457CODE
LOWtools/c7n_azure/c7n_azure/query.py130CODE
LOWtools/c7n_azure/c7n_azure/utils.py376CODE
LOWtools/c7n_azure/c7n_azure/filters.py1052CODE
LOWtools/c7n_azure/tests_azure/azure_common.py293CODE
LOWtools/sandbox/zerodark/zerodark/floweni.py400CODE
LOWtools/c7n_oci/tests/test_output.py292CODE
LOWtools/c7n_oci/tests/test_output.py312CODE
LOWtools/c7n_oci/c7n_oci/resources/compute.py155CODE
LOWtools/c7n_gcp/c7n_gcp/client.py330CODE
LOWtools/c7n_gcp/c7n_gcp/resources/dns.py155CODE
LOWtools/c7n_gcp/c7n_gcp/resources/spanner.py183CODE
LOWtools/c7n_gcp/c7n_gcp/resources/compute.py899CODE
LOWtools/c7n_left/c7n_left/cli.py211CODE
LOWtools/dev/data_updatearnref.py128CODE
LOWc7n/resolver.py107CODE
LOWc7n/output.py489CODE
LOWc7n/filters/offhours.py494CODE
LOWc7n/resources/elasticsearch.py987CODE
LOWc7n/resources/kinesis.py150CODE
Verbosity Indicators12 hits · 20 pts
SeverityFileLineSnippetContext
LOW⚡…azure/tests_azure/tests_resources/test_subscription.py120 # Step 1: Add a tagCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py145 # Step 2: Remove the tagCOMMENT
LOW⚡…azure/tests_azure/tests_resources/test_subscription.py175 # Step 1: Add multiple test tagsCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py202 # Step 2: Trim tags with space=0, preserving only cctest_preserveCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py218 # Step 3: Verify tags were trimmedCOMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py271 # Step 1: Mark the subscription for action (using default 4 days)COMMENT
LOW…azure/tests_azure/tests_resources/test_subscription.py295 # Step 2: Filter for marked subscriptionsCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1536 # Step 1: Stop the running jobCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1561 # Step 2: Wait for the stop action to take effect and verify cancellationCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1610 # Step 3: Delete the cancelled jobCOMMENT
LOWtools/c7n_gcp/tests/test_vertexai.py1639 # Step 4: Verify the job no longer existsCOMMENT
LOW…ols/c7n_tencentcloud/c7n_tencentcloud/resources/cam.py298 # we need to check if it satisfies the former filterCOMMENT
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMc7n/cwe.py9 # **These are just shortcuts**, you can use the policy definition toCOMMENT
MEDIUM…lient_certificate_filter/apigateway.GetRestApis_1.json9 "description": "This is my API for demonstration purposes",CODE
Modern AI Meta-Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMtools/c7n_gcp/c7n_gcp/resources/compute.py531 # client, which can't reach regional disks (used by event-drivenCOMMENT
Dead Code1 hit · 2 pts
SeverityFileLineSnippetContext
MEDIUMtools/c7n_sentry/c7n_sentry/c7nsentry.py421CODE
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWtools/c7n_mailer/c7n_mailer/replay.py31logger = logging.getLogger(__name__)CODE
LOWc7n/reports/__init__.py5__all__ = [report]CODE