Check contents of files based on rules defined by the user.