Using Static Analysis Tools and Serverless Architectures
MSc Software Engineering
Staffordshire University · September 2025
Supervisor: Dr Meriem Zouzou
View on GitHubAnalysis tools run on fixed infrastructure and don't use the automatic scaling and pay-per-use cost of serverless platforms
SonarQube, Roslyn and ArchUnit work separately, so results are duplicated, conflicting or incomplete
Most studies test single tools on small proofs of concept, not several real projects
Sources: Taibi, Lenarduzzi & Pahl (2020); Kumar et al. (2024); Anderson et al. (2023) — see dissertation Chapter 2
Designed for AWS (Lambda, EventBridge, S3, RDS) · prototype simulated with Docker Compose
API / CI/CD triggers
Lambda-style containers
Tool concepts run
Normalise & merge
Dashboard & API
Code quality & smells → coupling, granularity
.NET/C# → service intimacy, idempotency
Java architecture → dependencies, layers, cycles
Same file & line = strongest match (score 1.0); nearby lines score lower
Findings of the same anti-pattern type are linked
TF-IDF + cosine similarity on issue descriptions (click for example)
Higher confidence wins · tool expertise · critical first · unclear → human review
Real analysis of source code (e.g. connection strings, Thread.sleep, shared databases, imports), not pre-set results.
Preliminary validation: 2 files, 6 known anti-patterns → 4 found, 0 false alarms
Anti-patterns detected per project (analysis time)
• Small validation set (2 files, 6 patterns)
• Docker simulation, not real AWS Lambda
• Simplified tool concepts, not full tool APIs
• Deploy to real AWS Lambda
• Full SonarQube/Roslyn/ArchUnit API integration
• Machine learning & more languages (Go, Python)