]> source.dussan.org Git - sonarqube.git/commit
SONAR-1091 CPD over different projects
authorEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 1 Sep 2011 15:06:46 +0000 (19:06 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Thu, 1 Sep 2011 20:16:21 +0000 (00:16 +0400)
commit5ff8c8c74e58a9df51be059908a064a43a67c50d
tree557856493faeb208510a056b1d665f838f907402
parentd76c641b9f6ad77d26f1bc80f850ed3b2496a91d
SONAR-1091 CPD over different projects

* Improve table clone_blocks and so DbCloneIndex.

* Add purge of old clone blocks.
15 files changed:
plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarEngine.java
plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/CombinedCloneIndex.java [deleted file]
plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/DbCloneIndex.java
plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/SonarCloneIndex.java [new file with mode: 0644]
plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/index/DbCloneIndexTest.java
plugins/sonar-cpd-plugin/src/test/resources/org/sonar/plugins/cpd/index/DbCloneIndexTest/fixture.xml [deleted file]
plugins/sonar-cpd-plugin/src/test/resources/org/sonar/plugins/cpd/index/DbCloneIndexTest/shouldGetByHash.xml [new file with mode: 0644]
plugins/sonar-cpd-plugin/src/test/resources/org/sonar/plugins/cpd/index/DbCloneIndexTest/shouldInsert-result.xml
plugins/sonar-cpd-plugin/src/test/resources/org/sonar/plugins/cpd/index/DbCloneIndexTest/shouldInsert.xml [new file with mode: 0644]
plugins/sonar-dbcleaner-plugin/src/main/java/org/sonar/plugins/dbcleaner/api/PurgeUtils.java
plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots-result.xml
plugins/sonar-dbcleaner-plugin/src/test/resources/org/sonar/plugins/dbcleaner/api/PurgeUtilsTest/purgeSnapshots.xml
sonar-core/src/main/java/org/sonar/jpa/entity/CloneBlock.java
sonar-server/src/main/webapp/WEB-INF/db/migrate/217_create_clone_blocks.rb
sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl