Feature: check_code tool to flag deprecated and anti-pattern Unity APIs with line numbers
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by locating deprecated_patterns.json, the existing lookup_api MCP tool, and the performance-optimization and csharp rules mentioned in the issue. Define the scanner and data schema around those entry points, then add a fixture covering each listed pattern and verify the reported line numbers, replacements, and reasons. Done means check_code flags every fixture pattern with the correct line number.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Why it matters
deprecated_patterns.json already maps legacy APIs to replacements, but it is only used as a side-warning in lookup_api. Developers upgrading to Unity 6 (or AI agents reviewing code) want "scan this file and tell me what to change". That is concrete, high-value, and easy to demo.
Proposal
New MCP tool check_code(code | file_path):
- Regex/token match against
deprecated_patterns.jsonplus new Unity 6 renames (velocity->linearVelocity,drag->linearDamping,FindObjectsOfType->FindObjectsByType,CGPROGRAMin URP,Camera.maininUpdate,GetComponentinUpdate,GameObject.Findin hot paths,async voidoutside event handlers,new WaitForSecondsin loops). - Returns line numbers, the replacement, and a reason, optionally with a suggested patch.
- Extend the data schema with
pattern(regex),severity,autofix.
Stretch: ship the same patterns as a Roslyn analyzer package for Unity, so the checks run in the editor and CI too.
Done when
check_code flags every pattern in a fixture file with correct line numbers, and the performance-optimization and csharp rules point the agent at it.
- Ngôn ngữ chính
- C#
- Star
- 4
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của TMHSDigital/Unity-Developer-Tools
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
ci priority: low skills
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
good first issue skills testing
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
ci priority: medium testing
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 57/100
-
documentation marketing priority: medium
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Tất cả issue của TMHSDigital/Unity-Developer-Tools
Issue tương tự
-
type:task ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
elsa-workflows/elsa-foundation#5253 ·
Maintainer thường phản hồi trong vòng 1 ngày