NOTE that it's just an idea, there's no code yet: Visual Studion extension that contains Roslyn analyzers that prevent hard to debug mistypes that are specific to using Unity game engine.
Example:
// We're interested only in rotation relative to the ground:
var rotation = transform.rotation.y;
Most likely the intention was:
// We're interested only in rotation relative to the ground:
var rotation = transform.rotation.eulerAngles.y;
Time.fixedDeltaTime and other stuff used in Update(). Some physics-related API can be freely used anywhere though, e.g. Physics.ComputePenetration().
Time.deltaTime, Input.Get___(), Input.Get___Up(), Input.Get___Down(), etc. used in FixedUpdate().
Magic method name mistype: While it's an example that easily comes to mind first, nowadays it's hard to mistype a magic method name anyway, thanks to IntelliSence provided by the Tools for Unity extension.
Ever wasted a hour or more on debugging just to find a small mistype in using Unity API? Share your story via Issues, please. (Or modify this readme directly via a pull request.)