Use OCLint and Sonar for iOS code analysis and quality management, oclintios
OCLint is a powerful static code analysis tool that can be used to improve code quality and find potential bugs, mainly for Static Analysis of c, c ++ and Objective-c.
Sonar is an open platform for code quality management. With the plug-in mechanism, Sonar can integrate different test tools, code analysis tools, and continuous integration tools.
1. Check whether brew is installed on your computer.
What will be displayed if it is not installed?-bash: brew: command not found
What should I do?
Open the terminal and execute ruby-e "$ (curl-fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
2. Install SonarQube
Note: install and configure java, mysql, and jenkins.
Install java: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Brew install sonarqube
SonarQube Chinese
Chinese INS
Https://github.com/SonarQubeCommunity/sonar-l10n-zh
Put the downloaded file in the following directory:
/Usr/local/Cellar/sonarqube/6.5/libexec/extensions/plugins
3.Install Mysql
Brew install mysql
4. Create a sonar Database
5.Configure sonar to connect to mysql
Write next tomorrow