SonarLint实践总结
摘要:1、集合要用isEmpty()判空。 Minor code smell Use isEmpty() to check whether the collection is empty or not. 问题代码: Rule: Using Collection.size() to test for emp
阅读全文
Java代码规范与质量检测插件SonarLint
摘要:1. SonarLint SonarLint是一个代码质量检测插件,可以帮助我们检测出代码中的坏味道 下载与安装 在需要检测的单个文件或者单个项目上右键 --> Analyze --> Analyze with SonarLint 或者选中文件或目录,点击菜单栏 Analyze --> Analyz
阅读全文