Commit 70a759e
committed
Address Codacy findings on PR #97
Pyflakes (84 unused imports): bulk-stripped via autoflake across 64 files
in je_web_runner/utils/ and test/unit_test/.
Pylint:
- E1111 assignment-from-no-return on exploratory_ai Protocol-method calls
(observer.observe, planner.plan): added `# pylint: disable=...` with
reason; Protocol bodies are `...` so Pylint can't see the real impl
- E1102 not-callable on grpc_tester code_obj(): guarded by callable()
check; suppressed with reason
- W0622 redefined-builtin 'format' in webhook_receiver + live_dashboard
log_message overrides: keep the stdlib signature name and disable
redefined-builtin
Bandit:
- B311 PRNG in chaos_hooks, flag_matrix, exploratory_ai,
mutation_testing: `# nosec B311 — deterministic seeded scheduling /
sampling / fuzz, not cryptographic`
- B310 urlopen in test_webhook_receiver: `# nosec B310 — fixture talks
only to the local WebhookServer (random loopback port)`
- B404 subprocess import in test_test_auto_repair + repair.py: `# nosec
B404` — subprocess is intentional for git diff capture
- B105 hardcoded "pass" verdict literal in multimodal_qa Verdict enum:
`# nosec B105 — verdict label, not a credential`
- B112 try/except/continue in indexed_db_explorer.find_one,
webhook_receiver.assert_received_json_matching, sse_assert.
assert_received_event: `# nosec B112 — user predicate may legitimately
raise; skip + continue`
- B110 try/except/pass in otp_interceptor IMAP cleanup: `# nosec B110 —
best-effort cleanup; swallowing is intentional`
- B104 "0.0.0.0" set-membership compare in live_dashboard: `# nosec B104
— string compare detecting "bind all"; rewritten to 127.0.0.1`
Semgrep:
- dangerous-subprocess-use in test_test_auto_repair: `# nosemgrep` on
MagicMock(return_value=subprocess.CompletedProcess(...)) — no
subprocess is actually launched
- aws-access-token in test_token_leak_detector fixtures: `# nosemgrep`
— the literal AKIA... string is the fixture exercising the
detector itself
All 2920 unit tests pass.1 parent 98cab2b commit 70a759e
73 files changed
Lines changed: 82 additions & 108 deletions
File tree
- je_web_runner/utils
- bug_repro_stability
- bundle_budget
- chaos_hooks
- clickjacking_audit
- consent_audit
- coop_coep_audit
- db_snapshot
- exploratory_ai
- failure_narrator
- file_system_access
- flag_matrix
- forced_colors_mode
- git_bisect_flake
- grpc_tester
- hydration_check
- indexed_db_explorer
- inp_tracker
- live_dashboard
- locator_hardener
- long_animation_frame
- mixed_content_audit
- multimodal_qa
- mutation_testing
- notifications_audit
- open_redirect_detector
- otp_interceptor
- pagination_audit
- persona_runner
- prompt_drift_monitor
- pseudo_localization
- repro_minimizer
- screen_reader_runner
- session_to_test
- sla_tracker
- slack_digest
- sri_verify
- sse_assert
- story_to_actions
- test_auto_repair
- test_categorizer
- test_cost_estimator
- test_debt_dashboard
- test_dedup_ai
- test_owners_map
- third_party_budget
- time_freezer
- token_leak_detector
- view_transitions
- webhook_receiver
- webtransport_assert
- test/unit_test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
247 | 249 | | |
248 | 250 | | |
249 | 251 | | |
| |||
262 | 264 | | |
263 | 265 | | |
264 | 266 | | |
| 267 | + | |
265 | 268 | | |
266 | 269 | | |
267 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
| 10 | + | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments