]> source.dussan.org Git - sonarqube.git/commit
SONAR-1091 Add CPD over different projects
authorEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 31 Aug 2011 15:27:13 +0000 (19:27 +0400)
committerEvgeny Mandrikov <mandrikov@gmail.com>
Wed, 31 Aug 2011 20:46:32 +0000 (00:46 +0400)
commit7cf051c0f7d8ec017381b05c85044e9321c6c4f7
tree8c06051077ea988f479ec0d2a30ac459baf56c1d
parent8e085c96accc9c912747df5c8b93c8a0bc85ad95
SONAR-1091 Add CPD over different projects

* Add table clone_blocks

* Add DbCloneIndex, which can be activated in sonar-cpd-plugin using
  property "sonar.cpd.cross_project=true"
13 files changed:
plugins/sonar-cpd-plugin/pom.xml
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 [new file with mode: 0644]
plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/index/DbCloneIndex.java [new file with mode: 0644]
plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/CpdSensorTest.java
plugins/sonar-cpd-plugin/src/test/java/org/sonar/plugins/cpd/index/DbCloneIndexTest.java [new file with mode: 0644]
plugins/sonar-cpd-plugin/src/test/resources/org/sonar/plugins/cpd/index/DbCloneIndexTest/fixture.xml [new file with mode: 0644]
plugins/sonar-cpd-plugin/src/test/resources/org/sonar/plugins/cpd/index/DbCloneIndexTest/shouldInsert-result.xml [new file with mode: 0644]
sonar-core/src/main/java/org/sonar/jpa/entity/CloneBlock.java [new file with mode: 0644]
sonar-core/src/main/java/org/sonar/jpa/entity/SchemaMigration.java
sonar-core/src/main/resources/META-INF/persistence.xml
sonar-server/src/main/webapp/WEB-INF/db/migrate/217_create_clone_blocks.rb [new file with mode: 0644]
sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl