Oclint is a powerful static code analysis tool that can be used to improve code quality, find potential bugs, and focus on static analysis of c,c++ and Objective-c.
Sonar is an open platform for code quality management. Through the plug-in mechanism, Sonar can integrate different test tools, code analysis tools, and continuous integration tools.
1. Check that your computer has no brew installed
what does it show if it is not installed-bash:brew:command not found
What should we do?
Open Terminal Execution Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
2.SonarQube Installation
Description: The Java,mysql,jenkins installation configuration is skipped here.
Installing java:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Brew Install Sonarqube
Sonarqube of Chinese
Chinese-Typed plugin
Https://github.com/SonarQubeCommunity/sonar-l10n-zh
After downloading, put in the following directory:
/usr/local/cellar/sonarqube/6.5/libexec/extensions/plugins
3.mysql installation
Brew Install MySQL
4. Create a Sonar database
5. Configure sonar to connect to MySQL
Go ahead and write tomorrow.
Using Oclint and sonar for iOS code analysis and quality management