Feature: check_code tool to flag deprecated and anti-pattern Unity APIs with line numbers
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C#
- Estrelas
- 4
- Forks
- 0
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TMHSDigital/Unity-Developer-Tools
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
-
ci priority: low skills
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
-
good first issue skills testing
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 58/100
-
ci priority: medium testing
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 57/100
-
documentation marketing priority: medium
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
Todas as issues de TMHSDigital/Unity-Developer-Tools
Issues semelhantes
-
type:task ux
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
elsa-workflows/elsa-foundation#5253 ·
Mantenedores costumam responder em até 1 dia