如何在Code Climate中禁用SonarJava的S1192检查?
Code Climate 规则禁用失败问题
我正在使用Code Climate进行代码质量检查,以下是我的.codeclimate.yml配置文件内容:
version: '2' plugins: sonar-java: enabled: true config: minimum_severity: critical checks: S1192: enabled: false exclude_patterns: []
我收到大量**“Define a constant instead of duplicating this literal”(定义常量而非重复字面量)**的警告,因此尝试通过设置S1192检查为enabled: false来禁用该规则,但未能成功抑制该检查。
内容的提问来源于stack exchange,提问作者Ansh Khattar
相关产品推荐
相关产品推荐

