aws-samples / amazon-codeguru-reviewer-python-detectors
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 72 files with 1,030 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 0 medium size files (0 lines of codeclsfd_ftr_w_mp_ins)
    • 0 small files (0 lines of code)
    • 72 very small files (1,030 lines of code)
0% | 0% | 0% | 0% | 100%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
aws_polling_instead_of_waiter0% | 0% | 0% | 0% | 100%
mutually_exclusive_calls_found0% | 0% | 0% | 0% | 100%
multiprocessing_garbage_collection_prevention0% | 0% | 0% | 0% | 100%
sns_unauthenticated_unsubscribe0% | 0% | 0% | 0% | 100%
missing_pagination0% | 0% | 0% | 0% | 100%
not_recommended_apis0% | 0% | 0% | 0% | 100%
incorrect_usage_of_process_terminate_api0% | 0% | 0% | 0% | 100%
improper_certificate_validation0% | 0% | 0% | 0% | 100%
ldap_injection0% | 0% | 0% | 0% | 100%
semaphore_overflow_prevention0% | 0% | 0% | 0% | 100%
sns_no_bind_subscribe_publish_rule0% | 0% | 0% | 0% | 100%
xpath_injection0% | 0% | 0% | 0% | 100%
aws_logged_credentials0% | 0% | 0% | 0% | 100%
aws_kms_reencryption0% | 0% | 0% | 0% | 100%
leaky_subprocess_timeout0% | 0% | 0% | 0% | 100%
sql_injection0% | 0% | 0% | 0% | 100%
catch_and_rethrow_exception0% | 0% | 0% | 0% | 100%
unrestricted_file_upload0% | 0% | 0% | 0% | 100%
s3_verify_bucket_owner0% | 0% | 0% | 0% | 100%
improper_error_handling0% | 0% | 0% | 0% | 100%
os_command_injection0% | 0% | 0% | 0% | 100%
socket_close_platform_compatibility0% | 0% | 0% | 0% | 100%
sns_set_return_subscription_arn0% | 0% | 0% | 0% | 100%
resource_leak0% | 0% | 0% | 0% | 100%
untrusted_ami_images0% | 0% | 0% | 0% | 100%
code_readability0% | 0% | 0% | 0% | 100%
aws_unchecked_batch_failures0% | 0% | 0% | 0% | 100%
missing_none_check0% | 0% | 0% | 0% | 100%
use_of_inefficient_api0% | 0% | 0% | 0% | 100%
string_concatenation0% | 0% | 0% | 0% | 100%
socket_connection_timeout0% | 0% | 0% | 0% | 100%
cross_site_scripting0% | 0% | 0% | 0% | 100%
improper_input_validation0% | 0% | 0% | 0% | 100%
code_injection0% | 0% | 0% | 0% | 100%
dict_get_method0% | 0% | 0% | 0% | 100%
insecure_cookie0% | 0% | 0% | 0% | 100%
hashlib_constructor0% | 0% | 0% | 0% | 100%
swallow_exceptions0% | 0% | 0% | 0% | 100%
ldap_authentication0% | 0% | 0% | 0% | 100%
path_traversal0% | 0% | 0% | 0% | 100%
clear_text_credentials0% | 0% | 0% | 0% | 100%
insecure_temp_file0% | 0% | 0% | 0% | 100%
insecure_hashing0% | 0% | 0% | 0% | 100%
insecure_cors_policy0% | 0% | 0% | 0% | 100%
multiprocessing_deadlock_prevention0% | 0% | 0% | 0% | 100%
iterating_sequence_modification0% | 0% | 0% | 0% | 100%
insecure_cryptography0% | 0% | 0% | 0% | 100%
cross_site_request_forgery0% | 0% | 0% | 0% | 100%
unnecessary_iteration0% | 0% | 0% | 0% | 100%
hardcoded_credentials0% | 0% | 0% | 0% | 100%
weak_obfuscation_of_request0% | 0% | 0% | 0% | 100%
log_injection0% | 0% | 0% | 0% | 100%
subprocess_correct_api0% | 0% | 0% | 0% | 100%
equality_vs_identity0% | 0% | 0% | 0% | 100%
xml_external_entity0% | 0% | 0% | 0% | 100%
object_dict_modification0% | 0% | 0% | 0% | 100%
loose_file_permissions0% | 0% | 0% | 0% | 100%
lambda_client_reuse0% | 0% | 0% | 0% | 100%
improper_privilege_management0% | 0% | 0% | 0% | 100%
default_argument_mutable_objects0% | 0% | 0% | 0% | 100%
lambda_override_reserved0% | 0% | 0% | 0% | 100%
insecure_connection0% | 0% | 0% | 0% | 100%
naive_datatime_time_zone_issues0% | 0% | 0% | 0% | 100%
deprecated_method0% | 0% | 0% | 0% | 100%
dangerous_global_variables0% | 0% | 0% | 0% | 100%
bad_exception_handling_practices0% | 0% | 0% | 0% | 100%
pep8_recommendations0% | 0% | 0% | 0% | 100%
multidimension_list_using_replication0% | 0% | 0% | 0% | 100%
multiple_values_in_return0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
aws_polling_instead_of_waiter.py
in src/python/detectors/aws_polling_instead_of_waiter
45 2
mutually_exclusive_calls_found.py
in src/python/detectors/mutually_exclusive_calls_found
42 2
multiprocessing_garbage_collection_prevention.py
in src/python/detectors/multiprocessing_garbage_collection_prevention
35 4
sns_unauthenticated_unsubscribe.py
in src/python/detectors/sns_unauthenticated_unsubscribe
32 2
missing_pagination.py
in src/python/detectors/missing_pagination
31 2
incorrect_usage_of_process_terminate_api.py
in src/python/detectors/incorrect_usage_of_process_terminate_api
28 4
improper_certificate_validation.py
in src/python/detectors/improper_certificate_validation
26 2
ldap_injection.py
in src/python/detectors/ldap_injection
25 2
semaphore_overflow_prevention.py
in src/python/detectors/semaphore_overflow_prevention
24 2
sns_no_bind_subscribe_publish_rule.py
in src/python/detectors/sns_no_bind_subscribe_publish_rule
23 2
xpath_injection.py
in src/python/detectors/xpath_injection
23 2
aws_logged_credentials.py
in src/python/detectors/aws_logged_credentials
21 2
aws_kms_reencryption.py
in src/python/detectors/aws_kms_reencryption
21 2
leaky_subprocess_timeout.py
in src/python/detectors/leaky_subprocess_timeout
21 2
sql_injection.py
in src/python/detectors/sql_injection
20 2
catch_and_rethrow_exception.py
in src/python/detectors/catch_and_rethrow_exception
19 2
unrestricted_file_upload.py
in src/python/detectors/unrestricted_file_upload
19 2
s3_verify_bucket_owner.py
in src/python/detectors/s3_verify_bucket_owner
19 2
improper_error_handling.py
in src/python/detectors/improper_error_handling
19 3
os_command_injection.py
in src/python/detectors/os_command_injection
17 2
socket_close_platform_compatibility.py
in src/python/detectors/socket_close_platform_compatibility
17 2
sns_set_return_subscription_arn.py
in src/python/detectors/sns_set_return_subscription_arn
16 2
not_recommended_apis_compliant.py
in src/python/detectors/not_recommended_apis
16 5
resource_leak.py
in src/python/detectors/resource_leak
16 2
untrusted_ami_images.py
in src/python/detectors/untrusted_ami_images
16 2
not_recommended_apis_noncompliant.py
in src/python/detectors/not_recommended_apis
15 5
code_readability.py
in src/python/detectors/code_readability
15 2
aws_unchecked_batch_failures.py
in src/python/detectors/aws_unchecked_batch_failures
15 2
missing_none_check.py
in src/python/detectors/missing_none_check
14 2
use_of_inefficient_api.py
in src/python/detectors/use_of_inefficient_api
14 2
string_concatenation.py
in src/python/detectors/string_concatenation
14 2
socket_connection_timeout.py
in src/python/detectors/socket_connection_timeout
14 2
cross_site_scripting.py
in src/python/detectors/cross_site_scripting
12 2
improper_input_validation.py
in src/python/detectors/improper_input_validation
12 2
code_injection.py
in src/python/detectors/code_injection
12 2
dict_get_method.py
in src/python/detectors/dict_get_method
12 2
insecure_cookie.py
in src/python/detectors/insecure_cookie
12 2
hashlib_constructor.py
in src/python/detectors/hashlib_constructor
12 2
swallow_exceptions.py
in src/python/detectors/swallow_exceptions
12 2
ldap_authentication.py
in src/python/detectors/ldap_authentication
12 2
path_traversal.py
in src/python/detectors/path_traversal
11 2
insecure_temp_file.py
in src/python/detectors/insecure_temp_file
11 2
insecure_hashing.py
in src/python/detectors/insecure_hashing
10 2
multiprocessing_deadlock_prevention.py
in src/python/detectors/multiprocessing_deadlock_prevention
10 2
iterating_sequence_modification.py
in src/python/detectors/iterating_sequence_modification
10 2
insecure_cryptography.py
in src/python/detectors/insecure_cryptography
10 2
cross_site_request_forgery.py
in src/python/detectors/cross_site_request_forgery
10 2
unnecessary_iteration.py
in src/python/detectors/unnecessary_iteration
9 2
hardcoded_credentials.py
in src/python/detectors/hardcoded_credentials
9 2
weak_obfuscation_of_request.py
in src/python/detectors/weak_obfuscation_of_request
9 1
Files With Most Units (Top 20)
File# lines# units
not_recommended_apis_compliant.py
in src/python/detectors/not_recommended_apis
16 5
not_recommended_apis_noncompliant.py
in src/python/detectors/not_recommended_apis
15 5
multiprocessing_garbage_collection_prevention.py
in src/python/detectors/multiprocessing_garbage_collection_prevention
35 4
incorrect_usage_of_process_terminate_api.py
in src/python/detectors/incorrect_usage_of_process_terminate_api
28 4
improper_error_handling.py
in src/python/detectors/improper_error_handling
19 3
lambda_override_reserved.py
in src/python/detectors/lambda_override_reserved
6 2
sql_injection.py
in src/python/detectors/sql_injection
20 2
sns_no_bind_subscribe_publish_rule.py
in src/python/detectors/sns_no_bind_subscribe_publish_rule
23 2
cross_site_scripting.py
in src/python/detectors/cross_site_scripting
12 2
subprocess_correct_api.py
in src/python/detectors/subprocess_correct_api
8 2
improper_certificate_validation.py
in src/python/detectors/improper_certificate_validation
26 2
ldap_injection.py
in src/python/detectors/ldap_injection
25 2
equality_vs_identity.py
in src/python/detectors/equality_vs_identity
8 2
insecure_hashing.py
in src/python/detectors/insecure_hashing
10 2
insecure_connection.py
in src/python/detectors/insecure_connection
6 2
unnecessary_iteration.py
in src/python/detectors/unnecessary_iteration
9 2
improper_input_validation.py
in src/python/detectors/improper_input_validation
12 2
sns_set_return_subscription_arn.py
in src/python/detectors/sns_set_return_subscription_arn
16 2
code_injection.py
in src/python/detectors/code_injection
12 2
catch_and_rethrow_exception.py
in src/python/detectors/catch_and_rethrow_exception
19 2
Files With Long Lines (Top 0)

There are 0 files with lines longer than 120 characters. In total, there are 0 long lines.

File# lines# units# long lines