Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ParzivalHack/PySpector
/ functions
Functions
455 in github.com/ParzivalHack/PySpector
⨍
Functions
455
◇
Types & classes
111
↳
Endpoints
3
Method
test_app_run_debug_fires
(self)
tests/unit/test_missing_rules.py:258
Method
test_ast_chunk_is_immutable
(self)
tests/unit/ast_cache_test.py:618
Method
test_async_function
(self)
tests/unit/ast_cache_test.py:49
Method
test_auth711_flagged_in_production_code
Hardcoded admin username assignment in production code should still trigger AUTH711.
tests/unit/test_false_positive_reductions.py:214
Method
test_auth711_not_flagged_in_tests
username='admin' in test files should not trigger AUTH711.
tests/unit/test_false_positive_reductions.py:197
Method
test_auto_add_policy_fires
(self)
tests/unit/test_missing_rules.py:190
Method
test_bare_compile_or_exec_flagged
exec(compile(user_code, ...)) IS dangerous — PY305 (exec) or compile rules must fire.
tests/unit/test_false_positive_reductions.py:158
Method
test_bare_statement
(self)
tests/unit/ast_cache_test.py:55
Method
test_cache_output_matches_ast_encoder
The cache path and the direct AstEncoder path must be identical.
tests/unit/ast_cache_test.py:547
Method
test_cache_version_stored_in_disk_file
(self)
tests/unit/ast_cache_test.py:632
Method
test_center_constant_safe
(self)
tests/unit/test_a_sink_rules.py:119
Method
test_center_silent_disabled
(self)
tests/unit/test_a_sink_rules.py:116
Method
test_chunk_reuse_skips_encoding
(self)
tests/unit/ast_cache_test.py:98
Method
test_class
(self)
tests/unit/ast_cache_test.py:52
Method
test_cli_path_no_PATH813
(self)
tests/unit/test_missing_rules.py:431
Method
test_comment_line_safe
(self)
tests/unit/test_missing_rules.py:144
Method
test_comment_line_safe
(self)
tests/unit/test_missing_rules.py:158
Method
test_commented_joblib_model_load_safe
(self)
tests/unit/test_ai_rules.py:174
Method
test_commented_keras_h5_model_load_safe
(self)
tests/unit/test_ai_rules.py:156
Method
test_constant_attr_not_flagged
Hardcoded string attribute name is safe.
tests/unit/test_taint_engine_extension.py:135
Method
test_constant_attr_safe
(self)
tests/unit/test_group_a_rules.py:73
Method
test_constant_attr_safe
(self)
tests/unit/test_group_a_rules.py:92
Method
test_constant_fstring_safe
(self)
tests/unit/test_group_a_rules.py:151
Method
test_constant_literal_assignment_is_developer_defined
String literal assignment → DeveloperDefined → does not reach SQL sink.
tests/unit/test_semantic_provenance.py:168
Method
test_constant_object_safe
(self)
tests/unit/test_group_a_rules.py:236
Method
test_constant_plus_http_in_binop_is_http
Constant + HttpRequest in BinOp → result is HttpRequest (unsafe).
tests/unit/test_semantic_provenance.py:175
Method
test_constant_replace_safe
(self)
tests/unit/test_group_a_rules.py:174
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:41
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:50
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:59
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:68
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:76
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:85
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:93
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:102
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:111
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:133
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:142
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:150
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:158
Method
test_constant_safe
(self)
tests/unit/test_a_sink_rules.py:166
Method
test_constant_seed_safe
(self)
tests/unit/test_group_a_rules.py:216
Method
test_constant_table_safe
(self)
tests/unit/test_group_a_rules.py:195
Method
test_constant_template_safe
(self)
tests/unit/test_group_a_rules.py:119
Method
test_constant_write_safe
(self)
tests/unit/test_missing_rules.py:289
Method
test_corrupted_cache_recovers_gracefully
A corrupted JSON cache file must be discarded and rebuilt without error.
tests/unit/ast_cache_test.py:425
Method
test_create_with_tainted_password_fires
(self)
tests/unit/test_missing_rules.py:328
Method
test_csrf_exempt_not_flagged_in_tests
@csrf_exempt in test views is acceptable and should not fire.
tests/unit/test_false_positive_reductions.py:255
Method
test_csrf_exempt_still_flagged_in_production
@csrf_exempt in production code still warrants a warning.
tests/unit/test_false_positive_reductions.py:265
Method
test_debug_env_var_safe
(self)
tests/unit/test_missing_rules.py:356
Method
test_debug_false_safe
(self)
tests/unit/test_missing_rules.py:266
Method
test_debug_false_safe
(self)
tests/unit/test_missing_rules.py:352
Method
test_debug_true_fires
(self)
tests/unit/test_missing_rules.py:348
Method
test_defusedxml_safe
(self)
tests/unit/test_missing_rules.py:244
Method
test_deserialize_raises_on_garbage
(self)
tests/unit/ast_cache_test.py:204
Method
test_developer_defined_fstring_silent
DeveloperDefined literal in f-string → silent.
tests/unit/test_semantic_provenance.py:156
Method
test_developer_defined_literal_to_sql_silent
DeveloperDefined string literal → SQL → silent (no injection risk).
tests/unit/test_semantic_provenance.py:121
Method
test_dill_loads_fires
(self)
tests/unit/test_missing_rules.py:154
Method
test_disable_warnings_fires
(self)
tests/unit/test_missing_rules.py:172
Method
test_disk_cache_file_extension_is_json
(self)
tests/unit/ast_cache_test.py:418
Method
test_disk_cache_uses_json_not_pickle
Disk cache must store JSON, not pickle (no arbitrary code execution).
tests/unit/ast_cache_test.py:397
Method
test_disk_write_failure_does_not_crash
A disk write failure must issue a warning but not abort the scan.
tests/unit/ast_cache_test.py:530
Method
test_django_cache_code_only_pickle_flagged
Code resembling Django's cache backend should only flag pickle.loads, not re.compile, json.loads, or other false positives.
tests/unit/test_false_positive_reductions.py:378
Method
test_django_redirect_fires
(self)
tests/unit/test_missing_rules.py:309
Method
test_duplicate_names_get_suffix
(self)
tests/unit/ast_cache_test.py:58
Method
test_empty_body_goes_to_fields
(self)
tests/unit/ast_cache_test.py:140
Method
test_empty_module
(self)
tests/unit/ast_cache_test.py:75
Method
test_empty_type_ignores_goes_to_fields
(self)
tests/unit/ast_cache_test.py:150
Method
test_encode_node_matches_ast_encoder_for_single_node
encode_node() must produce the same output as json.dumps(..., cls=AstEncoder).
tests/unit/ast_cache_test.py:563
Method
test_environ_to_open_no_finding
os.environ.get() is now OperatorConfig — opening a path the operator set via environment variable is intentional, not a vulnerability.
tests/unit/test_taint_engine_extension.py:245
Method
test_etree_fromstring_fires
(self)
tests/unit/test_missing_rules.py:240
Method
test_etree_parse_fires
(self)
tests/unit/test_missing_rules.py:236
Method
test_exclude_pattern_suppresses_safe_or_comment_cases
(self, code)
tests/unit/test_ai_rules.py:207
Method
test_file_cache_entry_is_immutable
FileCacheEntry must be frozen so callers cannot mutate shared state.
tests/unit/ast_cache_test.py:604
Method
test_flask_redirect_fires
(self)
tests/unit/test_missing_rules.py:302
Method
test_from_string_silent_removed
(self)
tests/unit/test_missing_rules.py:66
Method
test_fstring_in_text_fires
(self)
tests/unit/test_missing_rules.py:89
Method
test_function
(self)
tests/unit/ast_cache_test.py:46
Method
test_g101_fires_on_lowercase_secret
Lowercase secret variable must still fire.
tests/unit/test_semantic_provenance.py:74
Method
test_g101_uppercase_constant_not_flagged
INTERNAL_RESET_SESSION_TOKEN = "_password_reset_token" is a module constant. Python: UPPER_CASE = "literal" → DeveloperDefined proven
tests/unit/test_semantic_provenance.py:64
Method
test_generate_routes_to_correct_format
(self)
tests/unit/reporting_test.py:311
Method
test_generate_unknown_format_falls_back_to_console
(self)
tests/unit/reporting_test.py:319
Method
test_get_changed_chunks_detects_addition
(self)
tests/unit/ast_cache_test.py:352
Method
test_get_changed_chunks_detects_deletion
(self)
tests/unit/ast_cache_test.py:360
Method
test_get_changed_chunks_detects_modification
(self)
tests/unit/ast_cache_test.py:343
Function
test_get_default_rules_includes_ai_rules_when_enabled
(capsys)
tests/unit/test_config.py:74
Function
test_get_default_rules_loads_parseable_builtin_rules
()
tests/unit/test_config.py:66
Function
test_get_default_rules_substitutes_shared_placeholder_regex
()
tests/unit/test_config.py:83
Method
test_get_python_file_asts_handling_default
Test that by default SyntaxWarnings are ignored and files are included.
tests/unit/test_get_asts.py:44
Method
test_get_python_file_asts_handling_enabled
Test that when enabled, SyntaxWarnings are treated as errors and files are excluded.
tests/unit/test_get_asts.py:56
Method
test_getattr828_still_fires
(self)
tests/unit/test_group_a_rules.py:248
Method
test_getattr_with_keyword_name_arg
Phase 3: getattr(obj, name=attr) with tainted attr must fire.
tests/unit/test_taint_engine_extension.py:219
Method
test_global_exclusion_does_not_suppress_production_code
Global defaults only exclude test files, not production code.
tests/unit/test_false_positive_reductions.py:327
Method
test_global_exclusion_suppresses_any_rule_in_tests
The [defaults] exclude_file_patterns applies to ALL rules without needing to repeat exclude_file_pattern on each rule individually.
tests/unit/test_false_positive_reductions.py:314
Method
test_hardcoded_path_not_flagged
Hardcoded file path is safe.
tests/unit/test_taint_engine_extension.py:191
Method
test_hardcoded_redirect_safe
(self)
tests/unit/test_missing_rules.py:316
Method
test_hashed_password_safe
(self)
tests/unit/test_missing_rules.py:335
Method
test_http_binop_to_sql_fires
HttpRequest → BinOp % formatting → SQL sink → fires.
tests/unit/test_semantic_provenance.py:128
Method
test_http_fstring_silent_disabled
FSTRING867 disabled — taint propagates to downstream sinks (PY101, LOG741, etc.).
tests/unit/test_semantic_provenance.py:149
Method
test_http_path_fires_PATH813
(self)
tests/unit/test_missing_rules.py:422
← previous
next →
201–300 of 455, ranked by callers