0%

crash:

1
2
3
4
5
6
let attr = try? NSMutableAttributedString(data: data,
options: [NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType,
NSCharacterEncodingDocumentAttribute: String.Encoding.utf8],
documentAttributes:nil)
// log:
2017-04-17 14:04:38.140 [41275:463875] -[_SwiftValue unsignedIntegerValue]: unrecognized selector sent to instance 0x608000256620
Read more »

步骤

Get Started in Two Minutes

  1. Download and unzip the SonarQube distribution (let’s say in “C:\sonarqube” or “/etc/sonarqube”)
  2. Start the SonarQube server:
    1
    2
    3
    4
    5
    # On Windows, execute:
    C:\sonarqube\bin\windows-x86-xx\StartSonar.bat

    # On other operating system, execute:
    /etc/sonarqube/bin/[OS]/sonar.sh console
  3. Download and unzip the SonarQube Scanner (let’s say in “C:\sonar-scanner” or “/etc/sonar-scanner”)
  4. Download and unzip some project samples (let’s say in “C:\sonar-scanning-examples” or “/etc/sonar-scanning-examples”)
  5. Analyze a project:
    1
    2
    3
    4
    5
    6
    7
    # On Windows:
    cd C:\sonar-scanning-examples\sonarqube-scanner
    C:\sonar-scanner\bin\sonar-scanner.bat

    # On other operating system:
    cd /etc/sonar-scanning-examples/sonarqube-scanner
    /etc/sonar-scanner/bin/sonar-scanner
  6. Browse the results at http://localhost:9000 (default System administrator credentials are admin/admin)

文档