On one of Linux terminals I administrate, we allow users to write own scripts in bash/perl/python to enhance their administrative tasks. The problem with users is they don't always follow the rules.
One of the rules is that their code is not allowed to have clear-text passwords hardcoded. You can guess that not all follow. What is the best way to enforce this policy on users/homedirs etc?