SanityCheck

FAQ
Purchase
Download
SanityCheck scans your structure file looking for coding errors and damage. It is the best detection tool available for 4D structure files, alerting you to more potential issues than any other tool available.

Compatibility

SanityCheck runs on all versions of 4D from 2.2.3 to 2004.5.
That's over 12 years of revisions from 4D that can be parsed by the modern version of SanityCheck.

SanityCheck adjusts itself to the version of 4D you are using. Simply inform SanityCheck you are using 4D v2003 and SanityCheck is smart enough to deliver you errors relative to v2003 (and catch if you try to use a v2004 command, for example).

Code Validation

SanityCheck scans your code looking for common coding mistakes.
You decided which warnings and errors are important to you.

How many times have you forgotton to close an "End If"?
Forgotton to type a local variable?
Changed the number of parameters to a function but fogot to chase down that 1 last reference?

SanityCheck finds all of these things and over 400 more!

Searching

You can optionally turn on searching while you scan a structure file. If you do this, SanityCheck caches all strings so that you can search against them. By all strings, we mean: comments, literal text, code, and so on.

Comparing

SanityCheck can do a limited form of comparison between structure files, informing you of major changes in the structure. This is very useful when you want to know "what's been touched" since the last revision of a product.

Damage Control

SanityCheck scans the Forms, Methods, and most other objects in your structure file for damage. In addition, SanityCheck can fix damage in several key areas.

In most cases you can fix the damage yourself using 4D, the important part is knowing about it and knowing how to fix it. SanityCheck tells you what is wrong and how to fix it.

Client Work Justification

When pricing a job for work, generate a SanityCheck report.
Show this to your client and explain how you will clean it up.
As part of your work, clean up the structure file and show the post-work report.

With code, there are very few "show me" diagnostics that can clearly show your hard work. SanityCheck is one way you can quantify the quality of your work.