Skip to content

Monster Branching #53

@ali90h

Description

@ali90h

Monster Branching

Target only 2–3 files from the "top list" by size.

Branch-by-Abstraction:

Extract the first subfunction without any logical changes.

Move it to a new module, autorepro/_internal/plan_utils.py, for example.

Replace the callback.

Test.

Repeat. Aim for under 500 lines per file, and under 80–100 lines per large function.

Independent PR: Clear title, “Evidence” contains a snippet of wc -l and radon cc before/after.


تقسيم الوحوش

استهدف 2–3 ملفات فقط من “قائمة الـtop” بالحجم.

أسلوب “Branch-by-Abstraction”:

استخرج الدالة الفرعية الأولى بدون تغيير منطقي.

حرّكها إلى module جديد autorepro/_internal/plan_utils.py مثلاً.

استبدل الاستدعاء.

اختبر.

كرر. الهدف النزول تحت 500 سطر لكل ملف، وتحت 80–100 لكل دالة كبيرة.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions