Feature: check_code tool to flag deprecated and anti-pattern Unity APIs with line numbers
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- C#
- Stelle
- 4
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di TMHSDigital/Unity-Developer-Tools
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
ci priority: low skills
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
-
good first issue skills testing
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
-
ci priority: medium testing
Difficoltà 4/5 1-2 giorni Idoneità per principianti 57/100
-
documentation marketing priority: medium
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
Tutte le issue di TMHSDigital/Unity-Developer-Tools
Issue simili
-
type:task ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elsa-workflows/elsa-foundation#5253 ·
I maintainer di solito rispondono entro 1 giorno