Refactor style_checker to be able to scan whole content with regexp.