Set invalid flag when parsing fails; inject config into StyleChecker