Move analysis settings to another class. Additionally enabled code analysis.