优化:调整项目中被测件代码位置

wuhaoyang
Guo XIn 10 months ago
parent 9aa48fb42e
commit c3e502d844
  1. 3
      .gitignore
  2. 1
      pom.xml
  3. 0
      soanr-keyware-example/src/main/cxx/.scannerwork/.sonar_lock
  4. 0
      soanr-keyware-example/src/main/cxx/.scannerwork/class-mapping.csv
  5. 6
      soanr-keyware-example/src/main/cxx/.scannerwork/report-task.txt
  6. 4
      uut-example/cxx/README.md
  7. 4
      uut-example/cxx/src/ABCVarNameChecker.cc
  8. 0
      uut-example/java/.gitignore
  9. 4
      uut-example/java/README.md
  10. 2
      uut-example/java/pom.xml
  11. 0
      uut-example/java/src/main/java/com/keyware/sonar/Main.java
  12. 0
      uut-example/java/src/main/resources/license-header.txt

3
.gitignore vendored

@ -34,3 +34,6 @@ build/
### Mac OS ### ### Mac OS ###
.DS_Store .DS_Store
/*/dependency-reduced-pom.xml /*/dependency-reduced-pom.xml
### Sonarqube ###
.scannerwork/

@ -79,7 +79,6 @@
<modules> <modules>
<module>sonar-keyware-plugins-cxx</module> <module>sonar-keyware-plugins-cxx</module>
<module>sonar-keyware-plugins-java</module> <module>sonar-keyware-plugins-java</module>
<module>soanr-keyware-example</module>
</modules> </modules>
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>

@ -1,6 +0,0 @@
projectKey=cxx-test
serverUrl=http://localhost:9000
serverVersion=10.2.1.78527
dashboardUrl=http://localhost:9000/dashboard?id=cxx-test
ceTaskId=AYz7dGiT3PoYkLIOzDsz
ceTaskUrl=http://localhost:9000/api/ce/task?id=AYz7dGiT3PoYkLIOzDsz

@ -0,0 +1,4 @@
```shell
# 执行扫描
sonar-scanner -Dsonar.projectKey=cxx-test -Dsonar.sources=. -Dsonar.host.url=http://localhost:9000 -Dsonar.token=sqp_3d4a4b9b4d7381682f18250a463f1a789bc9c9bd
```

@ -3,4 +3,8 @@ int main(void){
int ABC = 1; // error int ABC = 1; // error
int abc = 2; int abc = 2;
return 0; return 0;
}
void func1(){
// TODO: add more tests
} }

@ -0,0 +1,4 @@
```shell
# 执行扫描
```

@ -10,7 +10,7 @@
</parent> </parent>
<!--<groupId>com.keyware.sonar</groupId>--> <!--<groupId>com.keyware.sonar</groupId>-->
<artifactId>soanr-keyware-example</artifactId> <artifactId>uut-example</artifactId>
<version>1.0</version> <version>1.0</version>
<properties> <properties>
Loading…
Cancel
Save