tclscan is a tool to scan tcl code for unexpected/unsafe expressions that may have undesirable effects like double evaluation.
See the documentation for check_command for examples of usage and results.
See INSTALL.md for details on how to build/install.