Skip to content

purgeteam/sonarqube-start

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-sonarqube

搭建代码质量检测平台(中文) SonarQube

添加阿里java p3c检查

download docker-compose.yml

$ git clone https://github.com/purgeteam/sonarqube-start
$ cd docker-start

how to use

$ docker-compose up -d sonar-docker-start.yml

visit:localhost:9000

username/password:admin/admin

maven 配置

    <build>
        <plugins>

            <plugin>
                <groupId>org.sonarsource.scanner.maven</groupId>
                <artifactId>sonar-maven-plugin</artifactId>
                <version>3.6.0.1398</version>
            </plugin>

        </plugins>
    </build>

    <!-- SonarQube代码质量检测 -->
    <profiles>
        <profile>
            <id>sonar</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <sonar.host.url>http://127.0.0.1:9000/</sonar.host.url>
            </properties>
        </profile>
    </profiles>

About

搭建代码质量检测平台(中文) SonarQube

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published