Optimizing agile development with automated code quality