SonarQube Community Build is free and unlimited on LOC but limited to main-branch analysis only -- no branch analysis or PR decoration.
The jump to Developer Edition at ~$2,500/year for 100K LOC is reasonable, but Enterprise ($16,000/year for 1M LOC) and Data Center ($100,000+/year) get expensive fast. Self-hosting costs add significantly to the license fee.
Free
Open source
$150/year per instance
LOC-based
Custom
LOC-based
Custom
High availability
Self-hosting infrastructure ($80-$7,000/month depending on scale)
No branch analysis on free Community Build
Database administration and maintenance (10-20 hours/month)
LOC-based pricing means costs jump at tier boundaries
C/C++/Swift support requires Developer Edition or above
Teams already self-hosting infrastructure
Java/C#/.NET shops needing deep static analysis
Enterprises with compliance requirements (OWASP, PCI DSS)
Organizations with large codebases needing LOC-based pricing
startup
Community Build is solid for a single main branch. Upgrade to Developer ($2,500/year) once you need branch analysis and PR decoration.
enterprise
Enterprise Edition at $16,000/year for 1M LOC includes compliance reporting. Factor in $1,000-$3,000/month for hosting. SonarQube Cloud eliminates infrastructure overhead.
Semgrep is free for 10 contributors with branch analysis included. Codacy starts at $15/dev/month with cloud hosting included. Veracode is enterprise-only and typically more expensive but covers DAST too.