Using Oclint and sonar for iOS code analysis and quality management

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.