Hooke up Code Analysis correctly