I read the Static Code Analysis in Unreal Engine | Unreal Engine 5.1 Documentation document and there is write that script located in \Engine\Build\BatchFiles\ the folder but there doesn’t exist the script=,
1 Like
Me too.
I thought I could start it from UnrealBuildTool.exe, but I can’t seem to figure out the arguments.
Does anyone know how to run Static Code Analytics?
(UE5.3.2)
I managed to run it using these arguments.
& “C:\Program Files\Epic Games\UE_5.3\Engine\Build\BatchFiles\RunUBT.bat” UnrealEditor Win64 DebugGame -StaticAnalyzer=
However, I’m getting this error here:
C:\Program Files\Epic Games\UE_5.3\Engine\Source\Runtime\CoreUObject\Public\UObject\CoreNetTypes.h(8): fatal error C1083: Cannot open include file: ‘CoreNetTypes.generated.h’: No such file or directory
I’m going to try copying the script from the source build and running it to see if that works.