戈壁堂

Knowledge Is Action

Sonar实践问题:支持go工程的覆盖率

Go for SonarQube Go for SonarCloud with Github Actions 示例工程 service_sonar go testing 步骤—— go build生成可执行程序 执行 go test -coverprofile=bin/cov.out service-sonar 生成覆盖率文件 执行sonar-scanner 关键时如何生成覆盖

做好人难,一定要做好人

做一个好人就足够了 “……每一件好事都没有白做,做好人难,一定要做好人;做好事难,一定要做好事,做好人是福。你不能改造这个社会,但至少可以改造

Sonar扫描的NPE问题

直到我修改为这样的代码才通过—— public class DetectorImport { public String check1(Nonentity nonentity) { String s; if(nonentity == null) { s = null; }else { s = nonentity.getName(); } if(s !=null) { s = s.replaceAll("(",