Perfect! Now I have all the information I need. Let me compile the comprehensive report.
Comprehensive Report: References to desloppify/app/commands/fix/ Module
Here are all the locations that would need updating if renaming desloppify/app/commands/fix/ to desloppify/app/commands/autofix/:
1. IMPORTS FROM desloppify.app.commands.fix (direct module path imports)
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/registry.py
- Line 18:
from desloppify.app.commands.fix.cmd import cmd_fix
File: /Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/test_cmd_fix.py
- Line 3:
import desloppify.app.commands.fix.apply_flow as fix_apply_mod
- Line 4:
from desloppify.app.commands.fix.apply_flow import (...)
- Line 10:
from desloppify.app.commands.fix.cmd import (...)
- Line 237:
import desloppify.app.commands.fix.apply_flow as fix_mod
File: /Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/fix/test_fix_options_io.py
- Line 9:
from desloppify.app.commands.fix.options import _COMMAND_POST_FIX, _load_fixer
- Lines 46, 101, etc.:
with patch("desloppify.app.commands.fix.options.resolve_lang", ...)
2. FUNCTION NAME REFERENCES: cmd_fix
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/fix/cmd.py
- Line 21:
def cmd_fix(args: argparse.Namespace) -> None:
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/registry.py
- Line 18:
from desloppify.app.commands.fix.cmd import cmd_fix
- Line 39:
"autofix": cmd_fix,
File: /Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/test_cmd_fix.py
- Line 11:
cmd_fix, (in import block)
- Line 23:
def test_cmd_fix_callable(self):
- Line 24:
assert callable(cmd_fix)
3. PREVIEW FUNCTION REFERENCES: _fix_preview, show_fix_dry_run_samples, _print_fix_file_sample
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/fix/cmd.py
- Line 8:
from desloppify.app.commands._fix_preview import show_fix_dry_run_samples
- Line 45:
show_fix_dry_run_samples(entries, results)
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/_fix_preview.py
- Line 15:
def show_fix_dry_run_samples(entries: list[dict], results: list[dict]) -> None:
- Line 20:
_print_fix_file_sample(result, entries)
- Line 27:
def _print_fix_file_sample(result: dict, entries: list[dict]) -> None:
File: /Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/test_transitive_modules.py
- Line 6: Comment:
3. desloppify.app.commands._fix_preview
- Line 336: Comment:
# ── 3. _fix_preview.py ────────────────────────────────────────────────────
- Line 338:
from desloppify.app.commands._fix_preview import (...)
- Line 339:
_print_fix_file_sample,
- Line 340:
show_fix_dry_run_samples,
- Lines 345, 346, 356, 357, 366, 367, 377, 378, 390, 391, 399, 400: Multiple
@patch("desloppify.app.commands._fix_preview... decorators
4. STRING REFERENCES TO "fix" IN COMMAND CONTEXTS
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/cli_support/parser.py
- Line 44:
autofix Auto-fix mechanical issues
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/cli_support/parser_groups.py
- Line 11:
_add_fix_parser, (in import)
- Line 29:
"_add_fix_parser", (in all)
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/cli_support/parser_groups_admin.py
- Line 380:
def _add_fix_parser(sub, langs: list[str]) -> None:
- Line 381:
p_fix = sub.add_parser("autofix", ...)
- Line 386:
p_fix.add_argument("fixer", type=str, help="What to fix")
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/cli_support/parser.py
- Line 14:
_add_fix_parser, (import)
- Line 131:
_add_fix_parser(sub, langs)
5. _COMMAND_POST_FIX CONSTANT REFERENCES
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/fix/options.py
- Line 12:
_COMMAND_POST_FIX: dict[str, Callable[..., None]] = {}
- Lines 28, 29: References in
_load_fixer() function
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/fix/apply_flow.py
- Line 22:
from .options import _COMMAND_POST_FIX
- Lines 259, 260:
_COMMAND_POST_FIX["debug-logs"] = ..., _COMMAND_POST_FIX["dead-useeffect"] = ...
File: /Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/fix/test_fix_options_io.py
- Line 9: Import of
_COMMAND_POST_FIX
- Line 64: Docstring:
"""When _COMMAND_POST_FIX has an entry..."""
- Lines 70, 72, 79, 80: Multiple references in test_post_fix_applied_if_fixer_has_none()
- Line 84: Docstring:
"""When fixer already has post_fix, _COMMAND_POST_FIX is not applied."""
- Lines 90, 92, 97, 98: Multiple references in test_post_fix_not_applied_if_fixer_has_one()
6. PARSER FUNCTION REFERENCES
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/cli_support/parser_groups_admin.py
- Line 380: Function definition
def _add_fix_parser(sub, langs: list[str]) -> None:
File: /Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/test_transitive_engine.py
- Line 526:
parser_admin_mod._add_fix_parser(sub, ["python"])
7. DOCSTRING AND COMMENT REFERENCES
File: /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/_fix_preview.py
- Line 1: Docstring:
"""Terminal rendering helpers for desloppify autofix --dry-run."""
File: /Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/test_transitive_modules.py
- Line 6: Comment listing _fix_preview module
- Line 336: Section comment
8. DIRECTORY AND FILE STRUCTURE
Source files in fix directory:
/Users/user_c042661f/Documents/desloppify/desloppify/app/commands/fix/__init__.py
/Users/user_c042661f/Documents/desloppify/desloppify/app/commands/fix/cmd.py
/Users/user_c042661f/Documents/desloppify/desloppify/app/commands/fix/options.py
/Users/user_c042661f/Documents/desloppify/desloppify/app/commands/fix/apply_flow.py
Test files for fix:
/Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/test_cmd_fix.py
/Users/user_c042661f/Documents/desloppify/desloppify/tests/commands/fix/test_fix_options_io.py
Separate preview module (at commands level):
/Users/user_c042661f/Documents/desloppify/desloppify/app/commands/_fix_preview.py
9. RELATED FUNCTION REFERENCES (NOT NEEDING RENAME, BUT CONTEXTUALLY RELEVANT)
These helper functions and variables are related but don't need renaming as they describe actions:
is_auto_fix_command() in /Users/user_c042661f/Documents/desloppify/desloppify/app/commands/next/render_support.py - This checks if a command string is an autofix command (used in render, render_nudges)
- String literal
"autofix" appears in multiple narrative and intelligence modules as part of command specifications, not import paths