Automated static code analysiswith Large Language Models aspart of the Continuous Integration Pipeline for Core Keeper bugdetection
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesisAlternative title
Automatisk statisk kod analys med Large Language Models somdel av en Continuous Integration Pipeline för Core Keeper buggdetektion (Swedish)
Abstract [en]
Unlike traditional static analysis tools that primarily detect syntactical issues or code style violations, modern game development demands tools capable of identifying logical and context-specific bugs that directly impact gameplay and system behavior. This thesis investigates the use of Large Language Models (LLMs) for static code analysis within the continuous integration pipeline of the repository of the game Core Keeper by Pugstorm, a Swedish game development studio, to automate bug detection in a real-world production environment.This study presents a framework that can detect and resolve complex issues that available traditional static code analysis tools, such as a linter, would be unable to identify. The framework can identify and address syntactical issues and security vulnerabilities while also demonstrating reasoning ability, capable of detecting and resolving logical defects and performance issues. It is intended to complement conventional manual testing in the game development pipeline, rather than replacing human testers. The presented methodology allows for portability and can be applied to a wide range of scenarios, allowing developers to select suitable LLMs and hardware.The research demonstrates that, through fine-tuning, the LLM consistently outperforms its baseline counterpart. With the average score surpassing 0.90 across all CodeBERTScore metrics, the final fine-tuned model is capable of suggesting code changes that are semantically similar to developer fixes, while the base model, with an average score of 0.66, tends to produce generic programming practices, even when provided with code-specific context. Introducing a context retrieval system improved performance, primarily for the fine-tuned model, demonstrating that training the model can teach it to utilize the provided context more effectively. Future work includes improving dataset quality and quantity, refining the context retrieval system, and experimenting with alternative models.
Place, publisher, year, edition, pages
2026. , p. 70
Keywords [en]
Large Language Models, Continous Integration, Static code analysis, Game bug detection, Automated bug detection, Fine-tuning
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:liu:diva-223367ISRN: LIU-IDA/LITH-EX-A--26/008--SEOAI: oai:DiVA.org:liu-223367DiVA, id: diva2:2055927
External cooperation
Pugstorm
Subject / course
Master's programme in Computer Science
Presentation
2026-03-04, John von Neumann, Linköping University, Linköping, 10:15 (English)
Supervisors
Examiners
2026-05-122026-04-272026-05-12Bibliographically approved