Repository Analysis

aws/aws-cli

Universal Command Line Interface for Amazon Web Services

20.7 Moderate AI signal View on GitHub
20.7
Adjusted Score
20.7
Raw Score
100%
Time Factor
2026-05-29
Last Push
16,999
Stars
Python
Language
183,131
Lines of Code
3084
Files
3569
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 14MEDIUM 58LOW 3496

Pattern Findings

3569 matches across 14 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers2620 hits · 2637 pts
SeverityFileLineSnippet
LOWtests/__init__.py110 def assert_no_remaining_responses(self):
LOWtests/__init__.py136 def _return_queued_http_response(self, request, **kwargs):
LOWtests/__init__.py175 def _validate_parsed_response(self):
LOWtests/__init__.py187 def _reverse_serialize_parsed_response(self):
LOWtests/unit/test_errorhandler.py26 def test_error_handler_client_side(self):
LOWtests/unit/test_errorhandler.py58 def test_error_handler_server_side(self):
LOWtests/unit/test_paramfile.py55 def test_cannot_load_text_file(self):
LOWtests/unit/test_paramfile.py62 def test_file_does_not_exist_raises_error(self):
LOWtests/unit/test_paramfile.py66 def test_no_match_uris_returns_none(self):
LOWtests/unit/test_paramfile.py69 def test_non_string_type_returns_none(self):
LOWtests/unit/test_paramfile.py101 def test_connection_error_raises_error(self):
LOWtests/unit/test_paramfile.py122 def test_missing_config_value(self, mock_handler_cls):
LOWtests/unit/test_utils.py53 def test_mixing_double_single_quotes(self):
LOWtests/unit/test_utils.py57 def test_mixing_double_single_quotes_before_first_comma(self):
LOWtests/unit/test_utils.py61 def test_inner_quote_split_with_equals(self):
LOWtests/unit/test_utils.py65 def test_single_quoted_inner_value_with_no_commas(self):
LOWtests/unit/test_utils.py268 def test_is_not_document_type_if_missing_document_trait(self):
LOWtests/unit/test_utils.py277 def test_is_not_document_type_if_not_structure(self):
LOWtests/unit/test_utils.py283 def test_is_document_type_container_for_doc_type(self):
LOWtests/unit/test_utils.py289 def test_is_not_document_type_container_if_missing_document_trait(self):
LOWtests/unit/test_utils.py298 def test_is_not_document_type_container_if_not_scalar(self):
LOWtests/unit/test_utils.py303 def test_is_document_type_container_if_list_member(self):
LOWtests/unit/test_utils.py313 def test_is_document_type_container_if_map_value(self):
LOWtests/unit/test_utils.py368 def test_operation_uses_document_types_if_doc_type_in_input(self):
LOWtests/unit/test_utils.py374 def test_operation_uses_document_types_if_doc_type_in_output(self):
LOWtests/unit/test_utils.py380 def test_operation_uses_document_types_is_false_when_no_doc_types(self):
LOWtests/unit/test_utils.py451 def test_blob_is_not_streaming(self, argument_model):
LOWtests/unit/test_utils.py456 def test_non_blob_is_not_streaming(self, argument_model):
LOWtests/unit/test_utils.py464 def test_shape_is_tagged_union(self, argument_model):
LOWtests/unit/test_utils.py468 def test_shape_is_not_tagged_union(self, argument_model):
LOWtests/unit/test_utils.py87 def test_quoted_square_brackets(self):
LOWtests/unit/test_utils.py103 def test_end_bracket_in_value(self):
LOWtests/unit/test_utils.py120 def test_finds_service_and_operation_name(self):
LOWtests/unit/test_utils.py126 def test_returns_none_if_event_is_too_short(self):
LOWtests/unit/test_utils.py153 def test_env_var_non_true_value(self):
LOWtests/unit/test_utils.py191 def test_env_configured_pager(self, mock_get_popen_pager):
LOWtests/unit/test_utils.py219 def test_exit_of_context_manager_for_pager(self):
LOWtests/unit/test_utils.py230 def test_can_silence_io_error_from_pager(self):
LOWtests/unit/test_utils.py255 def get_doc_type_shape_definition(self):
LOWtests/unit/test_utils.py325 def test_is_document_type_container_if_nested_list_member(self):
LOWtests/unit/test_utils.py433 def test_can_escape_recursive_shapes(self):
LOWtests/unit/test_changelog.py26def test_next_release_json_is_well_formed(json_path):
LOWtests/unit/test_decorators.py22 def test_bare_requires_crt_fails_immediately(self):
LOWtests/unit/test_decorators.py29 def test_requires_crt_skips_when_no_crt(self):
LOWtests/unit/test_decorators.py38 def test_requires_crt_runs_when_crt_available(self):
LOWtests/unit/test_plugin.py50 def test_event_hooks_can_be_passed_in(self):
LOWtests/unit/test_table.py31 def test_add_row_tracks_max_widths(self):
LOWtests/unit/test_table.py43 def test_add_row_also_tracks_header(self):
LOWtests/unit/test_table.py55 def test_max_width_with_scaling_perfect_scaling(self):
LOWtests/unit/test_table.py62 def test_max_width_scaling_one_unit_short(self):
LOWtests/unit/test_table.py68 def test_width_with_full_width_characters(self):
LOWtests/unit/test_table.py72 def test_max_width_scaling_is_negative(self):
LOWtests/unit/test_table.py77 def test_allow_sections_to_be_padded(self):
LOWtests/unit/test_table.py84 def test_title_accounts_for_outer_padding(self):
LOWtests/unit/test_table.py103 def test_max_width_calculation(self):
LOWtests/unit/test_table.py116 def test_convert_section_to_vertical(self):
LOWtests/unit/test_topictags.py71 def test_get_all_topic_source_files(self):
LOWtests/unit/test_topictags.py84 def test_get_all_topic_source_files_ignore_index(self):
LOWtests/unit/test_topictags.py98 def test_get_all_topic_source_files_ignore_hidden(self):
LOWtests/unit/test_topictags.py111 def test_get_tag_value_all_tags(self):
2560 more matches not shown…
Over-Commented Block600 hits · 584 pts
SeverityFileLineSnippet
LOWbin/aws_zsh_completer.sh1# Source this file to activate auto completion for zsh using the bash
LOWtests/__init__.py181 serialized = self._reverse_serialize_parsed_response()
LOWtests/unit/test_errorhandler.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_paramfile.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_utils.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_decorators.py1# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_plugin.py1# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_table.py1# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
LOWtests/unit/test_argparser.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_topictags.py1# Copyright (c) 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved
LOWtests/unit/test_schema.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_argprocess.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_clidriver.py1# -*- coding: utf-8 -*-
LOWtests/unit/test_text.py1# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
LOWtests/unit/test_shorthand.py1# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_alias.py1# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_compat.py1# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_completer.py1# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_clidocs.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_help.py1# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_testutils.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/test_arguments.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_flatten.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_utils.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_cliinputjson.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_paginate.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_s3errormsg.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_generatecliskeleton.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_dynamodb.py1# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/__init__.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_overridesslcommonname.py1# Copyright 2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_cloudwatch.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_cloudsearchdomain.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_commands.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_assumerole.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_s3uploader.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_globalargs.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_argrename.py1# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_scalarparse.py1# Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_codecommit.py1# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_waiters.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_sessionmanager.py1# Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/test_arguments.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/emrcontainers/test_base36.py1# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/emrcontainers/__init__.py1# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOW…ations/emrcontainers/test_update_assume_role_policy.py1# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOW…ns/servicecatalog/test_generateprovisioningartifact.py1# Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/servicecatalog/test_utils.py1# Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/servicecatalog/__init__.py1# Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOW…ts/unit/customizations/servicecatalog/test_generate.py1# Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOW…/customizations/servicecatalog/test_generateproduct.py1# Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/test_utils.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/test_results.py1# Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/test_transferconfig.py1# Copyright 2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/test_subcommands.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/test_filegenerator.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/test_s3handler.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/test_fileinfobuilder.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/__init__.py1# Copyright 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
LOWtests/unit/customizations/s3/test_fileinfo.py1# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
540 more matches not shown…
Self-Referential Comments50 hits · 169 pts
SeverityFileLineSnippet
MEDIUMtests/unit/test_topictags.py243 # Create a JSON index to be loaded.
MEDIUMtests/unit/test_clidocs.py177 # Create an arbitrary help command class. This was chosen
MEDIUMtests/unit/test_help.py232 # Create a temporary index file for ``aws help [command]`` to use.
MEDIUMtests/unit/customizations/test_flatten.py190 # Create the flattened argument table
MEDIUMtests/unit/customizations/test_cliinputjson.py27 # Create the various forms the data could come in. The two main forms
MEDIUMtests/unit/customizations/test_cliinputjson.py70 # Create a bad JSON input
MEDIUMtests/unit/customizations/test_generatecliskeleton.py24 # Create a mock service operation object
MEDIUMtests/unit/customizations/s3/test_filegenerator.py299 # Create a symlink to a file that does not exist.
MEDIUMtests/unit/customizations/s3/test_filegenerator.py303 # Create a symlink to directory realfiles
MEDIUM…ts/unit/customizations/configservice/test_getstatus.py305 # Create the configuration recorder statuses.
MEDIUM…ts/unit/customizations/configservice/test_getstatus.py318 # Create the delivery channel statuses.
MEDIUMtests/unit/customizations/configure/test_configure.py224 # Create a mock stdout to record flush calls and replace stdout_patch
MEDIUMtests/unit/customizations/cloudtrail/test_validation.py638 # Create a key that looks similar but for a different trail.
MEDIUMtests/unit/customizations/cloudtrail/test_validation.py640 # Create a key that looks similar but is from a different trail source
MEDIUM…sts/unit/customizations/cloudformation/test_package.py69 # Create a temporary file and make this my template
MEDIUM…sts/unit/customizations/cloudformation/test_package.py93 # Create a temporary file and make this my template
MEDIUMtests/integration/test_assume_role.py163 # Create the final role, the one that will actually have access to s3
MEDIUMtests/integration/test_assume_role.py166 # Create the role that can assume the final role
MEDIUMtests/integration/test_assume_role.py170 # Create a user that can only assume the middle-man role, and then get
MEDIUMtests/integration/test_assume_role.py216 # Create a role with read access to S3
MEDIUMtests/integration/test_assume_role.py219 # Create a user that can assume the role and get static credentials
MEDIUMtests/integration/customizations/test_waiters.py28 # Create a table.
MEDIUMtests/integration/customizations/s3/test_plugin.py1100 # Create a symlink to foo.txt.
MEDIUMtests/integration/customizations/s3/test_plugin.py1103 # Create a bad symlink.
MEDIUMtests/integration/customizations/s3/test_plugin.py1106 # Create a symlink to directory where foo.txt is.
MEDIUMtests/integration/customizations/s3/test_plugin.py1438 # Create a prefix that will cause the second created file to have a key
MEDIUMtests/integration/customizations/s3/test_plugin.py733 # Create a file with a space char and a '+' char in the filename.
MEDIUMtests/integration/customizations/s3/test_plugin.py1560 # Create a 200 MB file that will be streamed
MEDIUMtests/functional/docs/test_examples.py302 # Create the service parser
MEDIUMawscli/help.py295 # Create an event handler for a Provider Document
MEDIUMawscli/customizations/s3events.py107 # This method is hooked into after-call which fires
MEDIUMawscli/customizations/waiters.py109 # Create the cli name for the waiter operation
MEDIUMawscli/customizations/waiters.py116 # Create an operation object to make a command for the waiter. The
MEDIUMawscli/customizations/commands.py354 # Create an event handler for a Provider Document
MEDIUMawscli/customizations/s3/results.py489 # Create the display statement.
MEDIUMawscli/customizations/s3/filegenerator.py71# This class is provided primarily to provide a detailed error message.
MEDIUMawscli/customizations/emr/createdefaultroles.py304 # Creating an Instance Profile
MEDIUMawscli/customizations/configservice/subscribe.py78 # Create a configuration recorder.
MEDIUMawscli/customizations/configservice/subscribe.py86 # Create a delivery channel.
MEDIUMawscli/customizations/configservice/subscribe.py167 # Create the topic if a name is given.
MEDIUMawscli/customizations/configure/writer.py124 # Create the file as well as the parent dir if needed.
MEDIUMawscli/customizations/gamelift/uploadbuild.py75 # Create a build based on the operating system given.
MEDIUMawscli/customizations/gamelift/uploadbuild.py96 # Create the S3 Client for uploading the build based on the
MEDIUMawscli/customizations/cloudtrail/validation.py332 # Create a target start end end date
MEDIUMawscli/customizations/cloudtrail/validation.py1126 # Create a client that can work with this bucket.
MEDIUMawscli/customizations/history/list.py63 """This class is just to read one ahead to make sure there are records
MEDIUM…scli/customizations/datapipeline/createdefaultroles.py96 # Create a create using the IAM Client with a particular triplet
MEDIUM…scli/customizations/datapipeline/createdefaultroles.py170 # Create a role using IAM client CreateRole API
MEDIUM…scli/customizations/datapipeline/createdefaultroles.py175 # Create a role using IAM client AttachRolePolicy API
MEDIUMdoc/source/conf.py6# This file is execfile()d with the current directory set to its containing dir.
Unused Imports152 hits · 146 pts
SeverityFileLineSnippet
LOWsetup.py77
LOWtests/unit/test_utils.py14
LOWtests/unit/test_topictags.py24
LOWtests/unit/test_argprocess.py23
LOWtests/unit/test_argprocess.py29
LOWtests/unit/test_clidriver.py19
LOWtests/unit/test_text.py22
LOWtests/unit/test_help.py15
LOWtests/unit/test_arguments.py16
LOWtests/unit/test_arguments.py16
LOWtests/unit/customizations/test_flatten.py16
LOWtests/unit/customizations/test_cloudwatch.py15
LOWtests/unit/customizations/test_codecommit.py14
LOWtests/unit/customizations/test_codecommit.py17
LOWtests/unit/customizations/test_codecommit.py24
LOWtests/unit/customizations/test_codecommit.py25
LOWtests/unit/customizations/s3/test_filegenerator.py14
LOWtests/unit/customizations/s3/test_filegenerator.py24
LOWtests/unit/customizations/s3/test_fileinfobuilder.py13
LOWtests/unit/customizations/s3/test_fileinfobuilder.py16
LOWtests/unit/customizations/s3/test_copy_params.py16
LOWtests/unit/customizations/s3/test_copy_params.py17
LOWtests/unit/customizations/s3/test_copy_params.py22
LOW…ts/unit/customizations/emr/test_add_instance_groups.py16
LOWtests/unit/customizations/emr/test_list_clusters.py16
LOWtests/unit/customizations/emr/test_list_clusters.py17
LOWtests/unit/customizations/emr/__init__.py15
LOWtests/unit/customizations/emr/__init__.py16
LOWtests/unit/customizations/ecs/test_ecsclient.py15
LOWtests/unit/customizations/ecs/test_ecsclient.py16
LOWtests/unit/customizations/eks/test_update_kubeconfig.py16
LOWtests/unit/customizations/eks/test_update_kubeconfig.py17
LOWtests/unit/customizations/eks/test_update_kubeconfig.py18
LOWtests/unit/customizations/eks/test_update_kubeconfig.py25
LOWtests/unit/customizations/eks/test_update_kubeconfig.py26
LOWtests/unit/customizations/eks/test_update_kubeconfig.py30
LOWtests/unit/customizations/eks/test_get_token.py14
LOWtests/unit/customizations/eks/test_get_token.py16
LOWtests/unit/customizations/eks/test_get_token.py19
LOWtests/unit/customizations/eks/test_kubeconfig.py20
LOWtests/unit/customizations/eks/test_kubeconfig.py21
LOWtests/unit/customizations/eks/test_kubeconfig.py22
LOWtests/unit/customizations/eks/test_kubeconfig.py22
LOWtests/unit/customizations/eks/test_kubeconfig.py32
LOWtests/unit/customizations/codedeploy/test_utils.py14
LOWtests/unit/customizations/codedeploy/test_uninstall.py14
LOWtests/unit/customizations/codedeploy/test_install.py14
LOWtests/unit/customizations/codedeploy/test_install.py18
LOW…sts/unit/customizations/cloudformation/test_package.py13
LOW…sts/unit/customizations/cloudformation/test_package.py14
LOW…sts/unit/customizations/cloudformation/test_package.py17
LOW…sts/unit/customizations/cloudformation/test_package.py18
LOW…sts/unit/customizations/cloudformation/test_package.py20
LOW…sts/unit/customizations/cloudformation/test_package.py21
LOW…ustomizations/cloudformation/test_artifact_exporter.py1
LOW…ustomizations/cloudformation/test_artifact_exporter.py11
LOW…ustomizations/cloudformation/test_artifact_exporter.py14
LOWtests/unit/customizations/cloudformation/test_deploy.py19
LOW…/unit/customizations/cloudformation/test_yamlhelper.py13
LOW…/unit/customizations/cloudformation/test_yamlhelper.py15
92 more matches not shown…
Deep Nesting51 hits · 51 pts
SeverityFileLineSnippet
LOWtests/unit/customizations/emr/test_describe_cluster.py448
LOWtests/unit/customizations/emr/test_describe_cluster.py458
LOW…integration/customizations/test_generatecliskeleton.py73
LOWtests/functional/test_no_event_streams.py26
LOWawscli/shorthand.py478
LOWawscli/formatter.py134
LOWawscli/formatter.py230
LOWawscli/compat.py214
LOWawscli/compat.py277
LOWawscli/compat.py378
LOWawscli/compat.py498
LOWawscli/testutils.py430
LOWawscli/argprocess.py100
LOWawscli/argprocess.py188
LOWawscli/argprocess.py220
LOWawscli/utils.py42
LOWawscli/table.py398
LOWawscli/clidocs.py486
LOWawscli/clidocs.py525
LOWawscli/topictags.py239
LOWawscli/argparser.py99
LOWawscli/customizations/flatten.py46
LOWawscli/customizations/flatten.py206
LOWawscli/customizations/commands.py384
LOWawscli/customizations/s3/comparator.py32
LOWawscli/customizations/s3/subcommands.py1096
LOWawscli/customizations/s3/filegenerator.py166
LOWawscli/customizations/s3/filegenerator.py310
LOWawscli/customizations/s3/s3handler.py109
LOWawscli/customizations/s3/s3handler.py161
LOWawscli/customizations/s3/transferconfig.py80
LOWawscli/customizations/s3/fileinfo.py67
LOWawscli/customizations/emr/applicationutils.py19
LOWawscli/customizations/emr/createcluster.py239
LOWawscli/customizations/emr/createcluster.py827
LOWawscli/customizations/emr/emrfsutils.py76
LOWawscli/customizations/emr/steputils.py17
LOWawscli/customizations/configure/writer.py167
LOWawscli/customizations/configure/set.py53
LOWawscli/customizations/gamelift/uploadbuild.py133
LOWawscli/customizations/cloudtrail/validation.py604
LOWawscli/customizations/eks/kubeconfig.py116
LOWawscli/customizations/codedeploy/push.py183
LOWawscli/customizations/history/show.py272
LOW…cli/customizations/cloudformation/artifact_exporter.py182
LOW…cli/customizations/cloudformation/artifact_exporter.py607
LOWawscli/customizations/datapipeline/__init__.py292
LOWawscli/customizations/ec2/secgroupsimplify.py160
LOWawscli/customizations/ec2/protocolarg.py20
LOWawscli/bcdoc/textwriter.py409
LOWscripts/performance/benchmark_utils.py148
Excessive Try-Catch Wrapping45 hits · 50 pts
SeverityFileLineSnippet
LOWtests/unit/test_errorhandler.py52 except Exception as e:
LOWtests/unit/test_errorhandler.py84 except Exception as e:
LOWtests/unit/customizations/s3/test_utils.py1002 except Exception as e:
LOWtests/integration/customizations/s3/test_plugin.py80 except Exception as e:
LOWtests/integration/customizations/s3/test_plugin.py110 except Exception as e:
LOWtests/integration/customizations/s3/test_plugin.py130 except Exception as e:
LOWtests/functional/docs/test_examples.py276 except Exception as e:
LOWtests/functional/docs/test_examples.py345 except Exception as e:
LOWawscli/clidriver.py259 except Exception as e:
LOWawscli/utils.py232 except Exception:
MEDIUMawscli/utils.py42def _split_with_quotes(value):
LOWawscli/paramfile.py265 except Exception as e:
MEDIUMawscli/paramfile.py255def get_uri(prefix, uri):
LOWawscli/table.py55 except Exception:
LOWawscli/customizations/globalargs.py60 except Exception as e:
MEDIUMawscli/customizations/globalargs.py57def _resolve_query(value):
LOWawscli/customizations/s3/results.py614 except Exception as e:
LOWawscli/customizations/s3/subcommands.py930 except Exception as e:
LOWawscli/customizations/s3/subcommands.py974 except Exception as e:
LOWawscli/customizations/s3/utils.py706 except Exception as e:
LOWawscli/customizations/s3/utils.py741 except Exception as e:
LOWawscli/customizations/s3/utils.py820 except Exception as e:
MEDIUMawscli/customizations/s3/utils.py738def _on_success(self, future):
LOWawscli/customizations/s3/s3handler.py563 except Exception as e:
LOWawscli/customizations/cloudtrail/subscribe.py137 except Exception:
LOWawscli/customizations/cloudtrail/subscribe.py151 except Exception:
LOWawscli/customizations/cloudtrail/subscribe.py177 except Exception as e:
LOWawscli/customizations/cloudtrail/subscribe.py249 except Exception:
LOWawscli/customizations/cloudtrail/subscribe.py286 except Exception:
MEDIUMawscli/customizations/cloudtrail/subscribe.py171def _get_policy(self, key_name):
LOWawscli/customizations/cloudtrail/validation.py676 except Exception as e:
LOWawscli/customizations/cloudtrail/validation.py1154 except Exception:
LOWawscli/customizations/logs/startlivetail.py214 except Exception as e:
MEDIUMawscli/customizations/logs/startlivetail.py158def run(self):
LOWawscli/customizations/codedeploy/register.py110 except Exception as e:
LOWawscli/customizations/codedeploy/uninstall.py40 except Exception as e:
LOWawscli/customizations/codedeploy/deregister.py79 except Exception as e:
LOWawscli/customizations/codedeploy/install.py73 except Exception as e:
LOWawscli/customizations/codedeploy/push.py148 except Exception as e:
LOWawscli/customizations/history/__init__.py62 except Exception as e:
LOWawscli/customizations/codeartifact/login.py610 except Exception as e: # invalid .pypirc file
LOWawscli/customizations/cloudformation/deployer.py142 except Exception as ex:
LOW…cli/customizations/cloudformation/artifact_exporter.py258 except Exception as ex:
LOWawscli/customizations/ec2/decryptpassword.py117 except Exception:
LOWawscli/bcdoc/restdoc.py112 except Exception:
Cross-Language Confusion7 hits · 48 pts
SeverityFileLineSnippet
HIGH…ustomizations/cloudformation/test_artifact_exporter.py1330 'exports handler = (event, context, callback) => {callback(null, event);}')
HIGHtests/functional/test_document_types.py159 '["foo", {"bar": "baz"}, 1, null]'
HIGHtests/functional/test_document_types.py204 ' "ListOfDocTypes": ["foo", {"bar": "baz"}, 1, null],'
HIGHtests/functional/test_document_types.py207 ' "NestedListsOfDocTypes":[["foo", {"bar": "baz"}, 1, null]]'
HIGHtests/functional/test_document_types.py268 '--nested-lists-of-doc-types-param', '[bar,1,null],[foo,2]',
HIGHtests/functional/test_document_types.py186 '[["foo", {"bar": "baz"}, 1, null]]'
HIGHawscli/clidocs.py450 'strings, numbers, booleans, null, arrays, and objects. For '
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippet
HIGH…unit/customizations/codeartifact/test_adapter_login.py0\ registered sources: 1. source name 1 [enabled] https://source1.com/index.json 2. ab[.d7 $#!], [disabled] https://sourc
HIGH…unit/customizations/codeartifact/test_adapter_login.py0\ registered sources: 1. source name 1 [enabled] https://source1.com/index.json 2. ab[.d7 $#!], [disabled] https://sourc
HIGH…unit/customizations/codeartifact/test_adapter_login.py0\ registered sources: 1. source name 1 [enabled] https://source1.com/index.json 2. ab[.d7 $#!], [disabled] https://sourc
HIGH…ts/unit/customizations/datapipeline/test_translator.py0{"objects": [ { "id" : "s3tos3copy", "type" : "copyactivity", "schedule" : { "ref" : "copyperiod" }, "input" : { "ref" :
HIGH…ts/unit/customizations/datapipeline/test_translator.py0{"objects": [ { "id" : "s3tos3copy", "type" : "copyactivity", "schedule" : { "ref" : "copyperiod" }, "input" : { "ref" :
HIGH…ts/unit/customizations/datapipeline/test_translator.py0{"objects": [ { "id" : "s3tos3copy", "type" : "copyactivity", "schedule" : { "ref" : "copyperiod" }, "input" : { "ref" :
Redundant / Tautological Comments18 hits · 28 pts
SeverityFileLineSnippet
LOW…ations/emrcontainers/test_update_assume_role_policy.py94 # Check if UpdateAssumeRolePolicy was invoked
LOWtests/unit/customizations/s3/test_subcommands.py387 # Check if no plugins return their sync strategy. Should
LOWtests/unit/customizations/gamelift/test_uploadbuild.py73 # Output values
LOW…ustomizations/cloudformation/test_artifact_exporter.py1318 # Set parent_dir to be a non-existent folder
LOW…ustomizations/cloudformation/test_artifact_exporter.py1322 # Set parent_dir to be a real folder, but just a relative path
LOWawscli/topictags.py212 # Check if the topic is in the topic tag dictionary
LOWawscli/customizations/sessionmanager.py129 # Check if this plugin supports passing the start session response
LOWawscli/customizations/s3uploader.py101 # Check if a file with same data exists
LOWawscli/customizations/s3uploader.py186 # Read file in chunks of 4096 bytes
LOWawscli/customizations/waiters.py27 # Check if the command object passed in has a ``service_object``. We
LOWawscli/customizations/cliinputjson.py61 # Check if ``--cli-input-json`` was specified in the command line.
LOWawscli/customizations/s3/syncstrategy/base.py163 # Check if a ``dest`` was specified in ``ARGUMENT`` as if it is
LOWawscli/customizations/configure/addmodel.py33 # Check if the endpoint prefix is a pre-existing service.
LOWawscli/customizations/configure/get.py93 # Check if varname starts with 'default' profile (e.g.
LOWawscli/customizations/dlm/createdefaultrole.py39# Display the result as formatted json
LOWawscli/customizations/codeartifact/login.py364 # Check if the CodeArtifact URL is already present in the
LOW…scli/customizations/datapipeline/createdefaultroles.py90 # Check if the role with the name exists
LOW…scli/customizations/datapipeline/createdefaultroles.py136 # Check if the default EC2 Instance Profile for DataPipeline exists.
AI Slop Vocabulary10 hits · 16 pts
SeverityFileLineSnippet
LOWtests/unit/test_clidriver.py260 # We just return success. If this code is reached, it means that
LOWtests/unit/test_clidriver.py387 # commands, we just call the create_help_command methods.
LOWtests/unit/customizations/s3/test_transferconfig.py27 # we should just use the default values defined in
LOWtests/integration/customizations/s3/test_plugin.py868 # therefore do nothing. We can just use --dryrun to show the issue.
LOWtests/functional/docs/test_examples.py118 # CLIDriver can take up a lot of resources so we'll just create one
MEDIUMtests/functional/cloudtrail/test_validation.py846 """This test class is necessary in order to override the default patching
LOWawscli/utils.py31 # No quotes or escaping, just use a simple split.
LOWawscli/paramfile.py155 # on a ProfileNotFound the CLI should just use 'none'.
LOWawscli/customizations/scalarparse.py73 # on a ProfileNotFound the CLI should just use 'wire'.
MEDIUMawscli/customizations/scalarparse.py85 # response, we utilize a reference to a nonlocal variable to track
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALtests/unit/customizations/s3/test_utils.py550 self.client.get_paginator.return_value.paginate.assert_called_with(
Fake / Example Data7 hits · 10 pts
SeverityFileLineSnippet
LOWtests/functional/ses/test_send_email.py26 'Source': 'foo@bar.com',
LOWtests/functional/ses/test_send_email.py36 result = {'Source': 'foo@bar.com',
LOWtests/functional/ses/test_send_email.py50 result = {'Source': 'foo@bar.com',
LOWtests/functional/ses/test_send_email.py68 'Source': 'foo@bar.com',
LOWtests/functional/ses/test_send_email.py83 'Source': 'foo@bar.com',
LOWtests/functional/ses/test_send_email.py97 'Source': 'foo@bar.com',
LOWtests/functional/ses/test_send_email.py118 'Source': 'foo@bar.com'}
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippet
HIGHCONTRIBUTING.md120 Items reviewed in this way must include a statement like "generated by AI
Verbosity Indicators1 hit · 0 pts
SeverityFileLineSnippet
LOWawscli/customizations/s3/filegenerator.py241 The purpose of this function is to ensure that the same path separator