Skip to content

feat(audit): restore css-deep as audit --check css (closes #251)#252

Merged
Wolfvin merged 1 commit into
mainfrom
feat/issue-251-restore-css-deep
Jul 13, 2026
Merged

feat(audit): restore css-deep as audit --check css (closes #251)#252
Wolfvin merged 1 commit into
mainfrom
feat/issue-251-restore-css-deep

Conversation

@Wolfvin

@Wolfvin Wolfvin commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Closes #251.

Summary

cssdeep_engine.py was orphaned in the #195 consolidation (command entry point deleted, engine kept) — 154 real findings but reachable from nowhere. Same as export-snapshot (#218). Restored as audit --check css (sub-check, not a new top-level command — count stays 12).

  • New scripts/commands/css_deep.py — thin wrapper, no engine logic duplicated.
  • --severity / --category passthrough verified.
  • Design doc docs/design/0251-restore-css-deep.md.

Test plan

  • pytest tests/test_css_deep_command.py — 5/5 (wrapper delegation, passthrough, audit dispatch, severity reaching engine)
  • pytest tests/test_command_registry.py tests/test_issue195_consolidation.py tests/test_command_count.py — pass (css_deep added to impl-module allowlist)
  • --command-count → 12 (unchanged); sync_command_count.py clean; design-doc CI check passes
  • Real workspace: audit . --check css → 154 findings; --severity high → 3; --category z_index_abuse → 1

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@Wolfvin Wolfvin merged commit c821bf5 into main Jul 13, 2026
1 of 7 checks passed
@Wolfvin Wolfvin deleted the feat/issue-251-restore-css-deep branch July 13, 2026 00:12
cssdeep_engine.py (unused CSS vars, orphan keyframes, specificity wars,
duplicate props, unused media queries, z-index abuse) is fully functional
— 154 real findings verified on a live workspace — but was orphaned in
the #195 consolidation: its command entry point was deleted, the engine
kept. Same situation as export-snapshot (#218). CSS is in CodeLens's
stated scope (react/css/html), so the loss meant falling back to manual
grep for "is this CSS var still used?".

Restored as `audit --check css` — a sub-check under the audit umbrella
alongside dead-code/complexity/smell/perf-hint (all code-quality
analyses), NOT a new top-level command. Command count stays exactly 12
(verified via --command-count) — compatible with the #195 12-umbrella
consolidation, not a reversal of it.

New scripts/commands/css_deep.py is a thin wrapper (no engine logic
duplicated, mirrors export_snapshot.py). --severity and --category
passthrough to the engine verified. Design doc at
docs/design/0251-restore-css-deep.md.
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(audit): restore css-deep as audit --check css (orphaned engine since #195)

1 participant