我正在使用SonarQube(版本6.7.2(内部版本37468))Web API来检索项目上的重复量。 但是有一个奇怪的行为:问
http://10.117.72.197:9000/api/duplications/show?key=com.my.project:my-project
我明白了
{"duplications":[],"files":{}}
询问时
http://server:9000/api/duplications/show?key=com.my.project:my-project:src%2Fmain%2Fjava%2Fcom%2Fmy%2Fproject%2FMyFile.java
我知道
{"duplications":[{"blocks":[{"from":489,"size":16,"_ref":"1"},{"from":520,"size":14,"_ref":"1"}]}],"files":{"1":{"key":"...","name":"...","uuid":"...","project":"...","projectUuid":"...","projectName":"...","subProject":"...","subProjectUuid":"...","subProjectName":"..."}}}
如何获得全局结果而不必在项目的每个文件上调用API?
谢谢!