Coverity Scan: OpenTTD

Project Name OpenTTD
Lines of code analyzed 592,609
On Coverity Scan since Nov 22, 2013
Last build analyzed 2 months ago
   
Language C/C++
Repository URL https://github.com/OpenTTD/OpenTTD
Homepage URL http://www.openttd.org/
License GPL (GNU General Public License version )

Want to view defects or help fix defects?

 Add me to project

Analysis Metrics

Version: 20251214-master-g5e2df6d028

Dec 14, 2025
Last Analyzed
592,609
Lines of Code Analyzed
0.00
Defect Density

Defect changes since previous build dated Dec 13, 2025

0
Newly detected
5
Eliminated

Defects by status for current build

639
Total defects
1
Outstanding
390
Fixed
See how defect density for 'OpenTTD' compares with defect density for other open source projects.  Learn more

Note: Defect density is measured by the number of defects per 1,000 lines of code.


Analysis Metrics per Components

Component Name Pattern Ignore Line of Code Defect density
Saveload .*/saveload/.* No 14,036 0.00
Network .*/network/.* No 13,304 0.00
Scripts .*/script/.* No 24,306 0.00
NewGRF .*/newgrf.* No 21,116 0.00
Third party (Squirrel) .*/3rdparty/squirrel/.* No 9,442 0.00
Third party (MD5) .*/3rdparty/md5/.* No 245 0.00
Third party (json) .*/3rdparty/nlohmann/.* No 17,452 0.00
Third party (fmt) .*/3rdparty/fmt/.* No 11,177 0.00
Third party (catch) .*/3rdparty/catch2/.* No 13,704 0.00
Third party (standard library) .*/usr/include/.* No 212,392 0.00
Other .* No 255,437 0.00

CWE Top 25 defects

No top 25 CWE defects were found.

Loading...

Loading...

Loading...

Loading...

Loading...

About Coverity Scan Static Analysis

Find and fix defects in your C/C++, Java, JavaScript or C# open source project for free.

Coverity Scan tests every line of code and potential execution path. The root cause of each defect is clearly explained, making it easy to fix bugs.

Would you like to view the project defects, or help improve its quality by fixing defects?

 Add me to project