Does Zig have a static code analyzer?

I’m basically looking for an analyzing tools for zig, which can do memory and resource checks, path analysis… stuff like that, rely on written rules.

1 Like

Checkout Tracy and KCacheGrind

2 Likes

You mean something similar to clang-tidy?

I might wanna give a look into zlint

There are some predefined rules and you decide which one you want to enable to a zlint.json

I didn’t use it a lot, so I’m not sure about the correctness about the rules, but I think it’s the only project of this kind being maintained

1 Like