aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/test/json
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-29 11:35:18 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-29 13:39:25 +0200
commit8610286a81782605b0ec803c4981d28ddae7fca0 (patch)
treef8aead2a47b3947c4be86eae9028c4e52ad76c40 /server/sonar-web/src/test/json
parent634c7df11feac71cf27f519668fe8dbf477c7ab6 (diff)
downloadsonarqube-8610286a81782605b0ec803c4981d28ddae7fca0.tar.gz
sonarqube-8610286a81782605b0ec803c4981d28ddae7fca0.zip
sanitize web tests
Diffstat (limited to 'server/sonar-web/src/test/json')
-rw-r--r--server/sonar-web/src/test/json/api-documentation/list.json52
-rw-r--r--server/sonar-web/src/test/json/api-documentation/response-example.json4
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/active-severities-facet.json33
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/app-no-available-profiles.json258
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/app.json316
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/create-create-custom-rules.json34
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/issues-search.json50
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-BLOCKER.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-active.json43
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-actives.json106
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-characteristic.json156
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-create-custom-rules.json36
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-create-manual-rule.json7
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-custom-rules.json26
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-custom-rules2.json45
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-delete-custom-rule-custom-rules.json45
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-delete-custom-rule.json36
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-delete-manual-rule-after.json7
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-delete-manual-rule-before.json25
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-deprecated.json396
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-empty.json7
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-hide-templates.json23
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-inactive.json22
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-inherited.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-limited.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-no-available-profiles.json171
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-not-inherited.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-only-templates.json23
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-overriden.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet-qprofile-active.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet-qprofile-inactive.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-qprofile-active.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-qprofile.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-qprofile2.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-query.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-show-cutsom-rule-custom-rules.json45
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-show-cutsom-rule.json36
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-show-details.json171
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-sql-tag.json30
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-with-custom-language.json94
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-with-memory-efficiency-characteristic.json157
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-with-portability-characteristic.json157
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search-without-characteristic.json157
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/search2.json371
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-activate-profile-with-profile.json39
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-activate-profile.json32
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-create-custom-rules.json37
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-create-manual-rule.json17
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-delete-custom-rule.json37
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-delete-manual-rule.json17
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-no-available-profiles.json39
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-show-cutsom-rule.json37
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show-show-details.json76
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show.json39
-rw-r--r--server/sonar-web/src/test/json/coding-rules-spec/show2.json37
-rw-r--r--server/sonar-web/src/test/json/computation-spec/history-big-1.json33
-rw-r--r--server/sonar-web/src/test/json/computation-spec/history-big-2.json21
-rw-r--r--server/sonar-web/src/test/json/computation-spec/history.json33
-rw-r--r--server/sonar-web/src/test/json/computation-spec/queue.json13
-rw-r--r--server/sonar-web/src/test/json/custom-measures-spec/metrics-limited.json53
-rw-r--r--server/sonar-web/src/test/json/custom-measures-spec/metrics.json64
-rw-r--r--server/sonar-web/src/test/json/custom-measures-spec/search-big-1.json53
-rw-r--r--server/sonar-web/src/test/json/custom-measures-spec/search-big-2.json53
-rw-r--r--server/sonar-web/src/test/json/custom-measures-spec/search-created.json122
-rw-r--r--server/sonar-web/src/test/json/custom-measures-spec/search-deleted.json76
-rw-r--r--server/sonar-web/src/test/json/custom-measures-spec/search-updated.json99
-rw-r--r--server/sonar-web/src/test/json/custom-measures-spec/search.json99
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/all-issues-by-resolution.json32
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/all-issues-by-status.json32
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/messages.json6
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/red-issues-by-severity.json32
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-action-plan.json63
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-assignee.json48
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date-debt.json33
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date-limited.json24
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date.json32
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-language.json46
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-project.json62
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-reporter.json44
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-resolution.json32
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-rule.json186
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-severity-debt.json33
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-severity.json32
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-status.json32
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-unassigned-issues-by-assignee.json48
-rw-r--r--server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-unplanned-issues-by-action-plan.json63
-rw-r--r--server/sonar-web/src/test/json/groups-spec/error.json7
-rw-r--r--server/sonar-web/src/test/json/groups-spec/search-big-1.json13
-rw-r--r--server/sonar-web/src/test/json/groups-spec/search-big-2.json13
-rw-r--r--server/sonar-web/src/test/json/groups-spec/search-created.json25
-rw-r--r--server/sonar-web/src/test/json/groups-spec/search-filtered.json13
-rw-r--r--server/sonar-web/src/test/json/groups-spec/search-updated.json19
-rw-r--r--server/sonar-web/src/test/json/groups-spec/search.json19
-rw-r--r--server/sonar-web/src/test/json/groups-spec/users.json17
-rw-r--r--server/sonar-web/src/test/json/histogram-spec/search-filter-max-results-reached.json55
-rw-r--r--server/sonar-web/src/test/json/histogram-spec/search-filter-no-data.json40
-rw-r--r--server/sonar-web/src/test/json/histogram-spec/search-filter.json55
-rw-r--r--server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/app.json5
-rw-r--r--server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/components-app.json21
-rw-r--r--server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/lines.json392
-rw-r--r--server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/search.json98
-rw-r--r--server/sonar-web/src/test/json/issues-spec/app.json14
-rw-r--r--server/sonar-web/src/test/json/issues-spec/file-level/components-app.json124
-rw-r--r--server/sonar-web/src/test/json/issues-spec/file-level/lines.json11
-rw-r--r--server/sonar-web/src/test/json/issues-spec/file-level/search.json494
-rw-r--r--server/sonar-web/src/test/json/issues-spec/filter.json9
-rw-r--r--server/sonar-web/src/test/json/issues-spec/issue-filters.json31
-rw-r--r--server/sonar-web/src/test/json/issues-spec/rule.json36
-rw-r--r--server/sonar-web/src/test/json/issues-spec/search-changed.json2085
-rw-r--r--server/sonar-web/src/test/json/issues-spec/search-filter-similar-issues-severities.json181
-rw-r--r--server/sonar-web/src/test/json/issues-spec/search-filter-similar-issues.json216
-rw-r--r--server/sonar-web/src/test/json/issues-spec/search-reopened.json459
-rw-r--r--server/sonar-web/src/test/json/issues-spec/search-rules-facet.json170
-rw-r--r--server/sonar-web/src/test/json/issues-spec/search-with-tags.json162
-rw-r--r--server/sonar-web/src/test/json/issues-spec/search.json2085
-rw-r--r--server/sonar-web/src/test/json/issues-spec/show-fp-new.json69
-rw-r--r--server/sonar-web/src/test/json/issues-spec/show-open.json28
-rw-r--r--server/sonar-web/src/test/json/issues-spec/show-resolved.json26
-rw-r--r--server/sonar-web/src/test/json/issues-spec/show-with-tags.json29
-rw-r--r--server/sonar-web/src/test/json/issues-spec/show.json28
-rw-r--r--server/sonar-web/src/test/json/issues-spec/tags-modified.json7
-rw-r--r--server/sonar-web/src/test/json/issues-spec/tags.json24
-rw-r--r--server/sonar-web/src/test/json/maintenance-spec/status-down.json5
-rw-r--r--server/sonar-web/src/test/json/maintenance-spec/status-up.json5
-rw-r--r--server/sonar-web/src/test/json/metrics-spec/domains.json16
-rw-r--r--server/sonar-web/src/test/json/metrics-spec/error.json7
-rw-r--r--server/sonar-web/src/test/json/metrics-spec/search-big-1.json30
-rw-r--r--server/sonar-web/src/test/json/metrics-spec/search-big-2.json18
-rw-r--r--server/sonar-web/src/test/json/metrics-spec/search-created.json52
-rw-r--r--server/sonar-web/src/test/json/metrics-spec/search-updated.json41
-rw-r--r--server/sonar-web/src/test/json/metrics-spec/search.json41
-rw-r--r--server/sonar-web/src/test/json/metrics-spec/types.json15
-rw-r--r--server/sonar-web/src/test/json/nav-spec/component.json37
-rw-r--r--server/sonar-web/src/test/json/nav-spec/favorite.json20
-rw-r--r--server/sonar-web/src/test/json/nav-spec/global.json39
-rw-r--r--server/sonar-web/src/test/json/nav-spec/search.json34
-rw-r--r--server/sonar-web/src/test/json/permissions/global-permissions.json46
-rw-r--r--server/sonar-web/src/test/json/permissions/groups.json27
-rw-r--r--server/sonar-web/src/test/json/permissions/permission-templates.json89
-rw-r--r--server/sonar-web/src/test/json/permissions/project-permissions-changed.json55
-rw-r--r--server/sonar-web/src/test/json/permissions/project-permissions.json55
-rw-r--r--server/sonar-web/src/test/json/permissions/users.json14
-rw-r--r--server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-date.json32
-rw-r--r--server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity-with-IGNORED-differential-period.json32
-rw-r--r--server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity-with-differential-period.json32
-rw-r--r--server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity.json32
-rw-r--r--server/sonar-web/src/test/json/provisioning-spec/delete-error.json7
-rw-r--r--server/sonar-web/src/test/json/provisioning-spec/error.json4
-rw-r--r--server/sonar-web/src/test/json/provisioning-spec/search-big-1.json19
-rw-r--r--server/sonar-web/src/test/json/provisioning-spec/search-big-2.json13
-rw-r--r--server/sonar-web/src/test/json/provisioning-spec/search-created.json31
-rw-r--r--server/sonar-web/src/test/json/provisioning-spec/search-deleted.json13
-rw-r--r--server/sonar-web/src/test/json/provisioning-spec/search-filtered.json13
-rw-r--r--server/sonar-web/src/test/json/provisioning-spec/search.json25
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/app-anonymous.json835
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/app.json835
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/copy.json4
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/create-condition.json8
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/create.json4
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/list.json17
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/projects.json10
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/rename.json4
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/show-another.json4
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/show-created.json4
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/show.json58
-rw-r--r--server/sonar-web/src/test/json/quality-gates-spec/update-condition.json7
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/changelog.json28
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/changelog2.json13
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/compare.json99
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/copy.json8
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/create.json12
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/exporters.json8
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/importers-empty.json3
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/importers.json19
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/inheritance-change-parent.json23
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/inheritance-changed-parent.json22
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/inheritance-plus.json23
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/inheritance.json5
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/languages.json20
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/projects.json15
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/rules.json33
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/search-another-default.json49
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/search-change-parent.json76
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/search-changed-parent.json76
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/search-inheritance.json68
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/search-modified.json12
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/search-renamed.json48
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/search-with-copy.json56
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/search.json48
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/user-admin.json15
-rw-r--r--server/sonar-web/src/test/json/quality-profiles/user.json9
-rw-r--r--server/sonar-web/src/test/json/source-viewer-coverage/app.json19
-rw-r--r--server/sonar-web/src/test/json/source-viewer-coverage/issues.json14
-rw-r--r--server/sonar-web/src/test/json/source-viewer-coverage/lines.json18
-rw-r--r--server/sonar-web/src/test/json/source-viewer-coverage/test-cases.json15
-rw-r--r--server/sonar-web/src/test/json/source-viewer-create-manual-issue/api-rules-search.json27
-rw-r--r--server/sonar-web/src/test/json/source-viewer-create-manual-issue/app.json24
-rw-r--r--server/sonar-web/src/test/json/source-viewer-create-manual-issue/create-issue.json17
-rw-r--r--server/sonar-web/src/test/json/source-viewer-create-manual-issue/issues.json200
-rw-r--r--server/sonar-web/src/test/json/source-viewer-create-manual-issue/lines.json3868
-rw-r--r--server/sonar-web/src/test/json/source-viewer-duplications/app.json19
-rw-r--r--server/sonar-web/src/test/json/source-viewer-duplications/duplications-removed.json30
-rw-r--r--server/sonar-web/src/test/json/source-viewer-duplications/duplications.json41
-rw-r--r--server/sonar-web/src/test/json/source-viewer-duplications/issues.json14
-rw-r--r--server/sonar-web/src/test/json/source-viewer-duplications/lines.json22
-rw-r--r--server/sonar-web/src/test/json/source-viewer-issues/app.json19
-rw-r--r--server/sonar-web/src/test/json/source-viewer-issues/issues.json272
-rw-r--r--server/sonar-web/src/test/json/source-viewer-issues/lines.json18
-rw-r--r--server/sonar-web/src/test/json/source-viewer-issues/set-severity.json31
-rw-r--r--server/sonar-web/src/test/json/source-viewer-scm/app.json19
-rw-r--r--server/sonar-web/src/test/json/source-viewer-scm/issues.json14
-rw-r--r--server/sonar-web/src/test/json/source-viewer-scm/lines.json11
-rw-r--r--server/sonar-web/src/test/json/source-viewer-should-not-show-source-if-no-permission/api-components-app.json21
-rw-r--r--server/sonar-web/src/test/json/source-viewer-should-not-show-source-if-no-permission/api-issues-search.json234
-rw-r--r--server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-components-app.json21
-rw-r--r--server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-issues-search.json234
-rw-r--r--server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-sources-lines.json130
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/app-not-logged-in.json24
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/app-test.json24
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/app.json24
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/coverage.json196
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/covered-files.json9
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/cross-project-duplications.json33
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/duplications-in-deleted-files.json24
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/duplications.json25
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/issues-details.json46
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/issues-with-precise-location.json185
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/issues.json200
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/lines.json3868
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/measures-test.json25
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/measures.json136
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/metrics.json1469
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/resources-without-ncloc-data.json150
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/resources.json154
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/scm.json184
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/several-issues-on-a-line.json143
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/source.json521
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/test-cases.json235
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/tests.json39
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/tests/app.json18
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/tests/lines.json1808
-rw-r--r--server/sonar-web/src/test/json/source-viewer-spec/tests/tests.json38
-rw-r--r--server/sonar-web/src/test/json/treemap-spec/treemap-resources.json616
-rw-r--r--server/sonar-web/src/test/json/treemap-spec/treemap.json496
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/available.json68
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/installed.json63
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/pending.json54
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/system-updates.json26
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/updates.json118
-rw-r--r--server/sonar-web/src/test/json/users-spec/error.json7
-rw-r--r--server/sonar-web/src/test/json/users-spec/search-big-1.json19
-rw-r--r--server/sonar-web/src/test/json/users-spec/search-big-2.json13
-rw-r--r--server/sonar-web/src/test/json/users-spec/search-created.json34
-rw-r--r--server/sonar-web/src/test/json/users-spec/search-filtered.json13
-rw-r--r--server/sonar-web/src/test/json/users-spec/search-updated.json25
-rw-r--r--server/sonar-web/src/test/json/users-spec/search.json26
-rw-r--r--server/sonar-web/src/test/json/workspace/app.json24
-rw-r--r--server/sonar-web/src/test/json/workspace/issues.json9
-rw-r--r--server/sonar-web/src/test/json/workspace/lines.json72
-rw-r--r--server/sonar-web/src/test/json/workspace/rule.json36
262 files changed, 0 insertions, 37174 deletions
diff --git a/server/sonar-web/src/test/json/api-documentation/list.json b/server/sonar-web/src/test/json/api-documentation/list.json
deleted file mode 100644
index e9405f8aacd..00000000000
--- a/server/sonar-web/src/test/json/api-documentation/list.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "webServices": [
- {
- "path": "api/public",
- "description": "api/public description",
- "actions": [
- {
- "key": "do",
- "description": "api/public/do description",
- "since": "3.6",
- "internal": false,
- "post": true,
- "hasResponseExample": false,
- "params": [
- {
- "key": "format",
- "description": "api/public/do format description",
- "required": false,
- "possibleValues": [
- "json",
- "xml"
- ]
- }
- ]
- },
- {
- "key": "undo",
- "description": "api/public/undo description",
- "internal": false,
- "post": false,
- "hasResponseExample": true,
- "params": []
- }
- ]
- },
- {
- "path": "api/internal",
- "description": "api/internal description",
- "actions": [
- {
- "key": "move",
- "description": "api/internal/move description",
- "since": "4.4",
- "internal": true,
- "post": false,
- "hasResponseExample": false,
- "params": []
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/api-documentation/response-example.json b/server/sonar-web/src/test/json/api-documentation/response-example.json
deleted file mode 100644
index c186f4c1e9a..00000000000
--- a/server/sonar-web/src/test/json/api-documentation/response-example.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "format": "json",
- "example": "{\n \"authors\": {\n \"more\": true,\n \"results\": [\n {\n \"key\": \"leia.organa\",\n \"text\": \"leia.organa\"\n },\n {\n \"key\": \"luke@skywalker.name\",\n \"text\": \"luke@skywalker.name\"\n }\n ]\n }\n}"
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/active-severities-facet.json b/server/sonar-web/src/test/json/coding-rules-spec/active-severities-facet.json
deleted file mode 100644
index faa4ae6d696..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/active-severities-facet.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "total": 192,
- "p": 1,
- "ps": 1,
- "rules": [],
- "facets": [
- {
- "property": "active_severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 105
- },
- {
- "val": "CRITICAL",
- "count": 51
- },
- {
- "val": "MINOR",
- "count": 20
- },
- {
- "val": "BLOCKER",
- "count": 13
- },
- {
- "val": "INFO",
- "count": 3
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/app-no-available-profiles.json b/server/sonar-web/src/test/json/coding-rules-spec/app-no-available-profiles.json
deleted file mode 100644
index 4e69bdee31a..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/app-no-available-profiles.json
+++ /dev/null
@@ -1,258 +0,0 @@
-{
- "canWrite": true,
- "qualityprofiles": [
- {
- "key": "java-default-with-mojo-conventions-49307",
- "name": "Default - Maven Conventions",
- "lang": "java",
- "parentKey": "java-top-profile-without-formatting-conventions-50037"
- }
- ],
- "languages": {
- "py": "Python",
- "js": "JavaScript",
- "php": "PHP",
- "java": "Java"
- },
- "repositories": [
- {
- "key": "common-java",
- "name": "Common SonarQube",
- "language": "java"
- },
- {
- "key": "common-js",
- "name": "Common SonarQube",
- "language": "js"
- },
- {
- "key": "common-php",
- "name": "Common SonarQube",
- "language": "php"
- },
- {
- "key": "common-py",
- "name": "Common SonarQube",
- "language": "py"
- },
- {
- "key": "Pylint",
- "name": "Pylint",
- "language": "py"
- },
- {
- "key": "javascript",
- "name": "SonarQube",
- "language": "js"
- },
- {
- "key": "php",
- "name": "SonarQube",
- "language": "php"
- },
- {
- "key": "python",
- "name": "SonarQube",
- "language": "py"
- },
- {
- "key": "squid",
- "name": "SonarQube",
- "language": "java"
- }
- ],
- "statuses": {
- "BETA": "Beta",
- "DEPRECATED": "Deprecated",
- "READY": "Ready"
- },
- "characteristics": [
- {
- "key": "UNDERSTANDABILITY",
- "name": "Understandability",
- "parent": "MAINTAINABILITY"
- },
- {
- "key": "MAINTAINABILITY",
- "name": "Maintainability"
- },
- {
- "key": "TIME_ZONE_RELATED_PORTABILITY",
- "name": "Time zone related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "READABILITY",
- "name": "Readability",
- "parent": "MAINTAINABILITY"
- },
- {
- "key": "SECURITY_FEATURES",
- "name": "Security features",
- "parent": "SECURITY"
- },
- {
- "key": "ARCHITECTURE_RELIABILITY",
- "name": "Architecture related reliability",
- "parent": "RELIABILITY"
- },
- {
- "key": "OS_RELATED_PORTABILITY",
- "name": "OS related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "EXCEPTION_HANDLING",
- "name": "Exception handling",
- "parent": "RELIABILITY"
- },
- {
- "key": "LOGIC_CHANGEABILITY",
- "name": "Logic related changeability",
- "parent": "CHANGEABILITY"
- },
- {
- "key": "SOFTWARE_RELATED_PORTABILITY",
- "name": "Software related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "INPUT_VALIDATION_AND_REPRESENTATION",
- "name": "Input validation and representation",
- "parent": "SECURITY"
- },
- {
- "key": "LANGUAGE_RELATED_PORTABILITY",
- "name": "Language related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "ERRORS",
- "name": "Errors",
- "parent": "SECURITY"
- },
- {
- "key": "SECURITY",
- "name": "Security"
- },
- {
- "key": "RELIABILITY",
- "name": "Reliability"
- },
- {
- "key": "PORTABILITY",
- "name": "Portability"
- },
- {
- "key": "HARDWARE_RELATED_PORTABILITY",
- "name": "Hardware related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "SYNCHRONIZATION_RELIABILITY",
- "name": "Synchronization related reliability",
- "parent": "RELIABILITY"
- },
- {
- "key": "TRANSPORTABILITY",
- "name": "Transportability",
- "parent": "REUSABILITY"
- },
- {
- "key": "COMPILER_RELATED_PORTABILITY",
- "name": "Compiler related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "RESOURCE_RELIABILITY",
- "name": "Resource",
- "parent": "RELIABILITY"
- },
- {
- "key": "CPU_EFFICIENCY",
- "name": "Processor use",
- "parent": "EFFICIENCY"
- },
- {
- "key": "EFFICIENCY",
- "name": "Efficiency"
- },
- {
- "key": "CHANGEABILITY",
- "name": "Changeability"
- },
- {
- "key": "DATA_CHANGEABILITY",
- "name": "Data related changeability",
- "parent": "CHANGEABILITY"
- },
- {
- "key": "API_ABUSE",
- "name": "API abuse",
- "parent": "SECURITY"
- },
- {
- "key": "ARCHITECTURE_CHANGEABILITY",
- "name": "Architecture related changeability",
- "parent": "CHANGEABILITY"
- },
- {
- "key": "UNIT_TESTS",
- "name": "Unit tests",
- "parent": "RELIABILITY"
- },
- {
- "key": "INSTRUCTION_RELIABILITY",
- "name": "Instruction related reliability",
- "parent": "RELIABILITY"
- },
- {
- "key": "REUSABILITY",
- "name": "Reusability"
- },
- {
- "key": "MODULARITY",
- "name": "Modularity",
- "parent": "REUSABILITY"
- },
- {
- "key": "UNIT_TESTABILITY",
- "name": "Unit level testability",
- "parent": "TESTABILITY"
- },
- {
- "key": "TESTABILITY",
- "name": "Testability"
- },
- {
- "key": "INTEGRATION_TESTABILITY",
- "name": "Integration level testability",
- "parent": "TESTABILITY"
- },
- {
- "key": "NETWORK_USE",
- "name": "Network use",
- "parent": "EFFICIENCY"
- },
- {
- "key": "MEMORY_EFFICIENCY",
- "name": "Memory use",
- "parent": "EFFICIENCY"
- },
- {
- "key": "DATA_RELIABILITY",
- "name": "Data related reliability",
- "parent": "RELIABILITY"
- },
- {
- "key": "FAULT_TOLERANCE",
- "name": "Fault tolerance",
- "parent": "RELIABILITY"
- },
- {
- "key": "LOGIC_RELIABILITY",
- "name": "Logic related reliability",
- "parent": "RELIABILITY"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/app.json b/server/sonar-web/src/test/json/coding-rules-spec/app.json
deleted file mode 100644
index 50148bb1b6e..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/app.json
+++ /dev/null
@@ -1,316 +0,0 @@
-{
- "canWrite": true,
- "qualityprofiles": [
- {
- "key": "java-default-with-mojo-conventions-49307",
- "name": "Default - Maven Conventions",
- "lang": "java",
- "parentKey": "java-top-profile-without-formatting-conventions-50037"
- },
- {
- "key": "java-default-with-sonarsource-conventions-27339",
- "name": "Default - SonarSource conventions",
- "lang": "java",
- "parentKey": "java-top-profile-without-formatting-conventions-50037"
- },
- {
- "key": "java-top-profile-without-formatting-conventions-50037",
- "name": "Default - Top",
- "lang": "java"
- },
- {
- "key": "java-findbugs-14954",
- "name": "FindBugs",
- "lang": "java"
- },
- {
- "key": "java-for-sq-java-plugin-only-92289",
- "name": "For SQ Java Plugin Only",
- "lang": "java",
- "parentKey": "java-default-with-sonarsource-conventions-27339"
- },
- {
- "key": "java-for-sq-only-95381",
- "name": "For SQ Only",
- "lang": "java",
- "parentKey": "java-default-with-sonarsource-conventions-27339"
- },
- {
- "key": "php-psr-2-06315",
- "name": "PSR-2",
- "lang": "php"
- },
- {
- "key": "java-sonar-way-80423",
- "name": "Sonar way",
- "lang": "java"
- },
- {
- "key": "js-sonar-way",
- "name": "Sonar way",
- "lang": "js"
- },
- {
- "key": "php-sonar-way-05548",
- "name": "Sonar way",
- "lang": "php"
- },
- {
- "key": "py-sonar-way-80265",
- "name": "Sonar way",
- "lang": "py"
- },
- {
- "key": "java-without-findbugs",
- "name": "Without Findbugs",
- "lang": "java"
- }
- ],
- "languages": {
- "py": "Python",
- "js": "JavaScript",
- "php": "PHP",
- "java": "Java"
- },
- "repositories": [
- {
- "key": "common-java",
- "name": "Common SonarQube",
- "language": "java"
- },
- {
- "key": "common-js",
- "name": "Common SonarQube",
- "language": "js"
- },
- {
- "key": "common-php",
- "name": "Common SonarQube",
- "language": "php"
- },
- {
- "key": "common-py",
- "name": "Common SonarQube",
- "language": "py"
- },
- {
- "key": "Pylint",
- "name": "Pylint",
- "language": "py"
- },
- {
- "key": "javascript",
- "name": "SonarQube",
- "language": "js"
- },
- {
- "key": "php",
- "name": "SonarQube",
- "language": "php"
- },
- {
- "key": "python",
- "name": "SonarQube",
- "language": "py"
- },
- {
- "key": "squid",
- "name": "SonarQube",
- "language": "java"
- }
- ],
- "statuses": {
- "BETA": "Beta",
- "DEPRECATED": "Deprecated",
- "READY": "Ready"
- },
- "characteristics": [
- {
- "key": "UNDERSTANDABILITY",
- "name": "Understandability",
- "parent": "MAINTAINABILITY"
- },
- {
- "key": "MAINTAINABILITY",
- "name": "Maintainability"
- },
- {
- "key": "TIME_ZONE_RELATED_PORTABILITY",
- "name": "Time zone related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "READABILITY",
- "name": "Readability",
- "parent": "MAINTAINABILITY"
- },
- {
- "key": "SECURITY_FEATURES",
- "name": "Security features",
- "parent": "SECURITY"
- },
- {
- "key": "ARCHITECTURE_RELIABILITY",
- "name": "Architecture related reliability",
- "parent": "RELIABILITY"
- },
- {
- "key": "OS_RELATED_PORTABILITY",
- "name": "OS related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "EXCEPTION_HANDLING",
- "name": "Exception handling",
- "parent": "RELIABILITY"
- },
- {
- "key": "LOGIC_CHANGEABILITY",
- "name": "Logic related changeability",
- "parent": "CHANGEABILITY"
- },
- {
- "key": "SOFTWARE_RELATED_PORTABILITY",
- "name": "Software related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "INPUT_VALIDATION_AND_REPRESENTATION",
- "name": "Input validation and representation",
- "parent": "SECURITY"
- },
- {
- "key": "LANGUAGE_RELATED_PORTABILITY",
- "name": "Language related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "ERRORS",
- "name": "Errors",
- "parent": "SECURITY"
- },
- {
- "key": "SECURITY",
- "name": "Security"
- },
- {
- "key": "RELIABILITY",
- "name": "Reliability"
- },
- {
- "key": "PORTABILITY",
- "name": "Portability"
- },
- {
- "key": "HARDWARE_RELATED_PORTABILITY",
- "name": "Hardware related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "SYNCHRONIZATION_RELIABILITY",
- "name": "Synchronization related reliability",
- "parent": "RELIABILITY"
- },
- {
- "key": "TRANSPORTABILITY",
- "name": "Transportability",
- "parent": "REUSABILITY"
- },
- {
- "key": "COMPILER_RELATED_PORTABILITY",
- "name": "Compiler related portability",
- "parent": "PORTABILITY"
- },
- {
- "key": "RESOURCE_RELIABILITY",
- "name": "Resource",
- "parent": "RELIABILITY"
- },
- {
- "key": "CPU_EFFICIENCY",
- "name": "Processor use",
- "parent": "EFFICIENCY"
- },
- {
- "key": "EFFICIENCY",
- "name": "Efficiency"
- },
- {
- "key": "CHANGEABILITY",
- "name": "Changeability"
- },
- {
- "key": "DATA_CHANGEABILITY",
- "name": "Data related changeability",
- "parent": "CHANGEABILITY"
- },
- {
- "key": "API_ABUSE",
- "name": "API abuse",
- "parent": "SECURITY"
- },
- {
- "key": "ARCHITECTURE_CHANGEABILITY",
- "name": "Architecture related changeability",
- "parent": "CHANGEABILITY"
- },
- {
- "key": "UNIT_TESTS",
- "name": "Unit tests",
- "parent": "RELIABILITY"
- },
- {
- "key": "INSTRUCTION_RELIABILITY",
- "name": "Instruction related reliability",
- "parent": "RELIABILITY"
- },
- {
- "key": "REUSABILITY",
- "name": "Reusability"
- },
- {
- "key": "MODULARITY",
- "name": "Modularity",
- "parent": "REUSABILITY"
- },
- {
- "key": "UNIT_TESTABILITY",
- "name": "Unit level testability",
- "parent": "TESTABILITY"
- },
- {
- "key": "TESTABILITY",
- "name": "Testability"
- },
- {
- "key": "INTEGRATION_TESTABILITY",
- "name": "Integration level testability",
- "parent": "TESTABILITY"
- },
- {
- "key": "NETWORK_USE",
- "name": "Network use",
- "parent": "EFFICIENCY"
- },
- {
- "key": "MEMORY_EFFICIENCY",
- "name": "Memory use",
- "parent": "EFFICIENCY"
- },
- {
- "key": "DATA_RELIABILITY",
- "name": "Data related reliability",
- "parent": "RELIABILITY"
- },
- {
- "key": "FAULT_TOLERANCE",
- "name": "Fault tolerance",
- "parent": "RELIABILITY"
- },
- {
- "key": "LOGIC_RELIABILITY",
- "name": "Logic related reliability",
- "parent": "RELIABILITY"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/create-create-custom-rules.json b/server/sonar-web/src/test/json/coding-rules-spec/create-create-custom-rules.json
deleted file mode 100644
index ef93a9be8d8..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/create-create-custom-rules.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "rule": {
- "key": "squid:My_Custom_Rule",
- "repo": "squid",
- "name": "My Custom Rule",
- "createdAt": "2015-03-23T09:30:40+0100",
- "severity": "MAJOR",
- "status": "READY",
- "internalKey": "ArchitecturalConstraint",
- "isTemplate": false,
- "templateKey": "squid:ArchitecturalConstraint",
- "tags": [],
- "sysTags": [],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "My Description",
- "mdDesc": "My Description",
- "debtOverloaded": false,
- "params": [
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING",
- "defaultValue": "java.util.Vector"
- },
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING",
- "defaultValue": "java.util.Hashtable"
- }
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/issues-search.json b/server/sonar-web/src/test/json/coding-rules-spec/issues-search.json
deleted file mode 100644
index 041784107a4..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/issues-search.json
+++ /dev/null
@@ -1,50 +0,0 @@
-{
- "total": 7,
- "p": 1,
- "ps": 1,
- "components": [
- {
- "uuid": "3b22f38e-ad68-4792-9791-1435584a686c",
- "key": "org.codehaus.sonar.runner:sonar-runner",
- "id": 17226,
- "qualifier": "TRK",
- "name": "SonarQube Runner",
- "longName": "SonarQube Runner"
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- }
- ],
- "issues": [],
- "rules": [],
- "users": [],
- "languages": [],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 1,
- "total": 7,
- "fTotal": "7",
- "pages": 7
- },
- "facets": [
- {
- "property": "projectUuids",
- "values": [
- {
- "val": "69e57151-be0d-4157-adff-c06741d88879",
- "count": 2
- },
- {
- "val": "3b22f38e-ad68-4792-9791-1435584a686c",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-BLOCKER.json b/server/sonar-web/src/test/json/coding-rules-spec/search-BLOCKER.json
deleted file mode 100644
index 3dc49f0bca3..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-BLOCKER.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 4,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-active.json b/server/sonar-web/src/test/json/coding-rules-spec/search-active.json
deleted file mode 100644
index 544cca64336..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-active.json
+++ /dev/null
@@ -1,43 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "common-java:DuplicatedBlocks",
- "tags": [],
- "status": "READY",
- "langName": "Java",
- "name": "Duplicated blocks",
- "severity": "MAJOR",
- "isTemplate": false,
- "params": [],
- "lang": "java",
- "sysTags": []
- }
- ],
- "actives": {
- "common-java:DuplicatedBlocks": [
- {
- "qProfile": "java-default-with-mojo-conventions-49307",
- "inherit": "NONE",
- "severity": "MAJOR",
- "params": []
- }
- ]
- },
- "qProfiles": {
- "java-default-with-mojo-conventions-49307": {
- "name": "Default - Maven Conventions",
- "lang": "java",
- "langName": "Java",
- "parent": "java-top-profile-without-formatting-conventions-50037"
- },
- "java-top-profile-without-formatting-conventions-50037": {
- "name": "Default - Top",
- "lang": "java",
- "langName": "Java"
- }
- },
- "facets": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-actives.json b/server/sonar-web/src/test/json/coding-rules-spec/search-actives.json
deleted file mode 100644
index 50df4bde597..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-actives.json
+++ /dev/null
@@ -1,106 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "common-java:DuplicatedBlocks",
- "tags": [],
- "status": "READY",
- "langName": "Java",
- "name": "Duplicated blocks",
- "severity": "MAJOR",
- "isTemplate": false,
- "params": [],
- "lang": "java",
- "sysTags": []
- },
- {
- "key": "common-java:InsufficientBranchCoverage",
- "tags": [],
- "status": "READY",
- "langName": "Java",
- "name": "Insufficient branch coverage by unit tests",
- "severity": "MAJOR",
- "isTemplate": false,
- "params": [
- {
- "key": "minimumBranchCoverageRatio",
- "htmlDesc": "The minimum required branch coverage ratio.",
- "type": "STRING",
- "defaultValue": "65.0"
- }
- ],
- "lang": "java",
- "sysTags": []
- }
- ],
- "actives": {
- "common-java:DuplicatedBlocks": [
- {
- "qProfile": "java-default-with-mojo-conventions-49307",
- "inherit": "NONE",
- "severity": "MAJOR",
- "params": []
- }
- ],
- "common-java:InsufficientBranchCoverage": [
- {
- "qProfile": "java-default-with-mojo-conventions-49307",
- "inherit": "INHERITED",
- "severity": "MAJOR",
- "params": [
- {
- "key": "minimumBranchCoverageRatio",
- "value": "65.0"
- }
- ]
- }
- ]
- },
- "qProfiles": {
- "java-default-with-mojo-conventions-49307": {
- "name": "Default - Maven Conventions",
- "lang": "java",
- "langName": "Java",
- "parent": "java-top-profile-without-formatting-conventions-50037"
- },
- "java-top-profile-without-formatting-conventions-50037": {
- "name": "Default - Top",
- "lang": "java",
- "langName": "Java"
- }
- },
- "facets": [
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 2
- }
- ]
- },
- {
- "property": "tags",
- "values": []
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "findbugs",
- "count": 302
- },
- {
- "val": "squid",
- "count": 228
- },
- {
- "val": "common-java",
- "count": 2
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-characteristic.json b/server/sonar-web/src/test/json/coding-rules-spec/search-characteristic.json
deleted file mode 100644
index a707bb7acd6..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-characteristic.json
+++ /dev/null
@@ -1,156 +0,0 @@
-{
- "total": 621,
- "p": 1,
- "ps": 1,
- "rules": [
- {
- "key": "manual:My_Manual_Rule",
- "repo": "manual",
- "name": "My Manual Rule",
- "createdAt": "2015-03-17T17:26:47+0100",
- "status": "READY",
- "isTemplate": false,
- "tags": [],
- "sysTags": [],
- "htmlDesc": "My Description",
- "mdDesc": "My Description",
- "debtOverloaded": false,
- "params": []
- }
- ],
- "facets": [
- {
- "property": "debt_characteristics",
- "values": [
- {
- "val": "MAINTAINABILITY",
- "count": 172
- },
- {
- "val": "RELIABILITY",
- "count": 143
- },
- {
- "val": "CHANGEABILITY",
- "count": 24
- },
- {
- "val": "TESTABILITY",
- "count": 23
- },
- {
- "val": "PORTABILITY",
- "count": 21
- },
- {
- "val": "SECURITY",
- "count": 21
- },
- {
- "val": "EFFICIENCY",
- "count": 9
- },
- {
- "val": "READABILITY",
- "count": 102
- },
- {
- "val": "UNDERSTANDABILITY",
- "count": 70
- },
- {
- "val": "INSTRUCTION_RELIABILITY",
- "count": 42
- },
- {
- "val": "LOGIC_RELIABILITY",
- "count": 39
- },
- {
- "val": "UNIT_TESTABILITY",
- "count": 23
- },
- {
- "val": "ARCHITECTURE_RELIABILITY",
- "count": 22
- },
- {
- "val": "DATA_RELIABILITY",
- "count": 16
- },
- {
- "val": "ARCHITECTURE_CHANGEABILITY",
- "count": 12
- },
- {
- "val": "SECURITY_FEATURES",
- "count": 10
- },
- {
- "val": "EXCEPTION_HANDLING",
- "count": 9
- },
- {
- "val": "LOGIC_CHANGEABILITY",
- "count": 9
- },
- {
- "val": "COMPILER_RELATED_PORTABILITY",
- "count": 8
- },
- {
- "val": "INPUT_VALIDATION_AND_REPRESENTATION",
- "count": 7
- },
- {
- "val": "SYNCHRONIZATION_RELIABILITY",
- "count": 7
- },
- {
- "val": "UNIT_TESTS",
- "count": 7
- },
- {
- "val": "CPU_EFFICIENCY",
- "count": 6
- },
- {
- "val": "LANGUAGE_RELATED_PORTABILITY",
- "count": 6
- },
- {
- "val": "SOFTWARE_RELATED_PORTABILITY",
- "count": 6
- },
- {
- "val": "DATA_CHANGEABILITY",
- "count": 3
- },
- {
- "val": "ERRORS",
- "count": 3
- },
- {
- "val": "MEMORY_EFFICIENCY",
- "count": 3
- },
- {
- "val": "API_ABUSE",
- "count": 1
- },
- {
- "val": "FAULT_TOLERANCE",
- "count": 1
- },
- {
- "val": "OS_RELATED_PORTABILITY",
- "count": 1
- },
- {
- "val": "NONE",
- "count": 208
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-create-custom-rules.json b/server/sonar-web/src/test/json/coding-rules-spec/search-create-custom-rules.json
deleted file mode 100644
index 40ab6ae953a..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-create-custom-rules.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "squid:ArchitecturalConstraint",
- "name": "Architectural constraint",
- "lang": "java",
- "langName": "Java",
- "sysTags": [],
- "tags": [],
- "status": "READY"
- }
- ],
- "facets": [
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 1
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-create-manual-rule.json b/server/sonar-web/src/test/json/coding-rules-spec/search-create-manual-rule.json
deleted file mode 100644
index f43d117c569..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-create-manual-rule.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "total": 0,
- "p": 1,
- "ps": 200,
- "rules": [],
- "facets": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-custom-rules.json b/server/sonar-web/src/test/json/coding-rules-spec/search-custom-rules.json
deleted file mode 100644
index db83a85fbd6..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-custom-rules.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 10,
- "rules": [
- {
- "key": "squid:Do_not_use_org_h2_util_StringUtils",
- "name": "Do not use org.h2.util.StringUtils",
- "severity": "MAJOR",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING",
- "defaultValue": ""
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING",
- "defaultValue": "org.h2.util.StringUtils"
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-custom-rules2.json b/server/sonar-web/src/test/json/coding-rules-spec/search-custom-rules2.json
deleted file mode 100644
index 0e4184e48a9..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-custom-rules2.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 10,
- "rules": [
- {
- "key": "squid:Do_not_use_org_h2_util_StringUtils",
- "name": "Do not use org.h2.util.StringUtils",
- "severity": "MAJOR",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING",
- "defaultValue": ""
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING",
- "defaultValue": "org.h2.util.StringUtils"
- }
- ]
- },
- {
- "key": "squid:Do_not_use_edu_emory_mathcs_backport_java_util_Collections",
- "name": "Do not use edu.emory.mathcs.backport.java.util.Collections",
- "severity": "MAJOR",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING",
- "defaultValue": ""
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING",
- "defaultValue": "edu.emory.mathcs.backport.java.util.Collections"
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-delete-custom-rule-custom-rules.json b/server/sonar-web/src/test/json/coding-rules-spec/search-delete-custom-rule-custom-rules.json
deleted file mode 100644
index 0e4184e48a9..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-delete-custom-rule-custom-rules.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 10,
- "rules": [
- {
- "key": "squid:Do_not_use_org_h2_util_StringUtils",
- "name": "Do not use org.h2.util.StringUtils",
- "severity": "MAJOR",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING",
- "defaultValue": ""
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING",
- "defaultValue": "org.h2.util.StringUtils"
- }
- ]
- },
- {
- "key": "squid:Do_not_use_edu_emory_mathcs_backport_java_util_Collections",
- "name": "Do not use edu.emory.mathcs.backport.java.util.Collections",
- "severity": "MAJOR",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING",
- "defaultValue": ""
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING",
- "defaultValue": "edu.emory.mathcs.backport.java.util.Collections"
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-delete-custom-rule.json b/server/sonar-web/src/test/json/coding-rules-spec/search-delete-custom-rule.json
deleted file mode 100644
index 40ab6ae953a..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-delete-custom-rule.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "squid:ArchitecturalConstraint",
- "name": "Architectural constraint",
- "lang": "java",
- "langName": "Java",
- "sysTags": [],
- "tags": [],
- "status": "READY"
- }
- ],
- "facets": [
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 1
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-delete-manual-rule-after.json b/server/sonar-web/src/test/json/coding-rules-spec/search-delete-manual-rule-after.json
deleted file mode 100644
index f43d117c569..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-delete-manual-rule-after.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "total": 0,
- "p": 1,
- "ps": 200,
- "rules": [],
- "facets": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-delete-manual-rule-before.json b/server/sonar-web/src/test/json/coding-rules-spec/search-delete-manual-rule-before.json
deleted file mode 100644
index 1f19e1d27c2..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-delete-manual-rule-before.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "manual:Manual_Rule",
- "name": "Manual Rule",
- "sysTags": [],
- "tags": [],
- "status": "READY"
- }
- ],
- "facets": [
- {
- "property": "repositories",
- "values": [
- {
- "val": "manual",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-deprecated.json b/server/sonar-web/src/test/json/coding-rules-spec/search-deprecated.json
deleted file mode 100644
index ddeb1cb7984..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-deprecated.json
+++ /dev/null
@@ -1,396 +0,0 @@
-{
- "total": 609,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "status": "DEPRECATED",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "status": "READY",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "status": "READY",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "status": "READY",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "status": "READY",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "status": "READY",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "status": "READY",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "status": "READY",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "status": "READY",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "status": "READY",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "status": "READY",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "status": "READY",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "status": "READY",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "status": "READY",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "status": "READY",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "status": "READY",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "status": "READY",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "status": "READY",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "status": "READY",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "status": "READY",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "status": "READY",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "status": "READY",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "status": "READY",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "status": "READY",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "status": "READY",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-empty.json b/server/sonar-web/src/test/json/coding-rules-spec/search-empty.json
deleted file mode 100644
index f43d117c569..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-empty.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "total": 0,
- "p": 1,
- "ps": 200,
- "rules": [],
- "facets": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-hide-templates.json b/server/sonar-web/src/test/json/coding-rules-spec/search-hide-templates.json
deleted file mode 100644
index 248f06918ef..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-hide-templates.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "total": 7,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- }
- ],
- "facets": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-inactive.json b/server/sonar-web/src/test/json/coding-rules-spec/search-inactive.json
deleted file mode 100644
index bff4fda5566..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-inactive.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "total": 4,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "common-java:FailedUnitTests",
- "tags": [],
- "status": "READY",
- "langName": "Java",
- "name": "Failed unit tests",
- "severity": "MAJOR",
- "isTemplate": false,
- "params": [],
- "lang": "java",
- "sysTags": []
- }
- ],
- "actives": {},
- "qProfiles": {},
- "facets": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-inherited.json b/server/sonar-web/src/test/json/coding-rules-spec/search-inherited.json
deleted file mode 100644
index ca5b3316b7c..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-inherited.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 101,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-limited.json b/server/sonar-web/src/test/json/coding-rules-spec/search-limited.json
deleted file mode 100644
index ca5b3316b7c..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-limited.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 101,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-no-available-profiles.json b/server/sonar-web/src/test/json/coding-rules-spec/search-no-available-profiles.json
deleted file mode 100644
index b5a6bc269b9..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-no-available-profiles.json
+++ /dev/null
@@ -1,171 +0,0 @@
-{
- "total": 10,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "squid:S1181",
- "name": "Throwable and Error classes should not be caught",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "error-handling"
- ],
- "tags": []
- },
- {
- "key": "squid:S1849",
- "name": "\"Iterator.hasNext()\" should not call \"Iterator.next()\"",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:S1844",
- "name": "\"Object.wait(...)\" should never be called on objects that implement \"java.util.concurrent.locks.Condition\"",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug",
- "pitfall"
- ],
- "tags": []
- },
- {
- "key": "squid:S2258",
- "name": "\"javax.crypto.NullCipher\" should not be used for anything other than testing",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security"
- ],
- "tags": []
- },
- {
- "key": "squid:S2251",
- "name": "A \"for\" loop update clause should move the counter in the right direction",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:ObjectFinalizeOverridenCallsSuperFinalizeCheck",
- "name": "super.finalize() should be called at the end of Object.finalize() implementations",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:S1143",
- "name": "Return statements should not occur in finally blocks",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:S1206",
- "name": "\"equals(Object obj)\" and \"hashCode()\" should be overridden in pairs",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:S1451",
- "name": "Copyright and license headers should be defined in all source files",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "squid:S1697",
- "name": "Short-circuit logic should be used to prevent null pointer dereferences in conditionals",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "bug",
- "count": 7
- },
- {
- "val": "convention",
- "count": 1
- },
- {
- "val": "cwe",
- "count": 1
- },
- {
- "val": "error-handling",
- "count": 1
- },
- {
- "val": "owasp-top10",
- "count": 1
- },
- {
- "val": "pitfall",
- "count": 1
- },
- {
- "val": "security",
- "count": 1
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 10
- },
- {
- "val": "js",
- "count": 6
- },
- {
- "val": "php",
- "count": 2
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 10
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-not-inherited.json b/server/sonar-web/src/test/json/coding-rules-spec/search-not-inherited.json
deleted file mode 100644
index c49bff75f1c..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-not-inherited.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 103,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-only-templates.json b/server/sonar-web/src/test/json/coding-rules-spec/search-only-templates.json
deleted file mode 100644
index 30ecd5b88ef..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-only-templates.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "total": 8,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- }
- ],
- "facets": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-overriden.json b/server/sonar-web/src/test/json/coding-rules-spec/search-overriden.json
deleted file mode 100644
index 60bb4a7796e..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-overriden.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 102,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet-qprofile-active.json b/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet-qprofile-active.json
deleted file mode 100644
index cbbb2722ae9..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet-qprofile-active.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 407,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet-qprofile-inactive.json b/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet-qprofile-inactive.json
deleted file mode 100644
index 63dd5c45733..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet-qprofile-inactive.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 408,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet.json b/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet.json
deleted file mode 100644
index c17c58d2b42..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-profile-facet.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 609,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile-active.json b/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile-active.json
deleted file mode 100644
index cbbb2722ae9..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile-active.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 407,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile.json b/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile.json
deleted file mode 100644
index cbbb2722ae9..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 407,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile2.json b/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile2.json
deleted file mode 100644
index 63dd5c45733..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-qprofile2.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 408,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-query.json b/server/sonar-web/src/test/json/coding-rules-spec/search-query.json
deleted file mode 100644
index 3dc49f0bca3..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-query.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 4,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-show-cutsom-rule-custom-rules.json b/server/sonar-web/src/test/json/coding-rules-spec/search-show-cutsom-rule-custom-rules.json
deleted file mode 100644
index 0e4184e48a9..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-show-cutsom-rule-custom-rules.json
+++ /dev/null
@@ -1,45 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 10,
- "rules": [
- {
- "key": "squid:Do_not_use_org_h2_util_StringUtils",
- "name": "Do not use org.h2.util.StringUtils",
- "severity": "MAJOR",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING",
- "defaultValue": ""
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING",
- "defaultValue": "org.h2.util.StringUtils"
- }
- ]
- },
- {
- "key": "squid:Do_not_use_edu_emory_mathcs_backport_java_util_Collections",
- "name": "Do not use edu.emory.mathcs.backport.java.util.Collections",
- "severity": "MAJOR",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING",
- "defaultValue": ""
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING",
- "defaultValue": "edu.emory.mathcs.backport.java.util.Collections"
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-show-cutsom-rule.json b/server/sonar-web/src/test/json/coding-rules-spec/search-show-cutsom-rule.json
deleted file mode 100644
index 40ab6ae953a..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-show-cutsom-rule.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "squid:ArchitecturalConstraint",
- "name": "Architectural constraint",
- "lang": "java",
- "langName": "Java",
- "sysTags": [],
- "tags": [],
- "status": "READY"
- }
- ],
- "facets": [
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 1
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-show-details.json b/server/sonar-web/src/test/json/coding-rules-spec/search-show-details.json
deleted file mode 100644
index b5a6bc269b9..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-show-details.json
+++ /dev/null
@@ -1,171 +0,0 @@
-{
- "total": 10,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "squid:S1181",
- "name": "Throwable and Error classes should not be caught",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "error-handling"
- ],
- "tags": []
- },
- {
- "key": "squid:S1849",
- "name": "\"Iterator.hasNext()\" should not call \"Iterator.next()\"",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:S1844",
- "name": "\"Object.wait(...)\" should never be called on objects that implement \"java.util.concurrent.locks.Condition\"",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug",
- "pitfall"
- ],
- "tags": []
- },
- {
- "key": "squid:S2258",
- "name": "\"javax.crypto.NullCipher\" should not be used for anything other than testing",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security"
- ],
- "tags": []
- },
- {
- "key": "squid:S2251",
- "name": "A \"for\" loop update clause should move the counter in the right direction",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:ObjectFinalizeOverridenCallsSuperFinalizeCheck",
- "name": "super.finalize() should be called at the end of Object.finalize() implementations",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:S1143",
- "name": "Return statements should not occur in finally blocks",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:S1206",
- "name": "\"equals(Object obj)\" and \"hashCode()\" should be overridden in pairs",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- },
- {
- "key": "squid:S1451",
- "name": "Copyright and license headers should be defined in all source files",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "squid:S1697",
- "name": "Short-circuit logic should be used to prevent null pointer dereferences in conditionals",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "bug"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "bug",
- "count": 7
- },
- {
- "val": "convention",
- "count": 1
- },
- {
- "val": "cwe",
- "count": 1
- },
- {
- "val": "error-handling",
- "count": 1
- },
- {
- "val": "owasp-top10",
- "count": 1
- },
- {
- "val": "pitfall",
- "count": 1
- },
- {
- "val": "security",
- "count": 1
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 10
- },
- {
- "val": "js",
- "count": 6
- },
- {
- "val": "php",
- "count": 2
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 10
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-sql-tag.json b/server/sonar-web/src/test/json/coding-rules-spec/search-sql-tag.json
deleted file mode 100644
index d03932b85b6..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-sql-tag.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 200,
- "rules": [
- {
- "key": "php:S2014",
- "tags": [],
- "status": "READY",
- "langName": "PHP",
- "name": "\"$this\" should not be used in a static context",
- "lang": "php",
- "sysTags": [
- "sql"
- ]
- },
- {
- "key": "squid:S2204",
- "tags": [],
- "status": "READY",
- "langName": "Java",
- "name": "\".equals()\" should not be used to test the values of \"Atomic\" classes",
- "lang": "java",
- "sysTags": [
- "sql"
- ]
- }
- ],
- "facets": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-with-custom-language.json b/server/sonar-web/src/test/json/coding-rules-spec/search-with-custom-language.json
deleted file mode 100644
index a183f5dec63..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-with-custom-language.json
+++ /dev/null
@@ -1,94 +0,0 @@
-{
- "total": 13,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- }
- ],
- "facets": [
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 227
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 78
- },
- {
- "val": "custom",
- "count": 13
- }
- ]
- },
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 77
- },
- {
- "val": "bug",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 44
- },
- {
- "val": "cwe",
- "count": 31
- },
- {
- "val": "pitfall",
- "count": 29
- },
- {
- "val": "misra",
- "count": 24
- },
- {
- "val": "security",
- "count": 22
- },
- {
- "val": "unused",
- "count": 21
- },
- {
- "val": "cert",
- "count": 17
- },
- {
- "val": "psr2",
- "count": 12
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-with-memory-efficiency-characteristic.json b/server/sonar-web/src/test/json/coding-rules-spec/search-with-memory-efficiency-characteristic.json
deleted file mode 100644
index b91ef7d03c1..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-with-memory-efficiency-characteristic.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "total": 3,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- }
- ],
- "facets": [
- {
- "property": "debt_characteristics",
- "values": [
- {
- "val": "MAINTAINABILITY",
- "count": 172
- },
- {
- "val": "RELIABILITY",
- "count": 143
- },
- {
- "val": "CHANGEABILITY",
- "count": 24
- },
- {
- "val": "TESTABILITY",
- "count": 23
- },
- {
- "val": "PORTABILITY",
- "count": 21
- },
- {
- "val": "SECURITY",
- "count": 21
- },
- {
- "val": "EFFICIENCY",
- "count": 9
- },
- {
- "val": "READABILITY",
- "count": 102
- },
- {
- "val": "UNDERSTANDABILITY",
- "count": 70
- },
- {
- "val": "INSTRUCTION_RELIABILITY",
- "count": 42
- },
- {
- "val": "LOGIC_RELIABILITY",
- "count": 39
- },
- {
- "val": "UNIT_TESTABILITY",
- "count": 23
- },
- {
- "val": "ARCHITECTURE_RELIABILITY",
- "count": 22
- },
- {
- "val": "DATA_RELIABILITY",
- "count": 16
- },
- {
- "val": "ARCHITECTURE_CHANGEABILITY",
- "count": 12
- },
- {
- "val": "SECURITY_FEATURES",
- "count": 10
- },
- {
- "val": "EXCEPTION_HANDLING",
- "count": 9
- },
- {
- "val": "LOGIC_CHANGEABILITY",
- "count": 9
- },
- {
- "val": "COMPILER_RELATED_PORTABILITY",
- "count": 8
- },
- {
- "val": "INPUT_VALIDATION_AND_REPRESENTATION",
- "count": 7
- },
- {
- "val": "SYNCHRONIZATION_RELIABILITY",
- "count": 7
- },
- {
- "val": "UNIT_TESTS",
- "count": 7
- },
- {
- "val": "CPU_EFFICIENCY",
- "count": 6
- },
- {
- "val": "LANGUAGE_RELATED_PORTABILITY",
- "count": 6
- },
- {
- "val": "SOFTWARE_RELATED_PORTABILITY",
- "count": 6
- },
- {
- "val": "DATA_CHANGEABILITY",
- "count": 3
- },
- {
- "val": "ERRORS",
- "count": 3
- },
- {
- "val": "MEMORY_EFFICIENCY",
- "count": 3
- },
- {
- "val": "API_ABUSE",
- "count": 1
- },
- {
- "val": "FAULT_TOLERANCE",
- "count": 1
- },
- {
- "val": "OS_RELATED_PORTABILITY",
- "count": 1
- },
- {
- "val": "NONE",
- "count": 208
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-with-portability-characteristic.json b/server/sonar-web/src/test/json/coding-rules-spec/search-with-portability-characteristic.json
deleted file mode 100644
index b8b233a9128..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-with-portability-characteristic.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "total": 21,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- }
- ],
- "facets": [
- {
- "property": "debt_characteristics",
- "values": [
- {
- "val": "MAINTAINABILITY",
- "count": 172
- },
- {
- "val": "RELIABILITY",
- "count": 143
- },
- {
- "val": "CHANGEABILITY",
- "count": 24
- },
- {
- "val": "TESTABILITY",
- "count": 23
- },
- {
- "val": "PORTABILITY",
- "count": 21
- },
- {
- "val": "SECURITY",
- "count": 21
- },
- {
- "val": "EFFICIENCY",
- "count": 9
- },
- {
- "val": "READABILITY",
- "count": 102
- },
- {
- "val": "UNDERSTANDABILITY",
- "count": 70
- },
- {
- "val": "INSTRUCTION_RELIABILITY",
- "count": 42
- },
- {
- "val": "LOGIC_RELIABILITY",
- "count": 39
- },
- {
- "val": "UNIT_TESTABILITY",
- "count": 23
- },
- {
- "val": "ARCHITECTURE_RELIABILITY",
- "count": 22
- },
- {
- "val": "DATA_RELIABILITY",
- "count": 16
- },
- {
- "val": "ARCHITECTURE_CHANGEABILITY",
- "count": 12
- },
- {
- "val": "SECURITY_FEATURES",
- "count": 10
- },
- {
- "val": "EXCEPTION_HANDLING",
- "count": 9
- },
- {
- "val": "LOGIC_CHANGEABILITY",
- "count": 9
- },
- {
- "val": "COMPILER_RELATED_PORTABILITY",
- "count": 8
- },
- {
- "val": "INPUT_VALIDATION_AND_REPRESENTATION",
- "count": 7
- },
- {
- "val": "SYNCHRONIZATION_RELIABILITY",
- "count": 7
- },
- {
- "val": "UNIT_TESTS",
- "count": 7
- },
- {
- "val": "CPU_EFFICIENCY",
- "count": 6
- },
- {
- "val": "LANGUAGE_RELATED_PORTABILITY",
- "count": 6
- },
- {
- "val": "SOFTWARE_RELATED_PORTABILITY",
- "count": 6
- },
- {
- "val": "DATA_CHANGEABILITY",
- "count": 3
- },
- {
- "val": "ERRORS",
- "count": 3
- },
- {
- "val": "MEMORY_EFFICIENCY",
- "count": 3
- },
- {
- "val": "API_ABUSE",
- "count": 1
- },
- {
- "val": "FAULT_TOLERANCE",
- "count": 1
- },
- {
- "val": "OS_RELATED_PORTABILITY",
- "count": 1
- },
- {
- "val": "NONE",
- "count": 208
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search-without-characteristic.json b/server/sonar-web/src/test/json/coding-rules-spec/search-without-characteristic.json
deleted file mode 100644
index f4b6cc0a95f..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search-without-characteristic.json
+++ /dev/null
@@ -1,157 +0,0 @@
-{
- "total": 208,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- }
- ],
- "facets": [
- {
- "property": "debt_characteristics",
- "values": [
- {
- "val": "MAINTAINABILITY",
- "count": 172
- },
- {
- "val": "RELIABILITY",
- "count": 143
- },
- {
- "val": "CHANGEABILITY",
- "count": 24
- },
- {
- "val": "TESTABILITY",
- "count": 23
- },
- {
- "val": "PORTABILITY",
- "count": 21
- },
- {
- "val": "SECURITY",
- "count": 21
- },
- {
- "val": "EFFICIENCY",
- "count": 9
- },
- {
- "val": "READABILITY",
- "count": 102
- },
- {
- "val": "UNDERSTANDABILITY",
- "count": 70
- },
- {
- "val": "INSTRUCTION_RELIABILITY",
- "count": 42
- },
- {
- "val": "LOGIC_RELIABILITY",
- "count": 39
- },
- {
- "val": "UNIT_TESTABILITY",
- "count": 23
- },
- {
- "val": "ARCHITECTURE_RELIABILITY",
- "count": 22
- },
- {
- "val": "DATA_RELIABILITY",
- "count": 16
- },
- {
- "val": "ARCHITECTURE_CHANGEABILITY",
- "count": 12
- },
- {
- "val": "SECURITY_FEATURES",
- "count": 10
- },
- {
- "val": "EXCEPTION_HANDLING",
- "count": 9
- },
- {
- "val": "LOGIC_CHANGEABILITY",
- "count": 9
- },
- {
- "val": "COMPILER_RELATED_PORTABILITY",
- "count": 8
- },
- {
- "val": "INPUT_VALIDATION_AND_REPRESENTATION",
- "count": 7
- },
- {
- "val": "SYNCHRONIZATION_RELIABILITY",
- "count": 7
- },
- {
- "val": "UNIT_TESTS",
- "count": 7
- },
- {
- "val": "CPU_EFFICIENCY",
- "count": 6
- },
- {
- "val": "LANGUAGE_RELATED_PORTABILITY",
- "count": 6
- },
- {
- "val": "SOFTWARE_RELATED_PORTABILITY",
- "count": 6
- },
- {
- "val": "DATA_CHANGEABILITY",
- "count": 3
- },
- {
- "val": "ERRORS",
- "count": 3
- },
- {
- "val": "MEMORY_EFFICIENCY",
- "count": 3
- },
- {
- "val": "API_ABUSE",
- "count": 1
- },
- {
- "val": "FAULT_TOLERANCE",
- "count": 1
- },
- {
- "val": "OS_RELATED_PORTABILITY",
- "count": 1
- },
- {
- "val": "NONE",
- "count": 208
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search.json b/server/sonar-web/src/test/json/coding-rules-spec/search.json
deleted file mode 100644
index c17c58d2b42..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 609,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/search2.json b/server/sonar-web/src/test/json/coding-rules-spec/search2.json
deleted file mode 100644
index 04844b07c9d..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/search2.json
+++ /dev/null
@@ -1,371 +0,0 @@
-{
- "total": 413,
- "p": 1,
- "ps": 25,
- "rules": [
- {
- "key": "squid:S2077",
- "name": "Values passed to SQL commands should be sanitized",
- "lang": "java",
- "langName": "Java",
- "sysTags": [
- "cwe",
- "owasp-top10",
- "security",
- "sql"
- ],
- "tags": [
- "custom-tag"
- ]
- },
- {
- "key": "php:S107",
- "name": "Functions should not have too many parameters",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1192",
- "name": "String literals should not be duplicated",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1145",
- "name": "\"if\" statement conditions should not always evaluate to \"true\" or to \"false\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "bug",
- "cwe",
- "security"
- ],
- "tags": []
- },
- {
- "key": "php:S108",
- "name": "Nested blocks of code should not be left empty",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1301",
- "name": "\"switch\" statements should have at least 3 \"case\" clauses",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S103",
- "name": "Lines should not be too long",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1144",
- "name": "Unused private method should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S105",
- "name": "Tabulation characters should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1481",
- "name": "Unused local variables should be removed",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "unused"
- ],
- "tags": []
- },
- {
- "key": "php:S1142",
- "name": "Functions should not contain too many return statements",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S104",
- "name": "Files should not have too many lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1605",
- "name": "PHP 4 style calls to parent constructors should not be used in PHP5 \"__construct\" functions",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1448",
- "name": "Classes should not have too many methods",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1603",
- "name": "PHP 4 constructor declarations should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1779",
- "name": "Only LF character (Unix-like) should be used to end lines",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention",
- "psr2"
- ],
- "tags": []
- },
- {
- "key": "php:S1185",
- "name": "Overriding methods should do more than simply call the same method in the super class",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [],
- "tags": []
- },
- {
- "key": "php:S1600",
- "name": "Deprecated predefined variables should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S1109",
- "name": "A close curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S2001",
- "name": "Functions deprecated in PHP 5 should not be used",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "obsolete"
- ],
- "tags": []
- },
- {
- "key": "php:S2002",
- "name": "Errors should not be silenced",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "pitfail"
- ],
- "tags": []
- },
- {
- "key": "php:S2000",
- "name": "Files should not contain characters before \"<?php\"",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "user-experience"
- ],
- "tags": []
- },
- {
- "key": "php:S1105",
- "name": "An open curly brace should be located at the end of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- },
- {
- "key": "php:S1200",
- "name": "Classes should not be coupled to too many other classes (Single Responsibility Principle)",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "brain-overload"
- ],
- "tags": []
- },
- {
- "key": "php:S1106",
- "name": "An open curly brace should be located at the beginning of a line",
- "lang": "php",
- "langName": "PHP",
- "sysTags": [
- "convention"
- ],
- "tags": []
- }
- ],
- "facets": [
- {
- "property": "tags",
- "values": [
- {
- "val": "convention",
- "count": 67
- },
- {
- "val": "brain-overload",
- "count": 36
- },
- {
- "val": "bug",
- "count": 36
- },
- {
- "val": "cwe",
- "count": 17
- },
- {
- "val": "unused",
- "count": 16
- },
- {
- "val": "security",
- "count": 14
- },
- {
- "val": "pitfall",
- "count": 12
- },
- {
- "val": "psr2",
- "count": 12
- },
- {
- "val": "error-handling",
- "count": 11
- },
- {
- "val": "pitfail",
- "count": 10
- }
- ]
- },
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 212
- },
- {
- "val": "py",
- "count": 212
- },
- {
- "val": "php",
- "count": 103
- },
- {
- "val": "js",
- "count": 77
- }
- ]
- },
- {
- "property": "repositories",
- "values": [
- {
- "val": "squid",
- "count": 206
- },
- {
- "val": "Pylint",
- "count": 180
- },
- {
- "val": "php",
- "count": 97
- },
- {
- "val": "javascript",
- "count": 73
- },
- {
- "val": "python",
- "count": 28
- },
- {
- "val": "common-java",
- "count": 6
- },
- {
- "val": "common-php",
- "count": 6
- },
- {
- "val": "manual",
- "count": 5
- },
- {
- "val": "common-js",
- "count": 4
- },
- {
- "val": "common-py",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-activate-profile-with-profile.json b/server/sonar-web/src/test/json/coding-rules-spec/show-activate-profile-with-profile.json
deleted file mode 100644
index 1fddeb6a632..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-activate-profile-with-profile.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "rule": {
- "key": "squid:S1181",
- "repo": "squid",
- "name": "Throwable and Error classes should not be caught",
- "createdAt": "2013-08-09T14:40:54+0200",
- "severity": "BLOCKER",
- "status": "READY",
- "internalKey": "S1181",
- "isTemplate": false,
- "tags": [],
- "sysTags": [
- "error-handling"
- ],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>\n<code>Throwable</code> is the superclass of all errors and exceptions in Java.\n<code>Error</code> is the superclass of all errors which are not meant to be caught by applications.\n</p>\n\n<p>\nCatching either <code>Throwable</code> or <code>Error</code> will also catch <code>OutOfMemoryError</code> or <code>InternalError</code> from which an application should not attempt to recover.\n</p>\n\n<p>Only <code>Exception</code> and its subclasses should be caught.</p>\n\n<h2>Noncompliant Code Example</h2>\n\n<pre>\ntry { /* ... */ } catch (Throwable t) { /* ... */ }\ntry { /* ... */ } catch (Error e) { /* ... */ } \n</pre>\n\n<h2>Compliant Solution</h2>\n\n<pre>\ntry { /* ... */ } catch (Exception e) { /* ... */ } \ntry { /* ... */ } catch (RuntimeException e) { /* ... */ } \ntry { /* ... */ } catch (MyException e) { /* ... */ } \n</pre>",
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "EXCEPTION_HANDLING",
- "debtChar": "RELIABILITY",
- "debtSubChar": "EXCEPTION_HANDLING",
- "debtCharName": "Reliability",
- "debtSubCharName": "Exception handling",
- "defaultDebtRemFnType": "CONSTANT_ISSUE",
- "defaultDebtRemFnOffset": "20min",
- "debtOverloaded": true,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "20min",
- "params": []
- },
- "actives": [
- {
- "qProfile": "java-default-with-mojo-conventions-49307",
- "inherit": "NONE",
- "severity": "BLOCKER",
- "params": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-activate-profile.json b/server/sonar-web/src/test/json/coding-rules-spec/show-activate-profile.json
deleted file mode 100644
index cf4b206221e..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-activate-profile.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "rule": {
- "key": "squid:S1181",
- "repo": "squid",
- "name": "Throwable and Error classes should not be caught",
- "createdAt": "2013-08-09T14:40:54+0200",
- "severity": "BLOCKER",
- "status": "READY",
- "internalKey": "S1181",
- "isTemplate": false,
- "tags": [],
- "sysTags": [
- "error-handling"
- ],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>\n<code>Throwable</code> is the superclass of all errors and exceptions in Java.\n<code>Error</code> is the superclass of all errors which are not meant to be caught by applications.\n</p>\n\n<p>\nCatching either <code>Throwable</code> or <code>Error</code> will also catch <code>OutOfMemoryError</code> or <code>InternalError</code> from which an application should not attempt to recover.\n</p>\n\n<p>Only <code>Exception</code> and its subclasses should be caught.</p>\n\n<h2>Noncompliant Code Example</h2>\n\n<pre>\ntry { /* ... */ } catch (Throwable t) { /* ... */ }\ntry { /* ... */ } catch (Error e) { /* ... */ } \n</pre>\n\n<h2>Compliant Solution</h2>\n\n<pre>\ntry { /* ... */ } catch (Exception e) { /* ... */ } \ntry { /* ... */ } catch (RuntimeException e) { /* ... */ } \ntry { /* ... */ } catch (MyException e) { /* ... */ } \n</pre>",
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "EXCEPTION_HANDLING",
- "debtChar": "RELIABILITY",
- "debtSubChar": "EXCEPTION_HANDLING",
- "debtCharName": "Reliability",
- "debtSubCharName": "Exception handling",
- "defaultDebtRemFnType": "CONSTANT_ISSUE",
- "defaultDebtRemFnOffset": "20min",
- "debtOverloaded": true,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "20min",
- "params": []
- },
- "actives": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-create-custom-rules.json b/server/sonar-web/src/test/json/coding-rules-spec/show-create-custom-rules.json
deleted file mode 100644
index 517c5f6e754..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-create-custom-rules.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "rule": {
- "key": "squid:ArchitecturalConstraint",
- "repo": "squid",
- "name": "Architectural constraint",
- "createdAt": "2013-03-27T09:52:40+0100",
- "severity": "MAJOR",
- "status": "READY",
- "internalKey": "ArchitecturalConstraint",
- "isTemplate": true,
- "tags": [],
- "sysTags": [],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>A source code comply to an architectural model when it fully\n\tadheres to a set of architectural constraints. A constraint allows to\n\tdeny references between classes by pattern.</p>\n<p>You can for instance use this rule to :</p>\n<ul>\n\t<li>forbid access to **.web.** from **.dao.** classes</li>\n\t<li>forbid access to java.util.Vector, java.util.Hashtable and\n\t\tjava.util.Enumeration from any classes</li>\n\t<li>forbid access to java.sql.** from **.ui.** and **.web.**\n\t\tclasses</li>\n</ul>",
- "debtChar": "CHANGEABILITY",
- "debtSubChar": "ARCHITECTURE_CHANGEABILITY",
- "debtCharName": "Changeability",
- "debtSubCharName": "Architecture related changeability",
- "debtOverloaded": true,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "3h",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING"
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING"
- }
- ]
- },
- "actives": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-create-manual-rule.json b/server/sonar-web/src/test/json/coding-rules-spec/show-create-manual-rule.json
deleted file mode 100644
index 38190c28abb..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-create-manual-rule.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "rule": {
- "key": "manual:Manual_Rule",
- "repo": "manual",
- "name": "Manual Rule",
- "createdAt": "2015-01-05T10:02:11+0100",
- "status": "READY",
- "isTemplate": false,
- "tags": [],
- "sysTags": [],
- "htmlDesc": "Manual Rule Description",
- "mdDesc": "Manual Rule Description",
- "debtOverloaded": false,
- "params": []
- },
- "actives": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-delete-custom-rule.json b/server/sonar-web/src/test/json/coding-rules-spec/show-delete-custom-rule.json
deleted file mode 100644
index 517c5f6e754..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-delete-custom-rule.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "rule": {
- "key": "squid:ArchitecturalConstraint",
- "repo": "squid",
- "name": "Architectural constraint",
- "createdAt": "2013-03-27T09:52:40+0100",
- "severity": "MAJOR",
- "status": "READY",
- "internalKey": "ArchitecturalConstraint",
- "isTemplate": true,
- "tags": [],
- "sysTags": [],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>A source code comply to an architectural model when it fully\n\tadheres to a set of architectural constraints. A constraint allows to\n\tdeny references between classes by pattern.</p>\n<p>You can for instance use this rule to :</p>\n<ul>\n\t<li>forbid access to **.web.** from **.dao.** classes</li>\n\t<li>forbid access to java.util.Vector, java.util.Hashtable and\n\t\tjava.util.Enumeration from any classes</li>\n\t<li>forbid access to java.sql.** from **.ui.** and **.web.**\n\t\tclasses</li>\n</ul>",
- "debtChar": "CHANGEABILITY",
- "debtSubChar": "ARCHITECTURE_CHANGEABILITY",
- "debtCharName": "Changeability",
- "debtSubCharName": "Architecture related changeability",
- "debtOverloaded": true,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "3h",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING"
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING"
- }
- ]
- },
- "actives": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-delete-manual-rule.json b/server/sonar-web/src/test/json/coding-rules-spec/show-delete-manual-rule.json
deleted file mode 100644
index 38190c28abb..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-delete-manual-rule.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "rule": {
- "key": "manual:Manual_Rule",
- "repo": "manual",
- "name": "Manual Rule",
- "createdAt": "2015-01-05T10:02:11+0100",
- "status": "READY",
- "isTemplate": false,
- "tags": [],
- "sysTags": [],
- "htmlDesc": "Manual Rule Description",
- "mdDesc": "Manual Rule Description",
- "debtOverloaded": false,
- "params": []
- },
- "actives": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-no-available-profiles.json b/server/sonar-web/src/test/json/coding-rules-spec/show-no-available-profiles.json
deleted file mode 100644
index 1fddeb6a632..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-no-available-profiles.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "rule": {
- "key": "squid:S1181",
- "repo": "squid",
- "name": "Throwable and Error classes should not be caught",
- "createdAt": "2013-08-09T14:40:54+0200",
- "severity": "BLOCKER",
- "status": "READY",
- "internalKey": "S1181",
- "isTemplate": false,
- "tags": [],
- "sysTags": [
- "error-handling"
- ],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>\n<code>Throwable</code> is the superclass of all errors and exceptions in Java.\n<code>Error</code> is the superclass of all errors which are not meant to be caught by applications.\n</p>\n\n<p>\nCatching either <code>Throwable</code> or <code>Error</code> will also catch <code>OutOfMemoryError</code> or <code>InternalError</code> from which an application should not attempt to recover.\n</p>\n\n<p>Only <code>Exception</code> and its subclasses should be caught.</p>\n\n<h2>Noncompliant Code Example</h2>\n\n<pre>\ntry { /* ... */ } catch (Throwable t) { /* ... */ }\ntry { /* ... */ } catch (Error e) { /* ... */ } \n</pre>\n\n<h2>Compliant Solution</h2>\n\n<pre>\ntry { /* ... */ } catch (Exception e) { /* ... */ } \ntry { /* ... */ } catch (RuntimeException e) { /* ... */ } \ntry { /* ... */ } catch (MyException e) { /* ... */ } \n</pre>",
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "EXCEPTION_HANDLING",
- "debtChar": "RELIABILITY",
- "debtSubChar": "EXCEPTION_HANDLING",
- "debtCharName": "Reliability",
- "debtSubCharName": "Exception handling",
- "defaultDebtRemFnType": "CONSTANT_ISSUE",
- "defaultDebtRemFnOffset": "20min",
- "debtOverloaded": true,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "20min",
- "params": []
- },
- "actives": [
- {
- "qProfile": "java-default-with-mojo-conventions-49307",
- "inherit": "NONE",
- "severity": "BLOCKER",
- "params": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-show-cutsom-rule.json b/server/sonar-web/src/test/json/coding-rules-spec/show-show-cutsom-rule.json
deleted file mode 100644
index 517c5f6e754..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-show-cutsom-rule.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "rule": {
- "key": "squid:ArchitecturalConstraint",
- "repo": "squid",
- "name": "Architectural constraint",
- "createdAt": "2013-03-27T09:52:40+0100",
- "severity": "MAJOR",
- "status": "READY",
- "internalKey": "ArchitecturalConstraint",
- "isTemplate": true,
- "tags": [],
- "sysTags": [],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>A source code comply to an architectural model when it fully\n\tadheres to a set of architectural constraints. A constraint allows to\n\tdeny references between classes by pattern.</p>\n<p>You can for instance use this rule to :</p>\n<ul>\n\t<li>forbid access to **.web.** from **.dao.** classes</li>\n\t<li>forbid access to java.util.Vector, java.util.Hashtable and\n\t\tjava.util.Enumeration from any classes</li>\n\t<li>forbid access to java.sql.** from **.ui.** and **.web.**\n\t\tclasses</li>\n</ul>",
- "debtChar": "CHANGEABILITY",
- "debtSubChar": "ARCHITECTURE_CHANGEABILITY",
- "debtCharName": "Changeability",
- "debtSubCharName": "Architecture related changeability",
- "debtOverloaded": true,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "3h",
- "params": [
- {
- "key": "fromClasses",
- "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
- "type": "STRING"
- },
- {
- "key": "toClasses",
- "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
- "type": "STRING"
- }
- ]
- },
- "actives": []
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show-show-details.json b/server/sonar-web/src/test/json/coding-rules-spec/show-show-details.json
deleted file mode 100644
index 274b587bfb2..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show-show-details.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "rule": {
- "key": "squid:S1181",
- "repo": "squid",
- "name": "Throwable and Error classes should not be caught",
- "createdAt": "2013-08-09T14:40:54+0200",
- "severity": "BLOCKER",
- "status": "READY",
- "internalKey": "S1181",
- "isTemplate": false,
- "tags": [],
- "sysTags": [
- "error-handling"
- ],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>\n<code>Throwable</code> is the superclass of all errors and exceptions in Java.\n<code>Error</code> is the superclass of all errors which are not meant to be caught by applications.\n</p>\n\n<p>\nCatching either <code>Throwable</code> or <code>Error</code> will also catch <code>OutOfMemoryError</code> or <code>InternalError</code> from which an application should not attempt to recover.\n</p>\n\n<p>Only <code>Exception</code> and its subclasses should be caught.</p>\n\n<h2>Noncompliant Code Example</h2>\n\n<pre>\ntry { /* ... */ } catch (Throwable t) { /* ... */ }\ntry { /* ... */ } catch (Error e) { /* ... */ } \n</pre>\n\n<h2>Compliant Solution</h2>\n\n<pre>\ntry { /* ... */ } catch (Exception e) { /* ... */ } \ntry { /* ... */ } catch (RuntimeException e) { /* ... */ } \ntry { /* ... */ } catch (MyException e) { /* ... */ } \n</pre>",
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "EXCEPTION_HANDLING",
- "debtChar": "RELIABILITY",
- "debtSubChar": "EXCEPTION_HANDLING",
- "debtCharName": "Reliability",
- "debtSubCharName": "Exception handling",
- "defaultDebtRemFnType": "CONSTANT_ISSUE",
- "defaultDebtRemFnOffset": "20min",
- "debtOverloaded": true,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "20min",
- "params": [
- {
- "key": "max",
- "htmlDesc": "Maximum authorized number of parameters",
- "type": "INTEGER",
- "defaultValue": "7"
- }
- ]
- },
- "actives": [
- {
- "qProfile": "java-top-profile-without-formatting-conventions-50037",
- "inherit": "NONE",
- "severity": "BLOCKER",
- "params": []
- },
- {
- "qProfile": "java-default-with-sonarsource-conventions-27339",
- "inherit": "INHERITED",
- "severity": "BLOCKER",
- "params": []
- },
- {
- "qProfile": "java-for-sq-java-plugin-only-92289",
- "inherit": "INHERITED",
- "severity": "BLOCKER",
- "params": []
- },
- {
- "qProfile": "java-for-sq-only-95381",
- "inherit": "INHERITED",
- "severity": "BLOCKER",
- "params": []
- },
- {
- "qProfile": "java-default-with-mojo-conventions-49307",
- "inherit": "INHERITED",
- "severity": "BLOCKER",
- "params": []
- },
- {
- "qProfile": "java-sonar-way-80423",
- "inherit": "NONE",
- "severity": "BLOCKER",
- "params": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show.json b/server/sonar-web/src/test/json/coding-rules-spec/show.json
deleted file mode 100644
index f43ca43797e..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "rule": {
- "key": "squid:S2204",
- "repo": "squid",
- "name": "\".equals()\" should not be used to test the values of \"Atomic\" classes",
- "createdAt": "2015-04-13T13:44:13+0200",
- "severity": "BLOCKER",
- "status": "READY",
- "internalKey": "S2204",
- "isTemplate": false,
- "tags": [],
- "sysTags": [
- "bug"
- ],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "",
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "DATA_RELIABILITY",
- "debtChar": "RELIABILITY",
- "debtSubChar": "DATA_RELIABILITY",
- "debtCharName": "Reliability",
- "debtSubCharName": "Data",
- "defaultDebtRemFnType": "CONSTANT_ISSUE",
- "defaultDebtRemFnOffset": "5min",
- "debtOverloaded": false,
- "debtRemFnType": "CONSTANT_ISSUE",
- "debtRemFnOffset": "5min",
- "params": []
- },
- "actives": [
- {
- "qProfile": "java-sonar-way-68866",
- "inherit": "NONE",
- "severity": "BLOCKER",
- "params": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/coding-rules-spec/show2.json b/server/sonar-web/src/test/json/coding-rules-spec/show2.json
deleted file mode 100644
index 26642d4c5b2..00000000000
--- a/server/sonar-web/src/test/json/coding-rules-spec/show2.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "rule": {
- "key": "squid:S1161",
- "repo": "squid",
- "name": "\"@Override\" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one",
- "createdAt": "2015-04-13T13:44:13+0200",
- "severity": "MAJOR",
- "status": "READY",
- "internalKey": "S1161",
- "isTemplate": false,
- "tags": [],
- "sysTags": [],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "",
- "defaultDebtChar": "MAINTAINABILITY",
- "defaultDebtSubChar": "UNDERSTANDABILITY",
- "debtChar": "MAINTAINABILITY",
- "debtSubChar": "UNDERSTANDABILITY",
- "debtCharName": "Maintainability",
- "debtSubCharName": "Understandability",
- "defaultDebtRemFnType": "LINEAR",
- "defaultDebtRemFnCoeff": "5min",
- "debtOverloaded": false,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "5min",
- "params": []
- },
- "actives": [
- {
- "qProfile": "java-sonar-way-68866",
- "inherit": "NONE",
- "severity": "MAJOR",
- "params": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/computation-spec/history-big-1.json b/server/sonar-web/src/test/json/computation-spec/history-big-1.json
deleted file mode 100644
index d0cb80fa1a8..00000000000
--- a/server/sonar-web/src/test/json/computation-spec/history-big-1.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "paging": {
- "pageIndex": 1,
- "pageSize": 2,
- "total": 3
- },
- "tasks": [
- {
- "id": "AU_fwURCrnmp3Ks0AiQq",
- "type": "REPORT",
- "componentId": "AU_VQoJCzEjRSwxhFuns",
- "componentKey": "com.sonarsource.rule-api:rule-api",
- "componentName": "SonarSource :: Rule API",
- "status": "SUCCESS",
- "submittedAt": "2015-09-18T11:20:43+0200",
- "startedAt": "2015-09-18T11:20:37+0200",
- "finishedAt": "2015-09-18T11:20:43+0200",
- "executionTimeMs": 6030
- },
- {
- "id": "AU_fvdwNrnmp3Ks0AiLg",
- "type": "REPORT",
- "componentId": "AU_VQoJCzEjRSwxhFuns",
- "componentKey": "com.sonarsource.rule-api:rule-api",
- "componentName": "SonarSource :: Rule API",
- "status": "SUCCESS",
- "submittedAt": "2015-09-18T11:16:56+0200",
- "startedAt": "2015-09-18T11:16:47+0200",
- "finishedAt": "2015-09-18T11:16:56+0200",
- "executionTimeMs": 8671
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/computation-spec/history-big-2.json b/server/sonar-web/src/test/json/computation-spec/history-big-2.json
deleted file mode 100644
index 08c000455b8..00000000000
--- a/server/sonar-web/src/test/json/computation-spec/history-big-2.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "paging": {
- "pageIndex": 2,
- "pageSize": 2,
- "total": 3
- },
- "tasks": [
- {
- "id": "AU_fvdwNrnmp5Ks0AiLg",
- "type": "REPORT",
- "componentId": "AU_VQoJCzEjRSwxhFuns",
- "componentKey": "com.sonarsource.rule-api:rule-api",
- "componentName": "SonarSource :: Rule API",
- "status": "SUCCESS",
- "submittedAt": "2015-09-18T11:16:56+0200",
- "startedAt": "2015-09-18T11:16:47+0200",
- "finishedAt": "2015-09-18T11:16:56+0200",
- "executionTimeMs": 8671
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/computation-spec/history.json b/server/sonar-web/src/test/json/computation-spec/history.json
deleted file mode 100644
index 285e15a7301..00000000000
--- a/server/sonar-web/src/test/json/computation-spec/history.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "paging": {
- "pageIndex": 1,
- "pageSize": 2,
- "total": 2
- },
- "tasks": [
- {
- "id": "AU_fwURCrnmp3Ks0AiQq",
- "type": "REPORT",
- "componentId": "AU_VQoJCzEjRSwxhFuns",
- "componentKey": "com.sonarsource.rule-api:rule-api",
- "componentName": "SonarSource :: Rule API",
- "status": "SUCCESS",
- "submittedAt": "2015-09-18T11:20:43+0200",
- "startedAt": "2015-09-18T11:20:37+0200",
- "finishedAt": "2015-09-18T11:20:43+0200",
- "executionTimeMs": 6030
- },
- {
- "id": "AU_fvdwNrnmp3Ks0AiLg",
- "type": "REPORT",
- "componentId": "AU_VQoJCzEjRSwxhFuns",
- "componentKey": "com.sonarsource.rule-api:rule-api",
- "componentName": "SonarSource :: Rule API",
- "status": "SUCCESS",
- "submittedAt": "2015-09-18T11:16:56+0200",
- "startedAt": "2015-09-18T11:16:47+0200",
- "finishedAt": "2015-09-18T11:16:56+0200",
- "executionTimeMs": 8671
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/computation-spec/queue.json b/server/sonar-web/src/test/json/computation-spec/queue.json
deleted file mode 100644
index a4dfb5b7646..00000000000
--- a/server/sonar-web/src/test/json/computation-spec/queue.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "tasks": [
- {
- "id": "AU_fvdwNrnmp5Ks0AiLg",
- "type": "REPORT",
- "componentId": "AU_VQoJCzEjRSwxhFuns",
- "componentKey": "com.sonarsource.rule-api:rule-api",
- "componentName": "SonarSource :: Rule API",
- "status": "PENDING",
- "submittedAt": "2015-09-18T11:16:56+0200"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/custom-measures-spec/metrics-limited.json b/server/sonar-web/src/test/json/custom-measures-spec/metrics-limited.json
deleted file mode 100644
index cc72eea9170..00000000000
--- a/server/sonar-web/src/test/json/custom-measures-spec/metrics-limited.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "metrics": [
- {
- "id": "155",
- "key": "burned_budget",
- "type": "FLOAT",
- "name": "Burned budget",
- "domain": "Management",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "159",
- "key": "dist",
- "type": "DISTRIB",
- "name": "Distribution",
- "description": "",
- "domain": "",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "160",
- "key": "rating",
- "type": "RATING",
- "name": "Rating",
- "description": "",
- "domain": "",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "157",
- "key": "team_size",
- "type": "INT",
- "name": "Team size",
- "domain": "Management",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- }
- ],
- "total": 5,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/custom-measures-spec/metrics.json b/server/sonar-web/src/test/json/custom-measures-spec/metrics.json
deleted file mode 100644
index fe8cee9801c..00000000000
--- a/server/sonar-web/src/test/json/custom-measures-spec/metrics.json
+++ /dev/null
@@ -1,64 +0,0 @@
-{
- "metrics": [
- {
- "id": "155",
- "key": "burned_budget",
- "type": "FLOAT",
- "name": "Burned budget",
- "domain": "Management",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "156",
- "key": "business_value",
- "type": "FLOAT",
- "name": "Business value",
- "domain": "Management",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": true
- },
- {
- "id": "159",
- "key": "dist",
- "type": "DISTRIB",
- "name": "Distribution",
- "description": "",
- "domain": "",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "160",
- "key": "rating",
- "type": "RATING",
- "name": "Rating",
- "description": "",
- "domain": "",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "157",
- "key": "team_size",
- "type": "INT",
- "name": "Team size",
- "domain": "Management",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- }
- ],
- "total": 5,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/custom-measures-spec/search-big-1.json b/server/sonar-web/src/test/json/custom-measures-spec/search-big-1.json
deleted file mode 100644
index 831b4835987..00000000000
--- a/server/sonar-web/src/test/json/custom-measures-spec/search-big-1.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "customMeasures": [
- {
- "id": "5",
- "value": "1.0",
- "description": "",
- "metric": {
- "id": "160",
- "key": "rating",
- "type": "RATING",
- "name": "Rating",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:41+0200",
- "updatedAt": "2015-07-08T12:27:41+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "4",
- "value": "1",
- "description": "",
- "metric": {
- "id": "159",
- "key": "dist",
- "type": "DISTRIB",
- "name": "Distribution",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:22+0200",
- "updatedAt": "2015-07-08T12:26:22+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- }
- ],
- "total": 4,
- "p": 1,
- "ps": 2
-}
diff --git a/server/sonar-web/src/test/json/custom-measures-spec/search-big-2.json b/server/sonar-web/src/test/json/custom-measures-spec/search-big-2.json
deleted file mode 100644
index 53f42bd1b01..00000000000
--- a/server/sonar-web/src/test/json/custom-measures-spec/search-big-2.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "customMeasures": [
- {
- "id": "3",
- "value": "35",
- "description": "",
- "metric": {
- "id": "157",
- "key": "team_size",
- "type": "INT",
- "name": "Team size",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:13:15+0200",
- "updatedAt": "2015-07-08T12:13:15+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "1",
- "value": "3.2000123E7",
- "description": "Description...",
- "metric": {
- "id": "155",
- "key": "burned_budget",
- "type": "FLOAT",
- "name": "Burned budget",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T09:21:50+0200",
- "updatedAt": "2015-07-08T12:25:37+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- }
- ],
- "total": 4,
- "p": 2,
- "ps": 2
-}
diff --git a/server/sonar-web/src/test/json/custom-measures-spec/search-created.json b/server/sonar-web/src/test/json/custom-measures-spec/search-created.json
deleted file mode 100644
index b118b9be11b..00000000000
--- a/server/sonar-web/src/test/json/custom-measures-spec/search-created.json
+++ /dev/null
@@ -1,122 +0,0 @@
-{
- "customMeasures": [
- {
- "id": "6",
- "value": "17.0",
- "description": "example",
- "metric": {
- "id": "156",
- "key": "business_value",
- "type": "FLOAT",
- "name": "Business value",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T13:21:51+0200",
- "updatedAt": "2015-07-08T13:21:51+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "5",
- "value": "1.0",
- "description": "",
- "metric": {
- "id": "160",
- "key": "rating",
- "type": "RATING",
- "name": "Rating",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:41+0200",
- "updatedAt": "2015-07-08T12:27:41+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "4",
- "value": "1",
- "description": "",
- "metric": {
- "id": "159",
- "key": "dist",
- "type": "DISTRIB",
- "name": "Distribution",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:22+0200",
- "updatedAt": "2015-07-08T12:26:22+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "3",
- "value": "35",
- "description": "",
- "metric": {
- "id": "157",
- "key": "team_size",
- "type": "INT",
- "name": "Team size",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:13:15+0200",
- "updatedAt": "2015-07-08T12:13:15+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "1",
- "value": "3.2000123E7",
- "description": "Description...",
- "metric": {
- "id": "155",
- "key": "burned_budget",
- "type": "FLOAT",
- "name": "Burned budget",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T09:21:50+0200",
- "updatedAt": "2015-07-08T12:25:37+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- }
- ],
- "total": 5,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/custom-measures-spec/search-deleted.json b/server/sonar-web/src/test/json/custom-measures-spec/search-deleted.json
deleted file mode 100644
index e2a82e74804..00000000000
--- a/server/sonar-web/src/test/json/custom-measures-spec/search-deleted.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "customMeasures": [
- {
- "id": "4",
- "value": "1",
- "description": "",
- "metric": {
- "id": "159",
- "key": "dist",
- "type": "DISTRIB",
- "name": "Distribution",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:22+0200",
- "updatedAt": "2015-07-08T12:26:22+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "3",
- "value": "35",
- "description": "",
- "metric": {
- "id": "157",
- "key": "team_size",
- "type": "INT",
- "name": "Team size",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:13:15+0200",
- "updatedAt": "2015-07-08T12:13:15+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "1",
- "value": "3.2000123E7",
- "description": "Description...",
- "metric": {
- "id": "155",
- "key": "burned_budget",
- "type": "FLOAT",
- "name": "Burned budget",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T09:21:50+0200",
- "updatedAt": "2015-07-08T12:25:37+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- }
- ],
- "total": 3,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/custom-measures-spec/search-updated.json b/server/sonar-web/src/test/json/custom-measures-spec/search-updated.json
deleted file mode 100644
index 60c0a9fda98..00000000000
--- a/server/sonar-web/src/test/json/custom-measures-spec/search-updated.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "customMeasures": [
- {
- "id": "5",
- "value": "2.0",
- "description": "new!",
- "metric": {
- "id": "160",
- "key": "rating",
- "type": "RATING",
- "name": "Rating",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:41+0200",
- "updatedAt": "2015-07-08T13:28:04+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "4",
- "value": "1",
- "description": "",
- "metric": {
- "id": "159",
- "key": "dist",
- "type": "DISTRIB",
- "name": "Distribution",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:22+0200",
- "updatedAt": "2015-07-08T12:26:22+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "3",
- "value": "35",
- "description": "",
- "metric": {
- "id": "157",
- "key": "team_size",
- "type": "INT",
- "name": "Team size",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:13:15+0200",
- "updatedAt": "2015-07-08T12:13:15+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "1",
- "value": "3.2000123E7",
- "description": "Description...",
- "metric": {
- "id": "155",
- "key": "burned_budget",
- "type": "FLOAT",
- "name": "Burned budget",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T09:21:50+0200",
- "updatedAt": "2015-07-08T12:25:37+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- }
- ],
- "total": 4,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/custom-measures-spec/search.json b/server/sonar-web/src/test/json/custom-measures-spec/search.json
deleted file mode 100644
index a0739da9efa..00000000000
--- a/server/sonar-web/src/test/json/custom-measures-spec/search.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "customMeasures": [
- {
- "id": "5",
- "value": "1.0",
- "description": "",
- "metric": {
- "id": "160",
- "key": "rating",
- "type": "RATING",
- "name": "Rating",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:41+0200",
- "updatedAt": "2015-07-08T12:27:41+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "4",
- "value": "1",
- "description": "",
- "metric": {
- "id": "159",
- "key": "dist",
- "type": "DISTRIB",
- "name": "Distribution",
- "domain": ""
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:26:22+0200",
- "updatedAt": "2015-07-08T12:26:22+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "3",
- "value": "35",
- "description": "",
- "metric": {
- "id": "157",
- "key": "team_size",
- "type": "INT",
- "name": "Team size",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T12:13:15+0200",
- "updatedAt": "2015-07-08T12:13:15+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- },
- {
- "id": "1",
- "value": "3.2000123E7",
- "description": "Description...",
- "metric": {
- "id": "155",
- "key": "burned_budget",
- "type": "FLOAT",
- "name": "Burned budget",
- "domain": "Management"
- },
- "projectId": "eb294572-a6a4-43cf-acc2-33c2fe37c02e",
- "projectKey": "backbone",
- "createdAt": "2015-07-08T09:21:50+0200",
- "updatedAt": "2015-07-08T12:25:37+0200",
- "pending": true,
- "user": {
- "login": "admin",
- "name": "Administrator",
- "email": "",
- "active": true
- }
- }
- ],
- "total": 4,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/all-issues-by-resolution.json b/server/sonar-web/src/test/json/global-issues-filter-widget/all-issues-by-resolution.json
deleted file mode 100644
index 6751605092f..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/all-issues-by-resolution.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 71571,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "resolutions",
- "values": [
- {
- "val": "",
- "count": 6851
- },
- {
- "val": "FIXED",
- "count": 47092
- },
- {
- "val": "REMOVED",
- "count": 16326
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 752
- },
- {
- "val": "WONTFIX",
- "count": 550
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/all-issues-by-status.json b/server/sonar-web/src/test/json/global-issues-filter-widget/all-issues-by-status.json
deleted file mode 100644
index 99fe9461067..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/all-issues-by-status.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 71571,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "statuses",
- "values": [
- {
- "val": "CLOSED",
- "count": 63413
- },
- {
- "val": "CONFIRMED",
- "count": 6609
- },
- {
- "val": "RESOLVED",
- "count": 1307
- },
- {
- "val": "OPEN",
- "count": 238
- },
- {
- "val": "REOPENED",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/messages.json b/server/sonar-web/src/test/json/global-issues-filter-widget/messages.json
deleted file mode 100644
index 4b2848cc625..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/messages.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "work_duration.x_days": "{0}d",
- "work_duration.x_hours": "{0}h",
- "work_duration.x_minutes": "{0}min",
- "work_duration.about": "~ {0}"
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/red-issues-by-severity.json b/server/sonar-web/src/test/json/global-issues-filter-widget/red-issues-by-severity.json
deleted file mode 100644
index f261766748c..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/red-issues-by-severity.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 5027
- },
- {
- "val": "INFO",
- "count": 1178
- },
- {
- "val": "MINOR",
- "count": 540
- },
- {
- "val": "CRITICAL",
- "count": 105
- },
- {
- "val": "BLOCKER",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-action-plan.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-action-plan.json
deleted file mode 100644
index 7589fe0737c..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-action-plan.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "actionPlans": [
- {
- "key": "0cf48508-2fcd-4cb8-a50b-c5cd7c3decc0",
- "name": "First Action Plan",
- "status": "OPEN",
- "project": "example:project",
- "userLogin": "example.login",
- "createdAt": "2014-04-03T12:28:05+0200",
- "fCreatedAt": "Apr 3, 2014 12:28 PM",
- "updatedAt": "2014-04-03T12:28:05+0200",
- "fUpdatedAt": "Apr 3, 2014 12:28 PM"
- },
- {
- "key": "1b9e7e52-ff58-40c1-80bf-f68429a3275e",
- "name": "Second Action Plan",
- "status": "OPEN",
- "project": "example:project",
- "userLogin": "example.login",
- "createdAt": "2014-04-03T12:28:05+0200",
- "fCreatedAt": "Apr 3, 2014 12:28 PM",
- "updatedAt": "2014-04-03T12:28:05+0200",
- "fUpdatedAt": "Apr 3, 2014 12:28 PM"
- },
- {
- "key": "8c1d5d01-948e-4670-a0d9-17c512979486",
- "name": "Third Action Plan",
- "status": "OPEN",
- "project": "example:project",
- "userLogin": "example.login",
- "createdAt": "2014-04-03T12:28:05+0200",
- "fCreatedAt": "Apr 3, 2014 12:28 PM",
- "updatedAt": "2014-04-03T12:28:05+0200",
- "fUpdatedAt": "Apr 3, 2014 12:28 PM"
- }
- ],
- "facets": [
- {
- "property": "actionPlans",
- "values": [
- {
- "val": "",
- "count": 5877
- },
- {
- "val": "0cf48508-2fcd-4cb8-a50b-c5cd7c3decc0",
- "count": 532
- },
- {
- "val": "1b9e7e52-ff58-40c1-80bf-f68429a3275e",
- "count": 56
- },
- {
- "val": "8c1d5d01-948e-4670-a0d9-17c512979486",
- "count": 52
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-assignee.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-assignee.json
deleted file mode 100644
index 350327879fc..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-assignee.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "users": [
- {
- "login": "second.user",
- "name": "Second User",
- "active": true,
- "email": "second.user@example.com"
- },
- {
- "login": "third.user",
- "name": "Third User",
- "active": true,
- "email": "third.user@example .com"
- },
- {
- "login": "first.user",
- "name": "First User",
- "active": true,
- "email": "first.user@example.com"
- }
- ],
- "facets": [
- {
- "property": "assignees",
- "values": [
- {
- "val": "",
- "count": 4134
- },
- {
- "val": "first.user",
- "count": 698
- },
- {
- "val": "second.user",
- "count": 504
- },
- {
- "val": "third.user",
- "count": 426
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date-debt.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date-debt.json
deleted file mode 100644
index c1eb80cb144..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date-debt.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "total": 6851,
- "debtTotal": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "createdAt",
- "values": [
- {
- "val": "2011-01-01T01:00:00+0000",
- "count": 5027
- },
- {
- "val": "2012-01-01T01:00:00+0000",
- "count": 1178
- },
- {
- "val": "2013-01-01T01:00:00+0000",
- "count": 540
- },
- {
- "val": "2014-01-01T01:00:00+0000",
- "count": 105
- },
- {
- "val": "2015-01-01T01:00:00+0000",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date-limited.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date-limited.json
deleted file mode 100644
index 5c2f0182f9a..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date-limited.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "createdAt",
- "values": [
- {
- "val": "2015-02-16T01:00:00+0000",
- "count": 49
- },
- {
- "val": "2015-02-17T01:00:00+0000",
- "count": 48
- },
- {
- "val": "2015-02-18T01:00:00+0000",
- "count": 47
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date.json
deleted file mode 100644
index 54153d9897b..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-date.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "createdAt",
- "values": [
- {
- "val": "2011-01-01T01:00:00+0000",
- "count": 72
- },
- {
- "val": "2012-01-01T01:00:00+0000",
- "count": 64
- },
- {
- "val": "2013-01-01T01:00:00+0000",
- "count": 1262
- },
- {
- "val": "2014-01-01T01:00:00+0000",
- "count": 3729
- },
- {
- "val": "2015-01-01T01:00:00+0000",
- "count": 1724
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-language.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-language.json
deleted file mode 100644
index de5e4c9be3a..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-language.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "languages": [
- {
- "key": "py",
- "name": "Python"
- },
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "php",
- "name": "PHP"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "facets": [
- {
- "property": "languages",
- "values": [
- {
- "val": "java",
- "count": 6336
- },
- {
- "val": "py",
- "count": 444
- },
- {
- "val": "php",
- "count": 22
- },
- {
- "val": "js",
- "count": 15
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-project.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-project.json
deleted file mode 100644
index e53991f61ab..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-project.json
+++ /dev/null
@@ -1,62 +0,0 @@
-{
- "total": 2598,
- "p": 1,
- "ps": 1,
- "projects": [
- {
- "uuid": "5eab015a-1f76-4ba4-bd89-bf547132d673",
- "key": "org.codehaus.sonar-plugins.javascript:javascript",
- "id": 10159,
- "qualifier": "TRK",
- "name": "JavaScript",
- "longName": "JavaScript"
- },
- {
- "uuid": "c156940b-e3ec-43f6-9589-e3b75aa9ca32",
- "key": "org.codehaus.sonar-plugins.python:python",
- "id": 11752,
- "qualifier": "TRK",
- "name": "Python",
- "longName": "Python"
- },
- {
- "uuid": "dd7c3556-ce3f-42d0-a348-914a582dc944",
- "key": "org.codehaus.sonar-plugins.java:java",
- "id": 13265,
- "qualifier": "TRK",
- "name": "SonarQube Java",
- "longName": "SonarQube Java"
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- }
- ],
- "facets": [
- {
- "property": "projectUuids",
- "values": [
- {
- "val": "69e57151-be0d-4157-adff-c06741d88879",
- "count": 1766
- },
- {
- "val": "dd7c3556-ce3f-42d0-a348-914a582dc944",
- "count": 442
- },
- {
- "val": "5eab015a-1f76-4ba4-bd89-bf547132d673",
- "count": 283
- },
- {
- "val": "c156940b-e3ec-43f6-9589-e3b75aa9ca32",
- "count": 107
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-reporter.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-reporter.json
deleted file mode 100644
index 1a245077c5b..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-reporter.json
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "users": [
- {
- "login": "second.user",
- "name": "Second User",
- "active": true,
- "email": "second.user@example.com"
- },
- {
- "login": "third.user",
- "name": "Third User",
- "active": true,
- "email": "third.user@example.com"
- },
- {
- "login": "first.user",
- "name": "First User",
- "active": true,
- "email": "first.user@example.com"
- }
- ],
- "facets": [
- {
- "property": "reporters",
- "values": [
- {
- "val": "first.user",
- "count": 698
- },
- {
- "val": "second.user",
- "count": 504
- },
- {
- "val": "third.user",
- "count": 426
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-resolution.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-resolution.json
deleted file mode 100644
index 146920688ff..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-resolution.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "resolutions",
- "values": [
- {
- "val": "",
- "count": 6851
- },
- {
- "val": "FIXED",
- "count": 47092
- },
- {
- "val": "REMOVED",
- "count": 16326
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 752
- },
- {
- "val": "WONTFIX",
- "count": 550
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-rule.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-rule.json
deleted file mode 100644
index aa70a9bfc71..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-rule.json
+++ /dev/null
@@ -1,186 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "rules": [
- {
- "key": "squid:S1698",
- "name": "Objects should be compared with \"equals()\"",
- "lang": "java",
- "desc": "<p>Using the equality (<code>==</code>) and inequality (<code>!=</code>) operators to compare two objects does not check to see if they have the same values. Rather it checks to see if both object references point to exactly the same object in memory. The vast majority of the time, this is not what you want to do. Use the .equals() method to compare the values of two objects or to compare a string object to a string literal.</p>\n\n<h2>Noncompliant Code Sample</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1 == str2)\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == \"blue\")\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this prints\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1.equals(str2))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1.equals(\"blue\"))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this still prints, but it's probably not what you meant to do\n}\n</pre>\n\n<h2>Exception</h2>\nComparing two instances of the <code>Class</code> object will not raise an issue.\n<pre>\nClass c;\nif(c == Integer.class) { //No issue raised\n}\n</pre>\n\n<h2>See</h2>\n <ul>\n <li><a href=\"http://cwe.mitre.org/data/definitions/595.html\">MITRE, CWE-595</a> - Comparison of Object References Instead of Object Contents</li>\n </ul>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:AstNode_SSLR_class_should_not_be_used",
- "name": "AstNode SSLR class should not be used",
- "lang": "java",
- "desc": "Once strongly typed AST is in place on a language plugin, the AstNode class should not be used anymore. ",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:IndentationCheck",
- "name": "Source code should be correctly indented",
- "lang": "java",
- "desc": "<p>\nProper indentation is a simple and effective way to improve the code's readability.\nConsistent indentation among developers also reduces the differences that are committed to source control systems, making code reviews easier.\n</p>\n\n<p>The following code illustrates this rule with an indentation level of 2:</p>\n\n<pre>\nclass Foo {\n public int a; // Compliant\npublic int b; // Non-Compliant\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1161",
- "name": "\"@Override\" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one",
- "lang": "java",
- "desc": "<p>Using the <code>@Override</code> annotation is useful for two reasons :</p>\n<ul>\n <li>It elicits a warning from the compiler if the annotated method doesn't actually override anything, as in the case of a misspelling.</li>\n <li>It improves the readability of the source code by making it obvious that methods are overridden.</li>\n</ul>\n<h2>Noncompliant Code Example</h2>\n<pre>\nclass ParentClass {\n public boolean doSomething(){...}\n}\nclass FirstChildClass extends ParentClass {\n public boolean doSomething(){...} //Non-Compliant\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nclass ParentClass {\n public boolean doSomething(){...}\n}\nclass FirstChildClass extends ParentClass {\n @Override\n public boolean doSomething(){...} //Compliant\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "common-java:DuplicatedBlocks",
- "name": "Duplicated blocks",
- "lang": "java",
- "desc": "<p>An issue is created on a file as soon as there is a block of duplicated code on this file. It gives the number of blocks in the file.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1192",
- "name": "String literals should not be duplicated",
- "lang": "java",
- "desc": "<p>\n Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.\n On the other hand, constants can be referenced from many places, but only need to be updated in a single place.\n</p>\n\n<h2>Non Compliant Code Example</h2>\n\n<pre>\npublic void run() {\n prepare(\"action1\"); // Non-Compliant - \"action1\" is duplicated 3 times\n execute(\"action1\");\n release(\"action1\");\n}\n\n@SuppressWarning(\"all\") // Compliant - annotations are excluded\nprivate void method1() { /* ... */ }\n@SuppressWarning(\"all\")\nprivate void method2() { /* ... */ }\n\npublic String method3(String a) {\n System.out.println(\"'\" + a + \"'\"); // Compliant - literal \"'\" has less than 5 characters and is excluded\n return \"\"; // Compliant - literal \"\" has less than 5 characters and is excluded\n}\n</pre>\n\n<h2>Compliant Code Example</h2>\n\n<pre>\nprivate static final String ACTION_1 = \"action1\"; // Compliant\n\npublic void run() {\n prepare(ACTION_1); // Compliant\n execute(ACTION_1);\n release(ACTION_1);\n}\n</pre>\n\n<h2>Exceptions</h2>\n<p>To prevent generating some false-positives, literals having less than 5 characters are excluded.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:MethodCyclomaticComplexity",
- "name": "Methods should not be too complex",
- "lang": "java",
- "desc": "<p>The Cyclomatic Complexity is measured by the number of\n\t(&amp;&amp;, ||) operators and (if, while, do, for, ?:, catch, switch,\n\tcase, return, throw) statements in the body of a class plus one for\n\teach constructor, method (but not getter/setter), static initializer,\n\tor instance initializer in the class. The last return statement in\n\tmethod, if exists, is not taken into account.</p>\n<p>\n\tEven when the Cyclomatic Complexity of a class is very high, this\n\tcomplexity might be well distributed among all methods. Nevertheless,\n\tmost of the time, a very complex class is a class which breaks the <a\n\t\thref=\"http://en.wikipedia.org/wiki/Single_responsibility_principle\">Single\n\t\tResponsibility Principle</a> and which should be re-factored to be split\n\tin several classes.\n</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1135",
- "name": "TODO tags should be handled",
- "lang": "java",
- "desc": "<p>\n<code>TODO</code> tags are commonly used to mark places where some more code is required, but which the developer wants to implement later.\nSometimes the developer will not have the time or will simply forget to get back to that tag.\nThis rule is meant to track those tags, and ensure that they do not go unnoticed.\n</p>\n\n<p>The following code illustrates this rule:</p>\n\n<pre>\nvoid doSomething() {\n // TODO\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "common-java:InsufficientBranchCoverage",
- "name": "Insufficient branch coverage by unit tests",
- "lang": "java",
- "desc": "<p>An issue is created on a file as soon as the branch coverage on this file is less than the required threshold.It gives the number of branches to be covered in order to reach the required threshold.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S00115",
- "name": "Constant names should comply with a naming convention",
- "lang": "java",
- "desc": "<p>\nSharing some naming conventions is a key point to make it possible for a team to efficiently collaborate. This rule allows to check that all constant names match a provided regular expression.\n</p>\n\n<p>\nThe following code snippet illustrates this rule when the regular expression value is \"^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$\":\n</p>\n<pre>\npublic class MyClass {\n public static final int first = 1; // Non-Compliant\n public static final int SECOND = 2; // Compliant\n}\n\npublic enum MyEnum {\n first, // Non-Compliant\n SECOND; // Compliant\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1134",
- "name": "FIXME tags should be handled",
- "lang": "java",
- "desc": "<p>\n<code>FIXME</code> tags are commonly used to mark places where a bug is suspected, but which the developer wants to deal with later.\nSometimes the developer will not have the time or will simply forget to get back to that tag.\nThis rule is meant to track those tags, and ensure that they do not go unnoticed.\n</p>\n\n<p>The following code illustrates this rule:</p>\n\n<pre>\nint divide(int numerator, int denominator) {\n return numerator / denominator; // FIXME denominator = 0, Non-Compliant\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1133",
- "name": "Deprecated code should be removed eventually",
- "lang": "java",
- "desc": "<p>\nThis rule is meant to be used as a way to track code which is marked as being deprecated.\nDeprecated code should eventually be removed.\n</p>\n\n<p>\nThe following code illustrates this rule:\n</p>\n\n<pre>\nclass Foo {\n /**\n * @deprecated\n */\n public void foo() { // Non-Compliant\n }\n\n @Deprecated // Non-Compliant\n public void bar() {\n }\n\n public void baz() { // Compliant\n }\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:CallToDeprecatedMethod",
- "name": "Avoid use of deprecated method",
- "lang": "java",
- "desc": "<p>Once deprecated, a method should no longer be used as it means\n\tthat the method might be removed sooner or later.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1228",
- "name": "Packages should have a javadoc file 'package-info.java'",
- "lang": "java",
- "desc": "<p>Each package in a Java project should include a <code>package-info.java</code> file. The purpose of this file is to document the Java package using javadoc and declare package annotations.</p>\n\n<h2>Compliant Solution</h2>\n<pre>\n/**\n* This package has non null parameters and is documented.\n**/\n@ParametersAreNonnullByDefault\npackage org.foo.bar;\n</pre>",
- "status": "READY",
- "langName": "Java"
- }
- ],
- "facets": [
- {
- "property": "rules",
- "values": [
- {
- "val": "squid:S1161",
- "count": 879
- },
- {
- "val": "squid:S1135",
- "count": 571
- },
- {
- "val": "squid:S1133",
- "count": 558
- },
- {
- "val": "common-java:InsufficientBranchCoverage",
- "count": 550
- },
- {
- "val": "common-java:DuplicatedBlocks",
- "count": 408
- },
- {
- "val": "squid:AstNode_SSLR_class_should_not_be_used",
- "count": 265
- },
- {
- "val": "squid:IndentationCheck",
- "count": 264
- },
- {
- "val": "squid:CallToDeprecatedMethod",
- "count": 237
- },
- {
- "val": "squid:MethodCyclomaticComplexity",
- "count": 233
- },
- {
- "val": "squid:S00115",
- "count": 212
- },
- {
- "val": "resharper-cs:RedundantUsingDirective",
- "count": 175
- },
- {
- "val": "squid:S1228",
- "count": 174
- },
- {
- "val": "squid:S1698",
- "count": 139
- },
- {
- "val": "squid:S1134",
- "count": 113
- },
- {
- "val": "squid:S1192",
- "count": 111
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-severity-debt.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-severity-debt.json
deleted file mode 100644
index 15a51ee3033..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-severity-debt.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "total": 6851,
- "debtTotal": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 5027
- },
- {
- "val": "INFO",
- "count": 1178
- },
- {
- "val": "MINOR",
- "count": 540
- },
- {
- "val": "CRITICAL",
- "count": 105
- },
- {
- "val": "BLOCKER",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-severity.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-severity.json
deleted file mode 100644
index f261766748c..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-severity.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 5027
- },
- {
- "val": "INFO",
- "count": 1178
- },
- {
- "val": "MINOR",
- "count": 540
- },
- {
- "val": "CRITICAL",
- "count": 105
- },
- {
- "val": "BLOCKER",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-status.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-status.json
deleted file mode 100644
index 97babc0dfd5..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-issues-by-status.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 71571,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "statuses",
- "values": [
- {
- "val": "CLOSED",
- "count": 0
- },
- {
- "val": "CONFIRMED",
- "count": 6609
- },
- {
- "val": "RESOLVED",
- "count": 0
- },
- {
- "val": "OPEN",
- "count": 238
- },
- {
- "val": "REOPENED",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-unassigned-issues-by-assignee.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-unassigned-issues-by-assignee.json
deleted file mode 100644
index eec6932ed8c..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-unassigned-issues-by-assignee.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "total": 4134,
- "p": 1,
- "ps": 1,
- "users": [
- {
- "login": "second.user",
- "name": "Second User",
- "active": true,
- "email": "second.user@example.com"
- },
- {
- "login": "third.user",
- "name": "Third User",
- "active": true,
- "email": "third.user@example .com"
- },
- {
- "login": "first.user",
- "name": "First User",
- "active": true,
- "email": "first.user@example.com"
- }
- ],
- "facets": [
- {
- "property": "assignees",
- "values": [
- {
- "val": "",
- "count": 4134
- },
- {
- "val": "first.user",
- "count": 698
- },
- {
- "val": "second.user",
- "count": 504
- },
- {
- "val": "third.user",
- "count": 426
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-unplanned-issues-by-action-plan.json b/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-unplanned-issues-by-action-plan.json
deleted file mode 100644
index 94eba943db2..00000000000
--- a/server/sonar-web/src/test/json/global-issues-filter-widget/unresolved-unplanned-issues-by-action-plan.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "total": 5877,
- "p": 1,
- "ps": 1,
- "actionPlans": [
- {
- "key": "0cf48508-2fcd-4cb8-a50b-c5cd7c3decc0",
- "name": "First Action Plan",
- "status": "OPEN",
- "project": "example:project",
- "userLogin": "example.login",
- "createdAt": "2014-04-03T12:28:05+0200",
- "fCreatedAt": "Apr 3, 2014 12:28 PM",
- "updatedAt": "2014-04-03T12:28:05+0200",
- "fUpdatedAt": "Apr 3, 2014 12:28 PM"
- },
- {
- "key": "1b9e7e52-ff58-40c1-80bf-f68429a3275e",
- "name": "Second Action Plan",
- "status": "OPEN",
- "project": "example:project",
- "userLogin": "example.login",
- "createdAt": "2014-04-03T12:28:05+0200",
- "fCreatedAt": "Apr 3, 2014 12:28 PM",
- "updatedAt": "2014-04-03T12:28:05+0200",
- "fUpdatedAt": "Apr 3, 2014 12:28 PM"
- },
- {
- "key": "8c1d5d01-948e-4670-a0d9-17c512979486",
- "name": "Third Action Plan",
- "status": "OPEN",
- "project": "example:project",
- "userLogin": "example.login",
- "createdAt": "2014-04-03T12:28:05+0200",
- "fCreatedAt": "Apr 3, 2014 12:28 PM",
- "updatedAt": "2014-04-03T12:28:05+0200",
- "fUpdatedAt": "Apr 3, 2014 12:28 PM"
- }
- ],
- "facets": [
- {
- "property": "actionPlans",
- "values": [
- {
- "val": "",
- "count": 5877
- },
- {
- "val": "0cf48508-2fcd-4cb8-a50b-c5cd7c3decc0",
- "count": 532
- },
- {
- "val": "1b9e7e52-ff58-40c1-80bf-f68429a3275e",
- "count": 56
- },
- {
- "val": "8c1d5d01-948e-4670-a0d9-17c512979486",
- "count": 52
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/groups-spec/error.json b/server/sonar-web/src/test/json/groups-spec/error.json
deleted file mode 100644
index dc1b261128c..00000000000
--- a/server/sonar-web/src/test/json/groups-spec/error.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "errors": [
- {
- "msg": "Some error message"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/groups-spec/search-big-1.json b/server/sonar-web/src/test/json/groups-spec/search-big-1.json
deleted file mode 100644
index 654742be995..00000000000
--- a/server/sonar-web/src/test/json/groups-spec/search-big-1.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 1,
- "groups": [
- {
- "id": "1",
- "name": "sonar-users",
- "description": "Any new users created will automatically join this group",
- "membersCount": 3
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/groups-spec/search-big-2.json b/server/sonar-web/src/test/json/groups-spec/search-big-2.json
deleted file mode 100644
index 9d8a35bd3b6..00000000000
--- a/server/sonar-web/src/test/json/groups-spec/search-big-2.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "total": 2,
- "p": 2,
- "ps": 1,
- "groups": [
- {
- "id": "2",
- "name": "sonar-administrators",
- "description": "System administrators",
- "membersCount": 1
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/groups-spec/search-created.json b/server/sonar-web/src/test/json/groups-spec/search-created.json
deleted file mode 100644
index 1222b0dc009..00000000000
--- a/server/sonar-web/src/test/json/groups-spec/search-created.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "total": 3,
- "p": 1,
- "ps": 50,
- "groups": [
- {
- "id": "1",
- "name": "sonar-users",
- "description": "Any new users created will automatically join this group",
- "membersCount": 3
- },
- {
- "id": "2",
- "name": "sonar-administrators",
- "description": "System administrators",
- "membersCount": 1
- },
- {
- "id": "3",
- "name": "name",
- "description": "description",
- "membersCount": 0
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/groups-spec/search-filtered.json b/server/sonar-web/src/test/json/groups-spec/search-filtered.json
deleted file mode 100644
index 58a0ead4a40..00000000000
--- a/server/sonar-web/src/test/json/groups-spec/search-filtered.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 50,
- "groups": [
- {
- "id": "2",
- "name": "sonar-administrators",
- "description": "System administrators",
- "membersCount": 1
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/groups-spec/search-updated.json b/server/sonar-web/src/test/json/groups-spec/search-updated.json
deleted file mode 100644
index ed1484f245d..00000000000
--- a/server/sonar-web/src/test/json/groups-spec/search-updated.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 50,
- "groups": [
- {
- "id": "1",
- "name": "sonar-users",
- "description": "Any new users created will automatically join this group",
- "membersCount": 3
- },
- {
- "id": "2",
- "name": "guys",
- "description": "cool guys",
- "membersCount": 1
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/groups-spec/search.json b/server/sonar-web/src/test/json/groups-spec/search.json
deleted file mode 100644
index a347403c5ae..00000000000
--- a/server/sonar-web/src/test/json/groups-spec/search.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "total": 2,
- "p": 1,
- "ps": 50,
- "groups": [
- {
- "id": "1",
- "name": "sonar-users",
- "description": "Any new users created will automatically join this group",
- "membersCount": 3
- },
- {
- "id": "2",
- "name": "sonar-administrators",
- "description": "System administrators",
- "membersCount": 1
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/groups-spec/users.json b/server/sonar-web/src/test/json/groups-spec/users.json
deleted file mode 100644
index dfb28ec4555..00000000000
--- a/server/sonar-web/src/test/json/groups-spec/users.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "users": [
- {
- "login": "bob",
- "name": "Bob",
- "selected": true
- },
- {
- "login": "john",
- "name": "John",
- "selected": true
- }
- ],
- "p": 1,
- "ps": 100,
- "total": 2
-}
diff --git a/server/sonar-web/src/test/json/histogram-spec/search-filter-max-results-reached.json b/server/sonar-web/src/test/json/histogram-spec/search-filter-max-results-reached.json
deleted file mode 100644
index 182fda3fad8..00000000000
--- a/server/sonar-web/src/test/json/histogram-spec/search-filter-max-results-reached.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "metrics": {
- "sqale_index": {
- "name": "Technical Debt",
- "type": "WORK_DUR",
- "direction": -1,
- "bestValue": 0
- }
- },
- "components": [
- {
- "key": "a",
- "name": "A",
- "longName": "A",
- "qualifier": "TRK",
- "measures": {
- "sqale_index": {
- "val": 8600,
- "fval": "17d"
- }
- }
- },
- {
- "key": "b",
- "name": "B",
- "longName": "B",
- "qualifier": "TRK",
- "measures": {
- "sqale_index": {
- "val": 2465,
- "fval": "5d 1h"
- }
- }
- },
- {
- "key": "c",
- "name": "C",
- "longName": "C",
- "qualifier": "TRK",
- "measures": {
- "sqale_index": {
- "val": 435,
- "fval": "7h 15min"
- }
- }
- }
- ],
- "maxResultsReached": true,
- "paging": {
- "page": 1,
- "pages": 10,
- "pageSize": 3,
- "total": 30
- }
-}
diff --git a/server/sonar-web/src/test/json/histogram-spec/search-filter-no-data.json b/server/sonar-web/src/test/json/histogram-spec/search-filter-no-data.json
deleted file mode 100644
index ca64689619f..00000000000
--- a/server/sonar-web/src/test/json/histogram-spec/search-filter-no-data.json
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- "metrics": {
- "sqale_index": {
- "name": "Technical Debt",
- "type": "WORK_DUR",
- "direction": -1,
- "bestValue": 0
- }
- },
- "components": [
- {
- "key": "a",
- "name": "A",
- "longName": "A",
- "qualifier": "TRK",
- "measures": {}
- },
- {
- "key": "b",
- "name": "B",
- "longName": "B",
- "qualifier": "TRK",
- "measures": {}
- },
- {
- "key": "c",
- "name": "C",
- "longName": "C",
- "qualifier": "TRK",
- "measures": {}
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "page": 1,
- "pages": 1,
- "pageSize": 40,
- "total": 3
- }
-}
diff --git a/server/sonar-web/src/test/json/histogram-spec/search-filter.json b/server/sonar-web/src/test/json/histogram-spec/search-filter.json
deleted file mode 100644
index aa2bd6876c4..00000000000
--- a/server/sonar-web/src/test/json/histogram-spec/search-filter.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "metrics": {
- "sqale_index": {
- "name": "Technical Debt",
- "type": "WORK_DUR",
- "direction": -1,
- "bestValue": 0
- }
- },
- "components": [
- {
- "key": "a",
- "name": "A",
- "longName": "A",
- "qualifier": "TRK",
- "measures": {
- "sqale_index": {
- "val": 8600,
- "fval": "17d"
- }
- }
- },
- {
- "key": "b",
- "name": "B",
- "longName": "B",
- "qualifier": "TRK",
- "measures": {
- "sqale_index": {
- "val": 2465,
- "fval": "5d 1h"
- }
- }
- },
- {
- "key": "c",
- "name": "C",
- "longName": "C",
- "qualifier": "TRK",
- "measures": {
- "sqale_index": {
- "val": 435,
- "fval": "7h 15min"
- }
- }
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "page": 1,
- "pages": 1,
- "pageSize": 40,
- "total": 3
- }
-}
diff --git a/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/app.json b/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/app.json
deleted file mode 100644
index 1006684e0c9..00000000000
--- a/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/app.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "canManageFilters": false,
- "canBulkChange": false,
- "favorites": []
-}
diff --git a/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/components-app.json b/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/components-app.json
deleted file mode 100644
index 61afe8a34c8..00000000000
--- a/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/components-app.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "key": "org.codehaus.sonar-plugins:sonar-issues-report-plugin:src/main/java/org/sonar/issuesreport/ReportJob.java",
- "uuid": "98662175-0f52-4f83-b0e9-1e9444320b5b",
- "path": "src/main/java/org/sonar/issuesreport/ReportJob.java",
- "name": "ReportJob.java",
- "longName": "src/main/java/org/sonar/issuesreport/ReportJob.java",
- "q": "FIL",
- "project": "org.codehaus.sonar-plugins:sonar-issues-report-plugin",
- "projectName": "Sonar :: Issues Report :: Plugin",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "53",
- "coverage": "100.0%",
- "issues": "1",
- "debt": "5min",
- "sqaleRating": "A",
- "debtRatio": "0.6%"
- }
-}
diff --git a/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/lines.json b/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/lines.json
deleted file mode 100644
index cd2053d91d6..00000000000
--- a/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/lines.json
+++ /dev/null
@@ -1,392 +0,0 @@
-{
- "sources": [
- {
- "line": 1,
- "code": "<span class=\"cppd\">/*</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 2,
- "code": "<span class=\"cppd\"> * Sonar :: Issues Report :: Plugin</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 3,
- "code": "<span class=\"cppd\"> * Copyright (C) 2013 SonarSource</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 4,
- "code": "<span class=\"cppd\"> * dev@sonar.codehaus.org</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 5,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 6,
- "code": "<span class=\"cppd\"> * This program is free software; you can redistribute it and/or</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 7,
- "code": "<span class=\"cppd\"> * modify it under the terms of the GNU Lesser General Public</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 8,
- "code": "<span class=\"cppd\"> * License as published by the Free Software Foundation; either</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 9,
- "code": "<span class=\"cppd\"> * version 3 of the License, or (at your option) any later version.</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 10,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 11,
- "code": "<span class=\"cppd\"> * This program is distributed in the hope that it will be useful,</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 12,
- "code": "<span class=\"cppd\"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 13,
- "code": "<span class=\"cppd\"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 14,
- "code": "<span class=\"cppd\"> * Lesser General Public License for more details.</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 15,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 16,
- "code": "<span class=\"cppd\"> * You should have received a copy of the GNU Lesser General Public</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 17,
- "code": "<span class=\"cppd\"> * License along with this program; if not, write to the Free Software</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 18,
- "code": "<span class=\"cppd\"> * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 19,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 20,
- "code": "<span class=\"k\">package</span> org.sonar.issuesreport;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 21,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 22,
- "code": "<span class=\"k\">import </span>org.sonar.api.batch.<span class=\"sym-1 sym\">PostJob</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 23,
- "code": "<span class=\"k\">import </span>org.sonar.api.batch.<span class=\"sym-2 sym\">SensorContext</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 24,
- "code": "<span class=\"k\">import </span>org.sonar.api.resources.<span class=\"sym-3 sym\">Project</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 25,
- "code": "<span class=\"k\">import </span>org.sonar.issuesreport.printer.<span class=\"sym-4 sym\">ReportPrinter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200"
- },
- {
- "line": 26,
- "code": "<span class=\"k\">import </span>org.sonar.issuesreport.report.<span class=\"sym-5 sym\">IssuesReport</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "ed1e45b9f01b4d6bc704595ff42e6ecd6fb80dbe",
- "scmDate": "2013-02-20T17:18:48+0100"
- },
- {
- "line": 27,
- "code": "<span class=\"k\">import </span>org.sonar.issuesreport.report.<span class=\"sym-6 sym\">IssuesReportBuilder</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200"
- },
- {
- "line": 28,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 29,
- "code": "<span class=\"k\">public </span><span class=\"k\">class</span> <span class=\"sym-7 sym\">ReportJob</span> <span class=\"k\">implements</span> <span class=\"sym-1 sym\">PostJob</span> {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 30,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 31,
- "code": " <span class=\"k\">private </span><span class=\"sym-6 sym\">IssuesReportBuilder</span> <span class=\"sym-8 sym\">builder</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200"
- },
- {
- "line": 32,
- "code": " <span class=\"k\">private </span><span class=\"sym-4 sym\">ReportPrinter</span>[] <span class=\"sym-9 sym\">printers</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200"
- },
- {
- "line": 33,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 34,
- "code": " <span class=\"k\">public </span><span class=\"sym-10 sym\">ReportJob</span>(<span class=\"sym-6 sym\">IssuesReportBuilder</span> <span class=\"sym-11 sym\">builder</span>, <span class=\"sym-4 sym\">ReportPrinter</span>[] <span class=\"sym-12 sym\">printers</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200",
- "lineHits": 1
- },
- {
- "line": 35,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-8 sym\">builder</span> = <span class=\"sym-11 sym\">builder</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200",
- "lineHits": 1
- },
- {
- "line": 36,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-9 sym\">printers</span> = <span class=\"sym-12 sym\">printers</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200",
- "lineHits": 1
- },
- {
- "line": 37,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100",
- "lineHits": 1
- },
- {
- "line": 38,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 39,
- "code": " <span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-13 sym\">executeOn</span>(<span class=\"sym-3 sym\">Project</span> <span class=\"sym-14 sym\">project</span>, <span class=\"sym-2 sym\">SensorContext</span> <span class=\"sym-15 sym\">context</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 40,
- "code": " <span class=\"cppd\">// For performance only initialize IssuesReport if there is on Printer enabled</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200"
- },
- {
- "line": 41,
- "code": " <span class=\"sym-5 sym\">IssuesReport</span> <span class=\"sym-16 sym\">report</span> = <span class=\"k\">null</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200",
- "lineHits": 1
- },
- {
- "line": 42,
- "code": " <span class=\"k\">for</span> (<span class=\"sym-4 sym\">ReportPrinter</span> <span class=\"sym-17 sym\">printer</span> : <span class=\"sym-9 sym\">printers</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200",
- "lineHits": 1,
- "conditions": 2,
- "coveredConditions": 2
- },
- {
- "line": 43,
- "code": " <span class=\"k\">if </span>(<span class=\"sym-17 sym\">printer</span>.isEnabled()) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200",
- "lineHits": 1,
- "conditions": 2,
- "coveredConditions": 2
- },
- {
- "line": 44,
- "code": " <span class=\"k\">if </span>(<span class=\"sym-16 sym\">report</span> == <span class=\"k\">null</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "ed1e45b9f01b4d6bc704595ff42e6ecd6fb80dbe",
- "scmDate": "2013-02-20T17:18:48+0100",
- "lineHits": 1,
- "conditions": 2,
- "coveredConditions": 2
- },
- {
- "line": 45,
- "code": " <span class=\"sym-16 sym\">report</span> = <span class=\"sym-8 sym\">builder</span>.buildReport(<span class=\"sym-14 sym\">project</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200",
- "lineHits": 1
- },
- {
- "line": 46,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "ed1e45b9f01b4d6bc704595ff42e6ecd6fb80dbe",
- "scmDate": "2013-02-20T17:18:48+0100"
- },
- {
- "line": 47,
- "code": " <span class=\"sym-17 sym\">printer</span>.print(<span class=\"sym-16 sym\">report</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200",
- "lineHits": 1
- },
- {
- "line": 48,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200"
- },
- {
- "line": 49,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "bbbf5a70655725bd960e41626bcda3b0f85c82d9",
- "scmDate": "2013-09-19T19:06:45+0200"
- },
- {
- "line": 50,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "ed1e45b9f01b4d6bc704595ff42e6ecd6fb80dbe",
- "scmDate": "2013-02-20T17:18:48+0100",
- "lineHits": 1
- },
- {
- "line": 51,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "ed1e45b9f01b4d6bc704595ff42e6ecd6fb80dbe",
- "scmDate": "2013-02-20T17:18:48+0100"
- },
- {
- "line": 52,
- "code": "}",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- },
- {
- "line": 53,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "a0c83c815b2deeec585de6894a0b882db635410f",
- "scmDate": "2013-02-19T18:45:35+0100"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/search.json b/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/search.json
deleted file mode 100644
index 655e7492bd7..00000000000
--- a/server/sonar-web/src/test/json/issues-page-should-open-issue-permalink/search.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 1,
- "projects": [
- {
- "uuid": "06a742ea-5c55-4c7e-a2b4-8747c163cb40",
- "key": "org.codehaus.sonar-plugins:sonar-issues-report-plugin",
- "id": 17637,
- "qualifier": "TRK",
- "name": "Sonar :: Issues Report :: Plugin",
- "longName": "Sonar :: Issues Report :: Plugin"
- }
- ],
- "components": [
- {
- "uuid": "0160edec-b7ca-49a1-93ca-a6ea2c38ed21",
- "key": "org.codehaus.sonar-plugins:sonar-issues-report-plugin:src/main/java/org/sonar/issuesreport/IssuesReportPlugin.java",
- "id": 17639,
- "enabled": true,
- "qualifier": "FIL",
- "name": "IssuesReportPlugin.java",
- "longName": "src/main/java/org/sonar/issuesreport/IssuesReportPlugin.java",
- "path": "src/main/java/org/sonar/issuesreport/IssuesReportPlugin.java",
- "projectId": 17637,
- "subProjectId": 17637
- },
- {
- "uuid": "06a742ea-5c55-4c7e-a2b4-8747c163cb40",
- "key": "org.codehaus.sonar-plugins:sonar-issues-report-plugin",
- "id": 17637,
- "enabled": true,
- "qualifier": "TRK",
- "name": "Sonar :: Issues Report :: Plugin",
- "longName": "Sonar :: Issues Report :: Plugin"
- }
- ],
- "issues": [
- {
- "key": "some-issue-key",
- "component": "org.codehaus.sonar-plugins:sonar-issues-report-plugin:src/main/java/org/sonar/issuesreport/IssuesReportPlugin.java",
- "componentId": 17639,
- "project": "org.codehaus.sonar-plugins:sonar-issues-report-plugin",
- "rule": "squid:S1161",
- "status": "REOPENED",
- "severity": "MINOR",
- "message": "Add the \"@Override\" annotation above this method signature",
- "line": 61,
- "debt": "5min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-10-09T23:03:12+0200",
- "updateDate": "2014-12-15T17:40:45+0100",
- "fUpdateAge": "a day"
- }
- ],
- "rules": [
- {
- "key": "squid:S1161",
- "name": "",
- "lang": "java",
- "desc": "",
- "status": "READY",
- "langName": "Java"
- }
- ],
- "users": [
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- }
- ],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 1,
- "total": 1,
- "fTotal": "1",
- "pages": 1
- },
- "facets": [
- {
- "property": "tags",
- "values": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/app.json b/server/sonar-web/src/test/json/issues-spec/app.json
deleted file mode 100644
index 604ef7c79f1..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/app.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "canManageFilters": true,
- "canBulkChange": true,
- "favorites": [
- {
- "id": 31,
- "name": "Critical and Blocker Issues"
- },
- {
- "id": 32,
- "name": "Foo"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/file-level/components-app.json b/server/sonar-web/src/test/json/issues-spec/file-level/components-app.json
deleted file mode 100644
index 537dd0787a8..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/file-level/components-app.json
+++ /dev/null
@@ -1,124 +0,0 @@
-{
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "path": "src/main/java/org/sonar/api/measures/Measure.java",
- "name": "Measure.java",
- "longName": "src/main/java/org/sonar/api/measures/Measure.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "subProjectName": "SonarQube :: Plugin API",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canBulkChange": false,
- "canCreateManualIssue": false,
- "periods": [
- [
- 1,
- "since previous analysis (2014 Dec 01)",
- "2014-12-01T18:51:13+0100"
- ],
- [
- 2,
- "over 365 days (2013 Dec 01)",
- "2013-12-01T00:40:31+0100"
- ],
- [
- 3,
- "since previous version (4.5 - 2014 Sep 03)",
- "2014-09-03T23:16:52+0200"
- ]
- ],
- "severities": [
- [
- "MAJOR",
- "Major",
- 10
- ],
- [
- "INFO",
- "Info",
- 3
- ]
- ],
- "rules": [
- [
- "common-java:DuplicatedBlocks",
- "Duplicated blocks",
- 1
- ],
- [
- "squid:S1698",
- "Objects should be compared with \"equals()\"",
- 1
- ],
- [
- "squid:MethodCyclomaticComplexity",
- "Methods should not be too complex",
- 3
- ],
- [
- "squid:S1142",
- "Methods should not contain too many return statements",
- 2
- ],
- [
- "squid:S1067",
- "Expressions should not be too complex",
- 1
- ],
- [
- "squid:S1151",
- "Switch cases should not have too many lines",
- 1
- ],
- [
- "common-java:InsufficientBranchCoverage",
- "Insufficient branch coverage by unit tests",
- 1
- ],
- [
- "squid:S1133",
- "Deprecated code should be removed eventually",
- 3
- ]
- ],
- "measures": {
- "fNcloc": "396",
- "fCoverage": "65.0%",
- "fDuplicationDensity": "2.6%",
- "fDebt": "5h 42min",
- "fSqaleRating": "A",
- "fSqaleDebtRatio": "2.9%",
- "fIssues": "13",
- "fMajorIssues": "10",
- "fInfoIssues": "3"
- },
- "tabs": [
- "scm",
- "coverage",
- "duplications"
- ],
- "manual_rules": [
- {
- "key": "manual:api",
- "name": "API"
- },
- {
- "key": "manual:design",
- "name": "Design"
- },
- {
- "key": "manual:error_handling",
- "name": "Error handling"
- },
- {
- "key": "manual:performance",
- "name": "Performance"
- },
- {
- "key": "manual:sql_pitfalls",
- "name": "SQL Pitfall"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/file-level/lines.json b/server/sonar-web/src/test/json/issues-spec/file-level/lines.json
deleted file mode 100644
index 18a670b8522..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/file-level/lines.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "sources": [
- {
- "line": 1,
- "code": "<span class=\"cppd\">/*</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "aeadc1f9129274949daaa57738c7c4550bdfbc7b",
- "scmDate": "2010-09-06T16:08:06+0200"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/file-level/search.json b/server/sonar-web/src/test/json/issues-spec/file-level/search.json
deleted file mode 100644
index 5ea06f0c717..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/file-level/search.json
+++ /dev/null
@@ -1,494 +0,0 @@
-{
- "total": 10,
- "p": 1,
- "ps": 50,
- "projects": [
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- }
- ],
- "components": [
- {
- "uuid": "7feef7c3-11b9-4175-b5a7-527ca3c75cb7",
- "key": "org.codehaus.sonar:sonar-plugin-api",
- "id": 16,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Plugin API",
- "longName": "SonarQube :: Plugin API",
- "path": "sonar-plugin-api",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "e1b3c47e-e9a2-42ea-9cac-439ce2345d7e",
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Metric.java",
- "id": 3543,
- "enabled": true,
- "qualifier": "FIL",
- "name": "Metric.java",
- "longName": "src/main/java/org/sonar/api/measures/Metric.java",
- "path": "src/main/java/org/sonar/api/measures/Metric.java",
- "projectId": 2865,
- "subProjectId": 16
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- },
- {
- "uuid": "e2550527-3f86-4082-a9ae-e345f5a735aa",
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "id": 3538,
- "enabled": true,
- "qualifier": "FIL",
- "name": "Measure.java",
- "longName": "src/main/java/org/sonar/api/measures/Measure.java",
- "path": "src/main/java/org/sonar/api/measures/Measure.java",
- "projectId": 2865,
- "subProjectId": 16
- },
- {
- "uuid": "97606f40-f3ef-4922-aa37-f67485917e67",
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/resources/File.java",
- "id": 3592,
- "enabled": true,
- "qualifier": "FIL",
- "name": "File.java",
- "longName": "src/main/java/org/sonar/api/resources/File.java",
- "path": "src/main/java/org/sonar/api/resources/File.java",
- "projectId": 2865,
- "subProjectId": 16
- },
- {
- "uuid": "69949290-cfe6-45b6-9dd0-53f1e467b810",
- "key": "org.codehaus.sonar:sonar-duplications",
- "id": 20,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Duplications",
- "longName": "SonarQube :: Duplications",
- "path": "sonar-duplications",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "90dd5fda-5fce-4d76-bebf-132922abad95",
- "key": "org.codehaus.sonar:sonar-duplications:src/main/java/org/sonar/duplications/index/PackedMemoryCloneIndex.java",
- "id": 3308,
- "enabled": true,
- "qualifier": "FIL",
- "name": "PackedMemoryCloneIndex.java",
- "longName": "src/main/java/org/sonar/duplications/index/PackedMemoryCloneIndex.java",
- "path": "src/main/java/org/sonar/duplications/index/PackedMemoryCloneIndex.java",
- "projectId": 2865,
- "subProjectId": 20
- },
- {
- "uuid": "1b915447-5aa8-4f59-9134-346a4e88c7b7",
- "key": "org.codehaus.sonar.plugins:sonar-core-plugin",
- "id": 2873,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Plugins :: Core",
- "longName": "SonarQube :: Plugins :: Core",
- "path": "plugins/sonar-core-plugin",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "6c9c1986-59b3-4839-8dec-9499488f64d1",
- "key": "org.codehaus.sonar.plugins:sonar-core-plugin:src/main/java/org/sonar/plugins/core/issue/tracking/StringTextComparator.java",
- "id": 20777,
- "enabled": true,
- "qualifier": "FIL",
- "name": "StringTextComparator.java",
- "longName": "src/main/java/org/sonar/plugins/core/issue/tracking/StringTextComparator.java",
- "path": "src/main/java/org/sonar/plugins/core/issue/tracking/StringTextComparator.java",
- "projectId": 2865,
- "subProjectId": 2873
- }
- ],
- "issues": [
- {
- "key": "200d4a8b-9666-4e70-9953-7bab57933f97",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-06-06T23:38:06+0200",
- "updateDate": "2014-07-01T17:51:37+0200",
- "fUpdateAge": "5 months",
- "actions": [],
- "transitions": []
- },
- {
- "key": "23c5a022-ab5b-4892-b676-a7fd58540f79",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "10min",
- "creationDate": "2014-09-02T09:25:36+0200",
- "updateDate": "2014-10-09T16:21:48+0200",
- "fUpdateAge": "about a month",
- "actions": [],
- "transitions": []
- },
- {
- "key": "23d6cd5e-83ba-4e65-abef-ff8592195638",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:S1142",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce the number of returns of this method 7, down to the maximum allowed 5.",
- "line": 248,
- "debt": "20min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-16T23:38:20+0200",
- "updateDate": "2014-07-01T18:26:25+0200",
- "fUpdateAge": "5 months",
- "actions": [],
- "transitions": []
- },
- {
- "key": "8c5a4fca-57c9-44ad-89c0-6673c483e357",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:MethodCyclomaticComplexity",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "The Cyclomatic Complexity of this method \"value\" is 22 which is greater than 10 authorized.",
- "line": 248,
- "debt": "10min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-16T23:38:20+0200",
- "updateDate": "2014-07-01T16:20:08+0200",
- "fUpdateAge": "5 months",
- "actions": [],
- "transitions": []
- },
- {
- "key": "57303136-93b5-4d96-b1ca-654160aa5bdb",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:S1151",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce this switch case number of lines from 8 to at most 5, for example by extracting code into methods.",
- "line": 266,
- "debt": "10min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-16T23:38:20+0200",
- "updateDate": "2014-06-30T16:41:24+0200",
- "fUpdateAge": "5 months",
- "actions": [],
- "transitions": []
- },
- {
- "key": "dbf052eb-f991-44db-a829-029d47b7fe2d",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:MethodCyclomaticComplexity",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "The Cyclomatic Complexity of this method \"getVariation\" is 12 which is greater than 10 authorized.",
- "line": 562,
- "debt": "10min",
- "author": "Simon Brandhof",
- "creationDate": "2011-10-25T12:27:40+0200",
- "updateDate": "2013-12-18T23:54:49+0100",
- "fUpdateAge": "11 months",
- "actions": [],
- "transitions": []
- },
- {
- "key": "50db1415-bd3c-4c24-ab0a-763177059770",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:S1698",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 684,
- "debt": "2min",
- "author": "david@gageot.net",
- "creationDate": "2014-06-26T23:17:10+0200",
- "updateDate": "2014-07-01T16:13:48+0200",
- "fUpdateAge": "5 months",
- "actions": [],
- "transitions": []
- },
- {
- "key": "5fbdc597-0d83-4ea2-9d9d-ac192ec1eec1",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:S1067",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce the number of conditional operators (5) used in the expression (maximum allowed 3).",
- "line": 684,
- "debt": "10min",
- "author": "david@gageot.net",
- "creationDate": "2013-08-28T12:19:16+0200",
- "updateDate": "2013-12-10T14:28:37+0100",
- "fUpdateAge": "12 months",
- "actions": [],
- "transitions": []
- },
- {
- "key": "186d1419-f5e9-412f-8a8e-f8cd81920359",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:MethodCyclomaticComplexity",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "The Cyclomatic Complexity of this method \"equals\" is 15 which is greater than 10 authorized.",
- "line": 724,
- "debt": "10min",
- "author": "Simon Brandhof",
- "creationDate": "2011-10-25T12:27:40+0200",
- "updateDate": "2014-03-12T10:43:19+0100",
- "fUpdateAge": "9 months",
- "actions": [],
- "transitions": []
- },
- {
- "key": "225d3b74-8b61-46a1-aac2-68221d6cd933",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/measures/Measure_2.java",
- "componentId": 3538,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:S1142",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce the number of returns of this method 6, down to the maximum allowed 5.",
- "line": 724,
- "debt": "20min",
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-08-09T16:04:33+0200",
- "updateDate": "2014-03-12T10:43:19+0100",
- "fUpdateAge": "9 months",
- "actions": [],
- "transitions": []
- }
- ],
- "rules": [
- {
- "key": "squid:S1698",
- "name": "Objects should be compared with \"equals()\"",
- "lang": "java",
- "desc": "<p>Using the equality (<code>==</code>) and inequality (<code>!=</code>) operators to compare two objects does not check to see if they have the same values. Rather it checks to see if both object references point to exactly the same object in memory. The vast majority of the time, this is not what you want to do. Use the .equals() method to compare the values of two objects or to compare a string object to a string literal.</p>\n\n<h2>Noncompliant Code Sample</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1 == str2)\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == \"blue\")\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this prints\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1.equals(str2))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1.equals(\"blue\"))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this still prints, but it's probably not what you meant to do\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "common-java:DuplicatedBlocks",
- "name": "Duplicated blocks",
- "lang": "java",
- "desc": "<p>An issue is created on a file as soon as there is a block of duplicated code on this file. It gives the number of blocks in the file.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:MethodCyclomaticComplexity",
- "name": "Methods should not be too complex",
- "lang": "java",
- "desc": "<p>The Cyclomatic Complexity is measured by the number of\n\t(&amp;&amp;, ||) operators and (if, while, do, for, ?:, catch, switch,\n\tcase, return, throw) statements in the body of a class plus one for\n\teach constructor, method (but not getter/setter), static initializer,\n\tor instance initializer in the class. The last return stament in\n\tmethod, if exists, is not taken into account.</p>\n<p>\n\tEven when the Cyclomatic Complexity of a class is very high, this\n\tcomplexity might be well distributed among all methods. Nevertheless,\n\tmost of the time, a very complex class is a class which breaks the <a\n\t\thref=\"http://en.wikipedia.org/wiki/Single_responsibility_principle\">Single\n\t\tResponsibility Principle</a> and which should be re-factored to be split\n\tin several classes.\n</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1142",
- "name": "Methods should not contain too many return statements",
- "lang": "java",
- "desc": "<p>\nHaving too many return statements in a method increases the method's essential complexity because the flow of execution is broken each time a return statement is encountered.\nThis makes it harder to read and understand the logic of the method.\n</p>\n\n<p>\nThe following code snippet illustrates this rule with the default threshold of 3:\n</p>\n\n<pre>\npublic boolean myMethod() { // Non-Compliant as there are 4 return statements\n if (condition1) {\n return true;\n } else {\n if (condition2) {\n return false;\n } else {\n return true;\n }\n }\n return false;\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1067",
- "name": "Expressions should not be too complex",
- "lang": "java",
- "desc": "<p>\nThe complexity of an expression is defined by the number of <code>&&</code>, <code>||</code> and <code>condition ? ifTrue : ifFalse</code> operators it contains.\nA single expression's complexity should not become too high to keep the code readable.\n</p>\n\n<p>The following code, with a maximum complexity of 3:</p>\n\n<pre>\nif (condition1 && condition2 && condition3 && condition4) { /* ... */ } // Non-Compliant\n</pre>\n\n<p>could be refactored into something like:</p>\n\n<pre>\nif (relevantMethodName1() && relevantMethodName2()) { /* ... */ } // Compliant\n\n/* ... */\n\nprivate boolean relevantMethodName1() {\n return condition1 && condition2;\n}\n\nprivate boolean relevantMethodName2() {\n return condition3 && condition4;\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1151",
- "name": "Switch cases should not have too many lines",
- "lang": "java",
- "desc": "<p>Switch cases should remain small to keep the overall switch compact and readable.</p>\n\n<p>The following code snippet illustrates this rule with the default threshold of 5:</p>\n\n<pre>\nswitch (myVariable) {\n case 0: // Compliant - 5 lines till following case\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n break;\n default: // Non-Compliant - 6 lines till switch end\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n break;\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "common-java:InsufficientBranchCoverage",
- "name": "Insufficient branch coverage by unit tests",
- "lang": "java",
- "desc": "<p>An issue is created on a file as soon as the branch coverage on this file is less than the required threshold.It gives the number of branches to be covered in order to reach the required threshold.</p>",
- "status": "READY",
- "langName": "Java"
- }
- ],
- "users": [],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 50,
- "total": 10,
- "fTotal": "10",
- "pages": 1
- },
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 10
- },
- {
- "val": "INFO",
- "count": 3
- },
- {
- "val": "MINOR",
- "count": 0
- },
- {
- "val": "CRITICAL",
- "count": 0
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- },
- {
- "property": "statuses",
- "values": [
- {
- "val": "CONFIRMED",
- "count": 10
- },
- {
- "val": "OPEN",
- "count": 0
- },
- {
- "val": "REOPENED",
- "count": 0
- },
- {
- "val": "RESOLVED",
- "count": 0
- },
- {
- "val": "CLOSED",
- "count": 0
- }
- ]
- },
- {
- "property": "resolutions",
- "values": [
- {
- "val": "REMOVED",
- "count": 43
- },
- {
- "val": "FIXED",
- "count": 4
- },
- {
- "val": "",
- "count": 10
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 0
- }
- ]
- },
- {
- "property": "projectUuids",
- "values": [
- {
- "val": "69e57151-be0d-4157-adff-c06741d88879",
- "count": 10
- }
- ]
- },
- {
- "property": "componentUuids",
- "values": [
- {
- "val": "90dd5fda-5fce-4d76-bebf-132922abad95",
- "count": 20
- },
- {
- "val": "e2550527-3f86-4082-a9ae-e345f5a735aa",
- "count": 10
- },
- {
- "val": "97606f40-f3ef-4922-aa37-f67485917e67",
- "count": 8
- },
- {
- "val": "6c9c1986-59b3-4839-8dec-9499488f64d1",
- "count": 7
- },
- {
- "val": "e1b3c47e-e9a2-42ea-9cac-439ce2345d7e",
- "count": 6
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/filter.json b/server/sonar-web/src/test/json/issues-spec/filter.json
deleted file mode 100644
index 6b6ecfef664..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/filter.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "filter": {
- "id": 31,
- "name": "Critical and Blocker Issues",
- "shared": true,
- "query": "resolved=false|severities=BLOCKER,CRITICAL",
- "canModify": true
- }
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/issue-filters.json b/server/sonar-web/src/test/json/issues-spec/issue-filters.json
deleted file mode 100644
index 290451d7485..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/issue-filters.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "issueFilters": [
- {
- "id": "1",
- "name": "Unresolved Issues",
- "user": "[SonarQube]",
- "shared": true,
- "query": "resolved=false",
- "canModify": true,
- "favorite": false
- },
- {
- "id": "2",
- "name": "False Positive and Won't Fix Issues",
- "user": "[SonarQube]",
- "shared": true,
- "query": "resolutions=FALSE-POSITIVE,WONTFIX",
- "canModify": true,
- "favorite": false
- },
- {
- "id": "3",
- "name": "My Unresolved Issues",
- "user": "[SonarQube]",
- "shared": true,
- "query": "resolved=false|assignees=__me__",
- "canModify": true,
- "favorite": false
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/rule.json b/server/sonar-web/src/test/json/issues-spec/rule.json
deleted file mode 100644
index f4abb0ce469..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/rule.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "rule": {
- "key": "common-java:InsufficientBranchCoverage",
- "repo": "common-java",
- "name": "Insufficient branch coverage by unit tests",
- "createdAt": "2015-04-13T13:44:07+0200",
- "severity": "MAJOR",
- "status": "READY",
- "internalKey": "InsufficientBranchCoverage",
- "isTemplate": false,
- "tags": [],
- "sysTags": [],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>An issue is created on a file as soon as the branch coverage on this file is less than the required threshold.It gives the number of branches to be covered in order to reach the required threshold.</p>",
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "UNIT_TESTS",
- "debtChar": "RELIABILITY",
- "debtSubChar": "UNIT_TESTS",
- "debtCharName": "Reliability",
- "debtSubCharName": "Unit tests coverage",
- "defaultDebtRemFnType": "LINEAR",
- "defaultDebtRemFnCoeff": "10min",
- "debtOverloaded": false,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "10min",
- "params": [
- {
- "key": "minimumBranchCoverageRatio",
- "htmlDesc": "The minimum required branch coverage ratio.",
- "type": "STRING",
- "defaultValue": "65.0"
- }
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/search-changed.json b/server/sonar-web/src/test/json/issues-spec/search-changed.json
deleted file mode 100644
index 851daf3659f..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/search-changed.json
+++ /dev/null
@@ -1,2085 +0,0 @@
-{
- "total": 4623,
- "p": 1,
- "ps": 50,
- "components": [
- {
- "uuid": "367350ce-00c7-461b-8348-c64138515ef9",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/UnusedPrivateVariableCheck.java",
- "id": 29801,
- "enabled": true,
- "qualifier": "FIL",
- "name": "UnusedPrivateVariableCheck.java",
- "longName": "src/main/java/com/sonar/vb/checks/UnusedPrivateVariableCheck.java",
- "path": "src/main/java/com/sonar/vb/checks/UnusedPrivateVariableCheck.java",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "2c39c99e-6c3e-4635-a673-fbd876eb2107",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "id": 19130,
- "enabled": true,
- "qualifier": "FIL",
- "name": "CDataDocTokenizer.java",
- "longName": "src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "path": "src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "729bcb00-97b2-432d-b36e-06174e0bea26",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "id": 19132,
- "enabled": true,
- "qualifier": "FIL",
- "name": "XmlStartElementTokenizer.java",
- "longName": "src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "path": "src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "e1cf7541-9f52-4c9c-864e-85257b6126da",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/api",
- "id": 26175,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/xml/api",
- "longName": "src/main/java/org/sonar/xml/api",
- "path": "src/main/java/org/sonar/xml/api",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "23eaa59a-36dd-484d-9cb3-af9ddac0943f",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/parsers/AbstractParser.java",
- "id": 17191,
- "enabled": true,
- "qualifier": "FIL",
- "name": "AbstractParser.java",
- "longName": "src/main/java/org/sonar/plugins/xml/parsers/AbstractParser.java",
- "path": "src/main/java/org/sonar/plugins/xml/parsers/AbstractParser.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "730a7d9f-f280-48dd-9a09-de210f5db607",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml",
- "id": 26174,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/xml",
- "longName": "src/main/java/org/sonar/xml",
- "path": "src/main/java/org/sonar/xml",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "45d36e11-d9ed-4157-8a2c-916d2e131af7",
- "key": "org.codehaus.sonar-plugins.xml:sslr-xml-toolkit",
- "id": 17257,
- "enabled": true,
- "qualifier": "BRC",
- "name": "XML :: SSLR Toolkit",
- "longName": "XML :: SSLR Toolkit",
- "path": "sslr-xml-toolkit",
- "projectId": 17156,
- "subProjectId": 17156
- },
- {
- "uuid": "e3ac3a3e-ac1b-4e3a-8e38-039e06a2ca38",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/LineContinuationChannel.java",
- "id": 28613,
- "enabled": true,
- "qualifier": "FIL",
- "name": "LineContinuationChannel.java",
- "longName": "src/main/java/com/sonar/vb/LineContinuationChannel.java",
- "path": "src/main/java/com/sonar/vb/LineContinuationChannel.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "7428200d-ce03-464d-a099-593092cd0291",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/TrailingCommentCheck.java",
- "id": 29769,
- "enabled": true,
- "qualifier": "FIL",
- "name": "TrailingCommentCheck.java",
- "longName": "src/main/java/com/sonar/vb/checks/TrailingCommentCheck.java",
- "path": "src/main/java/com/sonar/vb/checks/TrailingCommentCheck.java",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "966aa6fd-9463-422c-b785-208ad519e4ea",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/ProgressAstScanner.java",
- "id": 28614,
- "enabled": true,
- "qualifier": "FIL",
- "name": "ProgressAstScanner.java",
- "longName": "src/main/java/com/sonar/vb/ProgressAstScanner.java",
- "path": "src/main/java/com/sonar/vb/ProgressAstScanner.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "c236560b-b257-4f34-bb7b-3977d178e1ff",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/AbstractXmlCheck.java",
- "id": 17168,
- "enabled": true,
- "qualifier": "FIL",
- "name": "AbstractXmlCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/AbstractXmlCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/AbstractXmlCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "26f2099c-664b-424a-b815-c017eb2165b1",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks",
- "id": 29690,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/checks",
- "longName": "src/main/java/com/sonar/vb/checks",
- "path": "src/main/java/com/sonar/vb/checks",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "4adacc63-7447-4bb1-95ae-1cc5102e8335",
- "key": "com.sonarsource.plugins.vb:vb-checks",
- "id": 29689,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarSource :: Visual Basic :: Checks",
- "longName": "SonarSource :: Visual Basic :: Checks",
- "path": "vb-checks",
- "projectId": 28554,
- "subProjectId": 28554
- },
- {
- "uuid": "fa92c266-befe-460c-8bad-1ff13b918ec5",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb",
- "id": 28611,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb",
- "longName": "src/main/java/com/sonar/vb",
- "path": "src/main/java/com/sonar/vb",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "e92b1510-91c3-4479-8714-44fa3a139f7c",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin",
- "id": 28610,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarSource :: Visual Basic :: Sonar Plugin",
- "longName": "SonarSource :: Visual Basic :: Sonar Plugin",
- "path": "sonar-vb-plugin",
- "projectId": 28554,
- "subProjectId": 28554
- },
- {
- "uuid": "1f609143-c6a4-4f76-ac38-370d349feaf7",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/schemas",
- "id": 26182,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/schemas",
- "longName": "src/main/java/org/sonar/plugins/xml/schemas",
- "path": "src/main/java/org/sonar/plugins/xml/schemas",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "7abb4d57-160a-41ba-927f-b53603e843b8",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/schemas/SchemaResolver.java",
- "id": 17178,
- "enabled": true,
- "qualifier": "FIL",
- "name": "SchemaResolver.java",
- "longName": "src/main/java/org/sonar/plugins/xml/schemas/SchemaResolver.java",
- "path": "src/main/java/org/sonar/plugins/xml/schemas/SchemaResolver.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "c960a7a1-e078-47de-8a31-167b0f774002",
- "key": "org.codehaus.sonar-plugins.xml:sslr-xml-toolkit:src/main/java/org/sonar/xml/toolkit",
- "id": 26183,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/xml/toolkit",
- "longName": "src/main/java/org/sonar/xml/toolkit",
- "path": "src/main/java/org/sonar/xml/toolkit",
- "projectId": 17156,
- "subProjectId": 17257
- },
- {
- "uuid": "7d14bd3e-33b7-4b0f-ade5-cf6cef0085b9",
- "key": "com.sonarsource.plugins.vb:vb-squid",
- "id": 28555,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarSource :: Visual Basic :: Squid",
- "longName": "SonarSource :: Visual Basic :: Squid",
- "path": "vb-squid",
- "projectId": 28554,
- "subProjectId": 28554
- },
- {
- "uuid": "d9716626-0952-4ec7-a8fb-2760ba3256a3",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/parsers",
- "id": 26180,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/parsers",
- "longName": "src/main/java/org/sonar/plugins/xml/parsers",
- "path": "src/main/java/org/sonar/plugins/xml/parsers",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "071bdfec-a244-444d-877e-772a68973e18",
- "key": "com.sonarsource.plugins.vb:vb",
- "id": 28554,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarSource :: Visual Basic",
- "longName": "SonarSource :: Visual Basic"
- },
- {
- "uuid": "99d31cea-6b8f-4fb6-ba87-c86ce8d339cf",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/api",
- "id": 28622,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/api",
- "longName": "src/main/java/com/sonar/vb/api",
- "path": "src/main/java/com/sonar/vb/api",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "26facc1b-fd2b-4fe4-a543-65e9ec692360",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/rules",
- "id": 26181,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/rules",
- "longName": "src/main/java/org/sonar/plugins/xml/rules",
- "path": "src/main/java/org/sonar/plugins/xml/rules",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "d789993b-c5fe-414b-9164-33871fd3c3c2",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks",
- "id": 26178,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/checks",
- "longName": "src/main/java/org/sonar/plugins/xml/checks",
- "path": "src/main/java/org/sonar/plugins/xml/checks",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "91715de9-47ed-4837-a51b-4dcead30a71c",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/plugin",
- "id": 28952,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/plugin",
- "longName": "src/main/java/com/sonar/vb/plugin",
- "path": "src/main/java/com/sonar/vb/plugin",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "3c338bdb-39c9-4cb8-9b13-2e08358047d6",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/language",
- "id": 26179,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/language",
- "longName": "src/main/java/org/sonar/plugins/xml/language",
- "path": "src/main/java/org/sonar/plugins/xml/language",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "639e257b-d3fb-4d10-b94a-31079b71532d",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "id": 26177,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml",
- "longName": "src/main/java/org/sonar/plugins/xml",
- "path": "src/main/java/org/sonar/plugins/xml",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "08bafb36-5990-4f10-821c-534dc451d297",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/NumberedLineProcessor.java",
- "id": 29907,
- "enabled": true,
- "qualifier": "FIL",
- "name": "NumberedLineProcessor.java",
- "longName": "src/main/java/com/sonar/vb/checks/NumberedLineProcessor.java",
- "path": "src/main/java/com/sonar/vb/checks/NumberedLineProcessor.java",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "e3bb947b-9385-4972-8367-f69beb488d21",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics/LinesOfCodeVisitor.java",
- "id": 28629,
- "enabled": true,
- "qualifier": "FIL",
- "name": "LinesOfCodeVisitor.java",
- "longName": "src/main/java/com/sonar/vb/metrics/LinesOfCodeVisitor.java",
- "path": "src/main/java/com/sonar/vb/metrics/LinesOfCodeVisitor.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "dd9c314f-0c19-498d-9e16-67ef0b49486e",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/colorizer",
- "id": 28932,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/colorizer",
- "longName": "src/main/java/com/sonar/vb/colorizer",
- "path": "src/main/java/com/sonar/vb/colorizer",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "9d771010-5d4f-49ed-9f70-ff131189610d",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/pp",
- "id": 28630,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/pp",
- "longName": "src/main/java/com/sonar/vb/pp",
- "path": "src/main/java/com/sonar/vb/pp",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "8597e351-39d2-4b17-8422-00409d21bccd",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd",
- "id": 28935,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/cpd",
- "longName": "src/main/java/com/sonar/vb/cpd",
- "path": "src/main/java/com/sonar/vb/cpd",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "9d44133a-d633-48b4-a54b-800df905a1fd",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/pp/EmptyLinesRemovalPreprocessor.java",
- "id": 28631,
- "enabled": true,
- "qualifier": "FIL",
- "name": "EmptyLinesRemovalPreprocessor.java",
- "longName": "src/main/java/com/sonar/vb/pp/EmptyLinesRemovalPreprocessor.java",
- "path": "src/main/java/com/sonar/vb/pp/EmptyLinesRemovalPreprocessor.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "b6d552ca-aabe-499b-9c72-18247177ae68",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin",
- "id": 17158,
- "enabled": true,
- "qualifier": "BRC",
- "name": "XML :: SonarQube Plugin",
- "longName": "XML :: SonarQube Plugin",
- "path": "sonar-xml-plugin",
- "projectId": 17156,
- "subProjectId": 17156
- },
- {
- "uuid": "2e9ae8fd-fa5c-48a4-a0f6-1eaba1c38a2f",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/batch",
- "id": 28928,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/batch",
- "longName": "src/main/java/com/sonar/vb/batch",
- "path": "src/main/java/com/sonar/vb/batch",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "015c6451-1709-4360-b4fa-e4508e13082d",
- "key": "org.codehaus.sonar-plugins.xml:xml",
- "id": 17156,
- "enabled": true,
- "qualifier": "TRK",
- "name": "XML",
- "longName": "XML"
- },
- {
- "uuid": "1bb3f177-d173-469e-a178-6ae8078bd765",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics",
- "id": 28626,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/metrics",
- "longName": "src/main/java/com/sonar/vb/metrics",
- "path": "src/main/java/com/sonar/vb/metrics",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "216ebdfc-9fc9-4c06-9f14-859d051fae69",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid",
- "id": 17157,
- "enabled": true,
- "qualifier": "BRC",
- "name": "XML :: Squid",
- "longName": "XML :: Squid",
- "path": "xml-squid",
- "projectId": 17156,
- "subProjectId": 17156
- },
- {
- "uuid": "aad717d1-12f5-48c0-9273-0c9aac102467",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics/CommentsVisitor.java",
- "id": 28627,
- "enabled": true,
- "qualifier": "FIL",
- "name": "CommentsVisitor.java",
- "longName": "src/main/java/com/sonar/vb/metrics/CommentsVisitor.java",
- "path": "src/main/java/com/sonar/vb/metrics/CommentsVisitor.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "53ecdff7-a6af-4cc9-b30c-7656a33cf732",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XPathCheck.java",
- "id": 17162,
- "enabled": true,
- "qualifier": "FIL",
- "name": "XPathCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/XPathCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/XPathCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "d8f590fb-5a56-49a9-991c-4c9d4ec5a7fe",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "id": 17163,
- "enabled": true,
- "qualifier": "FIL",
- "name": "IndentCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "7d79ad61-0f0a-449a-bdce-fd544c8d8d27",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/api/XmlGrammar.java",
- "id": 17160,
- "enabled": true,
- "qualifier": "FIL",
- "name": "XmlGrammar.java",
- "longName": "src/main/java/org/sonar/xml/api/XmlGrammar.java",
- "path": "src/main/java/org/sonar/xml/api/XmlGrammar.java",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "be763c66-8400-432d-9e84-bc2e9d6e164c",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "id": 17166,
- "enabled": true,
- "qualifier": "FIL",
- "name": "NewlineCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "c2c82fc7-073f-449e-bb18-ebbf60ceb1d9",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "id": 28937,
- "enabled": true,
- "qualifier": "FIL",
- "name": "VbCpdTokenizer.java",
- "longName": "src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "path": "src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "bc2e055a-eb0a-4ba6-8c06-8390bdb2c08a",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/ExpressionComplexityCheck.java",
- "id": 29783,
- "enabled": true,
- "qualifier": "FIL",
- "name": "ExpressionComplexityCheck.java",
- "longName": "src/main/java/com/sonar/vb/checks/ExpressionComplexityCheck.java",
- "path": "src/main/java/com/sonar/vb/checks/ExpressionComplexityCheck.java",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "7bbe651e-5b83-4002-9fa9-79397693d529",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "id": 17164,
- "enabled": true,
- "qualifier": "FIL",
- "name": "XmlSchemaCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "2dc0e6d7-09b9-4f99-a25e-acf288b26581",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/foundation",
- "id": 28938,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/foundation",
- "longName": "src/main/java/com/sonar/vb/foundation",
- "path": "src/main/java/com/sonar/vb/foundation",
- "projectId": 28554,
- "subProjectId": 28610
- }
- ],
- "issues": [
- {
- "key": "94357807-fcb4-40cc-9598-9a715f1eee6e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "componentId": 26177,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "BLOCKER",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:55+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "c24088ec-b204-4744-827e-7509fd34c2a7",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks",
- "componentId": 26178,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/checks' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:33:02+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "e5f8e82a-2765-4084-ba57-4a81ee8da1df",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/AbstractXmlCheck.java",
- "componentId": 17168,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "10min",
- "creationDate": "2013-02-05T00:47:29+0100",
- "updateDate": "2014-02-14T23:34:11+0100",
- "fUpdateAge": "8 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "56f021c3-b717-4cc8-9fad-5f1911a8d66f",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "componentId": 17163,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:MethodCyclomaticComplexity",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "The Cyclomatic Complexity of this method \"collectIndent\" is 13 which is greater than 10 authorized.",
- "line": 47,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-02-05T00:47:29+0100",
- "updateDate": "2013-12-18T23:52:20+0100",
- "fUpdateAge": "10 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "b32333fe-7efd-4bc8-a72b-bad90361af1a",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "componentId": 17163,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1151",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce this switch case number of lines from 26 to at most 5, for example by extracting code into methods.",
- "line": 54,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-11T00:06:49+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "2174148b-6be9-4213-8f57-c63576904e9e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "componentId": 17163,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S134",
- "status": "CONFIRMED",
- "severity": "MINOR",
- "message": "Refactor this code to not nest more than 4 if/for/while/switch/try statements.",
- "line": 59,
- "debt": "20min",
- "author": "mandrikov@gmail.com",
- "creationDate": "2013-10-18T23:46:56+0200",
- "updateDate": "2013-12-18T23:52:20+0100",
- "fUpdateAge": "10 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "633c9ba7-b757-4bdf-9e91-ff2ccbc9dd74",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "componentId": 17166,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1151",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce this switch case number of lines from 9 to at most 5, for example by extracting code into methods.",
- "line": 49,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-11T00:06:49+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "63f5037f-a060-4cec-820a-25221a4cc313",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "componentId": 17166,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1151",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce this switch case number of lines from 6 to at most 5, for example by extracting code into methods.",
- "line": 58,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-13T23:58:09+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "bf75fe08-7ddc-4c69-989d-7e5b83cee043",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "componentId": 17164,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:RightCurlyBraceSameLineAsNextBlockCheck",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Move this \"else\" on the same line that the previous closing curly brace.",
- "line": 167,
- "debt": "1min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-07T23:58:51+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "6d6e64ae-94cd-4367-a9bc-df51093a6468",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "componentId": 17164,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "5 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "50min",
- "creationDate": "2013-02-05T00:47:29+0100",
- "updateDate": "2014-06-06T15:53:08+0200",
- "fUpdateAge": "5 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "5ddc1783-3c72-4f68-bbd1-d2d1fad425eb",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XPathCheck.java",
- "componentId": 17162,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "10min",
- "creationDate": "2014-06-06T15:53:08+0200",
- "updateDate": "2014-06-06T16:53:27+0200",
- "fUpdateAge": "5 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "f0853649-fe5e-4c6c-92b9-42ad460fcc0f",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/language",
- "componentId": 26179,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/language' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:43+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "24f4c570-a96d-42ea-a99e-60aded51d69c",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/parsers",
- "componentId": 26180,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/parsers' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:48+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "aeeb9e4e-fd39-4b7e-a482-36d9da710127",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/parsers/AbstractParser.java",
- "componentId": 17191,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1694",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Convert this \"AbstractParser\" class to a concrete class with a private constructor",
- "line": 33,
- "debt": "5min",
- "author": "matthijs.galesloot@gmail.com",
- "creationDate": "2014-06-26T23:08:13+0200",
- "updateDate": "2014-07-23T23:07:58+0200",
- "fUpdateAge": "3 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "66a25a73-b555-4c35-8bc5-536da40a3493",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/rules",
- "componentId": 26181,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/rules' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:33:03+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "89695ec6-63c2-457f-966b-b2cfd7ad8489",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/schemas",
- "componentId": 26182,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/schemas' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:50+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "3ac6d2e6-6af2-435f-abc7-b281f3676d34",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/schemas/SchemaResolver.java",
- "componentId": 17178,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1192",
- "status": "CONFIRMED",
- "severity": "MINOR",
- "message": "Define a constant instead of duplicating this literal \"xhtml1/xhtml1-strict.xsd\" 3 times.",
- "line": 58,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-22T23:52:06+0200",
- "updateDate": "2014-04-24T23:32:18+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "39942422-fbc2-4383-81fe-82777eb3ce7f",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml",
- "componentId": 26174,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:33:07+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "e44fb44e-df1c-460a-b807-66ff79e21194",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/api",
- "componentId": 26175,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/xml/api' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:52+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "08f9aedf-5119-4875-8e58-260bfc2e3f69",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/api/XmlGrammar.java",
- "componentId": 17160,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S138",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "This method has 233 lines, which is greater than the 100 lines authorized. Split it into smaller methods.",
- "line": 134,
- "debt": "1h",
- "author": "Dinesh Bolkensteyn",
- "creationDate": "2013-08-22T23:52:06+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "f781c518-83bd-4bd9-8806-c889d0711a39",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "componentId": 19130,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1067",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce the number of conditional operators (4) used in the expression (maximum allowed 3).",
- "line": 47,
- "debt": "10min",
- "author": "Dinesh Bolkensteyn",
- "creationDate": "2013-08-28T23:50:16+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "cdde8bbf-9d13-4832-8faa-4d189d79fb6b",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "componentId": 19130,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 82,
- "debt": "2min",
- "author": "dinesh.bolkensteyn@sonarsource.com",
- "creationDate": "2014-06-26T23:08:13+0200",
- "updateDate": "2014-06-26T23:08:13+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "f9eae4c0-ca44-440f-aeb7-327dca040f57",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "componentId": 19130,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "3 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "30min",
- "creationDate": "2013-04-04T15:37:48+0200",
- "updateDate": "2014-02-14T23:34:11+0100",
- "fUpdateAge": "8 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "19516152-0ad2-485a-bc5f-576d19f5dea4",
- "component": "org.codehaus.sonar-plugins.xml:sslr-xml-toolkit:src/main/java/org/sonar/xml/toolkit",
- "componentId": 26183,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/xml/toolkit' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:33:05+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "2c767e87-dd31-4803-b8da-581dddb8b73b",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "componentId": 19132,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1142",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce the number of returns of this method 7, down to the maximum allowed 5.",
- "line": 74,
- "debt": "20min",
- "author": "Dinesh Bolkensteyn",
- "creationDate": "2013-08-11T00:06:49+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "f8665ff6-6f1b-4014-acb9-2d8cbcd9bd8b",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "componentId": 19132,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:MethodCyclomaticComplexity",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "The Cyclomatic Complexity of this method \"consumeStartElement\" is 15 which is greater than 10 authorized.",
- "line": 74,
- "debt": "10min",
- "author": "Dinesh Bolkensteyn",
- "creationDate": "2013-04-04T15:37:48+0200",
- "updateDate": "2013-12-18T23:52:20+0100",
- "fUpdateAge": "10 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "5f039a47-9dcc-474e-894c-5598720cb4e0",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "componentId": 19132,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 155,
- "debt": "2min",
- "author": "dinesh.bolkensteyn@sonarsource.com",
- "creationDate": "2014-06-26T23:08:13+0200",
- "updateDate": "2014-06-26T23:08:13+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "7985c68b-2a1d-4aa7-af55-bb6236a01450",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "componentId": 19132,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 160,
- "debt": "2min",
- "author": "dinesh.bolkensteyn@sonarsource.com",
- "creationDate": "2014-06-26T23:08:13+0200",
- "updateDate": "2014-06-26T23:08:13+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "d0dba7cd-e31d-4577-a047-644cdc7e2172",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb",
- "componentId": 28611,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:37:50+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "6d77a59b-53c2-444c-b288-a803d1f7f18d",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/api",
- "componentId": 28622,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/api' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:38+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "bda16272-3785-47af-a0cd-c3fd3c581887",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/batch",
- "componentId": 28928,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/batch' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:06+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "4ea78cde-76c0-41ad-8809-a4e406168a00",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks",
- "componentId": 29690,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/checks' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:04+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "459f9f04-0901-4250-9e9b-946d505455ac",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/ExpressionComplexityCheck.java",
- "componentId": 29783,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 54,
- "debt": "2min",
- "author": "pierre-yves.nicolas@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-06-26T23:07:23+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "47ec8d6b-b7df-4e8c-a254-f9ccf7c0b90a",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/NumberedLineProcessor.java",
- "componentId": 29907,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-05-01T23:14:46+0200",
- "updateDate": "2014-05-02T09:05:22+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "84f34eb4-5aec-419b-8a2d-094d79d7969a",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/TrailingCommentCheck.java",
- "componentId": 29769,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "4 duplicated blocks of code.",
- "debt": "4h",
- "creationDate": "2014-04-14T23:14:16+0200",
- "updateDate": "2014-05-23T23:13:54+0200",
- "fUpdateAge": "5 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "bd85131c-2bac-474d-ac0f-2cf3c8848d40",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/UnusedPrivateVariableCheck.java",
- "componentId": 29801,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1643",
- "status": "REOPENED",
- "severity": "MAJOR",
- "message": "Use a StringBuilder instead.",
- "line": 57,
- "debt": "10min",
- "author": "pierre-yves.nicolas@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-11-03T09:50:23+0100",
- "fUpdateAge": "a day",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "0f81cd62-e82d-44b1-8773-a7a61536a516",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/colorizer",
- "componentId": 28932,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/colorizer' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:03+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "c7d665b1-0d77-4f7b-b893-8678c5324a70",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd",
- "componentId": 28935,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/cpd' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:30+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "47780a07-2b00-47bb-a5e0-91af1ab53b49",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "componentId": 28937,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 55,
- "debt": "2min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-06-26T23:07:23+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "4882c235-98a2-4ac8-8131-acbe30010be5",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "componentId": 28937,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 55,
- "debt": "2min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-06-26T23:07:23+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "a7816c2c-4a24-4edc-955b-4bf064c8da6c",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "componentId": 28937,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 55,
- "debt": "2min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-06-26T23:07:23+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "5c6bc4d6-560f-47c7-9170-873c7ec51243",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/foundation",
- "componentId": 28938,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/foundation' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:32+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "4df1a07e-1961-4b7c-bd9d-f08670b7dc53",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/LineContinuationChannel.java",
- "componentId": 28613,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:33+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "8d505c3e-e944-40a7-bdc4-3e55a6d80ddf",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics",
- "componentId": 28626,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/metrics' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:37:59+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "5420d272-a363-44a5-9a8d-4ed9236aee6c",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics/CommentsVisitor.java",
- "componentId": 28627,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "2 duplicated blocks of code.",
- "debt": "2h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:15+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "eaff60ef-0e3f-4744-9ada-a701eb92fc38",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics/LinesOfCodeVisitor.java",
- "componentId": 28629,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "2 duplicated blocks of code.",
- "debt": "2h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:13+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "4b6e0ff7-8343-4389-bfee-74fb06ae1a4c",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/plugin",
- "componentId": 28952,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/plugin' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:37:48+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "86a0cb1a-c36b-442e-aac0-5d29efc8b0f0",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/pp",
- "componentId": 28630,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/pp' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:40+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "8d5d8cb6-2f92-4cdd-858e-6d551b6507a3",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/pp/EmptyLinesRemovalPreprocessor.java",
- "componentId": 28631,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:10+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "dd34e8a9-7c6a-4a66-8b02-7bf5d9daa4f9",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/ProgressAstScanner.java",
- "componentId": 28614,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:31+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- }
- ],
- "rules": [
- {
- "key": "squid:S1698",
- "name": "Objects should be compared with \"equals()\"",
- "desc": "<p>Using the equality (<code>==</code>) and inequality (<code>!=</code>) operators to compare two objects does not check to see if they have the same values. Rather it checks to see if both object references point to exactly the same object in memory. The vast majority of the time, this is not what you want to do. Use the .equals() method to compare the values of two objects or to compare a string object to a string literal.</p>\n\n<h2>Noncompliant Code Sample</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1 == str2)\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == \"blue\")\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this prints\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1.equals(str2))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1.equals(\"blue\"))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this still prints, but it's probably not what you meant to do\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1142",
- "name": "Methods should not contain too many return statements",
- "desc": "<p>\nHaving too many return statements in a method increases the method's essential complexity because the flow of execution is broken each time a return statement is encountered.\nThis makes it harder to read and understand the logic of the method.\n</p>\n\n<p>\nThe following code snippet illustrates this rule with the default threshold of 3:\n</p>\n\n<pre>\npublic boolean myMethod() { // Non-Compliant as there are 4 return statements\n if (condition1) {\n return true;\n } else {\n if (condition2) {\n return false;\n } else {\n return true;\n }\n }\n return false;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1694",
- "name": "An abstract class should have both abstract and concrete methods",
- "desc": "<p>The purpose of an abstract class is to provide some heritable behaviors while also defining methods which must be implemented by sub-classes.</p>\n\n<p>A class with no abstract methods that was made abstract purely to prevent instantiation should be converted to a concrete class (i.e. remove the <code>abstract</code> keyword) with a private constructor.</p>\n\n<p>A class with only abstract methods and no inheritable behavior should be converted to an interface.</p>\n\n<h2>Noncompliant Code Sample</h2>\n<pre>\npublic abstract class Animal {\n abstract void move();\n abstract void feed();\n}\n\npublic abstract class Color {\n private int red = 0;\n private int green = 0;\n private int blue = 0;\n\n public int getRed(){\n return red;\n }\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\npublic interface Animal {\n void move();\n void feed();\n}\n\npublic class Color {\n private int red = 0;\n private int green = 0;\n private int blue = 0;\n\n private Color (){\n }\n\n public int getRed() {\n return red;\n }\n}\n\npublic abstract class Lamp {\n\n private boolean switchLamp=false;\n public abstract void glow();\n\n public void flipSwitch() {\n switchLamp = !switchLamp;\n if (switchLamp) {\n glow();\n }\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1151",
- "name": "Switch cases should not have too many lines",
- "desc": "<p>Switch cases should remain small to keep the overall switch compact and readable.</p>\n\n<p>The following code snippet illustrates this rule with the default threshold of 5:</p>\n\n<pre>\nswitch (myVariable) {\n case 0: // Compliant - 5 lines till following case\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n break;\n default: // Non-Compliant - 6 lines till switch end\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n break;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1643",
- "name": "Strings should not be concatenated using '+' in a loop",
- "desc": "<p>Strings are immutable objects in Java, so concatenation doesn't simply add the new String to the end of the existing string. Instead, in each loop iteration, the first String is converted to an intermediate object type, the second string is appended, and then the intermediate object is converted back to a String. Further, performance of these intermediate operations degrades as the String gets longer. Therefore, the use of StringBuilder is preferred.</p>\n\n<h2>Noncompliant Code Example</h2>\n<pre>\nString str = \"\";\nfor (int i = 0; i < arrayOfStrings.length ; ++i) {\n str = str + arrayOfStrings[i];\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nStringBuilder bld = new StringBuilder();\nfor (int i = 0; i < arrayOfStrings.length; ++i) {\n bld.append(arrayOfStrings[i]);\n}\nString str = bld.toString();\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S134",
- "name": "Control flow statements \"if\", \"for\", \"while\", \"switch\" and \"try\" should not be nested too deeply",
- "desc": "<p>\nNested <code>if</code>, <code>for</code>, <code>while</code> and <code>try</code> statements is a key ingredient for making what's known as \"Spaghetti code\".\nSuch code is hard to read, refactor and therefore maintain.\n</p>\n\n<h2>Noncompliant Code Example</h2>\n\n<p>The following code snippet illustrates this rule with the default threshold of 3.</p>\n\n<pre>\npublic void process() {\n if (condition1) { // Compliant - depth = 1\n /* ... */\n if (condition2) { // Compliant - depth = 2\n /* ... */\n for(int i = 0; i < 10; i++) { // Compliant - depth = 3, not exceeding the limit\n /* ... */\n if (condition4) { // Non-Compliant - depth = 4\n if (condition5) { // Depth = 5, exceeding the limit, but issues are only reported on depth = 4\n /* ... */\n }\n return;\n }\n }\n }\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "common-java:DuplicatedBlocks",
- "name": "Duplicated blocks",
- "desc": "<p>An issue is created on a file as soon as there is a block of duplicated code on this file. It gives the number of blocks in the file.</p>",
- "status": "READY"
- },
- {
- "key": "squid:RightCurlyBraceSameLineAsNextBlockCheck",
- "name": "Right curly brace and next \"else\", \"catch\" and \"finally\" keywords should be located on the same line",
- "desc": "<p>\nSharing some coding conventions is a key point to make it possible for a team to efficiently collaborate.\nThis rule make it mandatory to place closing curly braces on the same line that next <code>else</code>, <code>catch</code> or <code>finally</code> keywords.\n</p>\n\n<p>\nThe following code snippet illustrates this rule:\n</p>\n\n<pre>\npublic void myMethod() {\n if(something) {\n executeTask();\n } else if (somethingElse) { // Compliant\n doSomethingElse();\n }\n else { // Non-Compliant\n generateError();\n }\n\n try {\n generateOrder();\n } catch (Exception e) { // Compliant\n log(e);\n }\n finally { // Non-Compliant\n closeConnection();\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:MethodCyclomaticComplexity",
- "name": "Methods should not be too complex",
- "desc": "<p>The Cyclomatic Complexity is measured by the number of\n\t(&amp;&amp;, ||) operators and (if, while, do, for, ?:, catch, switch,\n\tcase, return, throw) statements in the body of a class plus one for\n\teach constructor, method (but not getter/setter), static initializer,\n\tor instance initializer in the class. The last return stament in\n\tmethod, if exists, is not taken into account.</p>\n<p>\n\tEven when the Cyclomatic Complexity of a class is very high, this\n\tcomplexity might be well distributed among all methods. Nevertheless,\n\tmost of the time, a very complex class is a class which breaks the <a\n\t\thref=\"http://en.wikipedia.org/wiki/Single_responsibility_principle\">Single\n\t\tResponsibility Principle</a> and which should be re-factored to be split\n\tin several classes.\n</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1192",
- "name": "String literals should not be duplicated",
- "desc": "<p>\n Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.\n On the other hand, constants can be referenced from many places, but only need to be updated in a single place.\n</p>\n\n<h2>Non Compliant Code Example</h2>\n\n<pre>\npublic void run() {\n prepare(\"action1\"); // Non-Compliant - \"action1\" is duplicated 3 times\n execute(\"action1\");\n release(\"action1\");\n}\n\n@SuppressWarning(\"all\") // Compliant - annotations are excluded\nprivate void method1() { /* ... */ }\n@SuppressWarning(\"all\")\nprivate void method2() { /* ... */ }\n\npublic String method3(String a) {\n System.out.println(\"'\" + a + \"'\"); // Compliant - literal \"'\" has less than 5 characters and is excluded\n return \"\"; // Compliant - literal \"\" has less than 5 characters and is excluded\n}\n</pre>\n\n<h2>Compliant Code Example</h2>\n\n<pre>\nprivate static final String ACTION_1 = \"action1\"; // Compliant\n\npublic void run() {\n prepare(ACTION_1); // Compliant\n execute(ACTION_1);\n release(ACTION_1);\n}\n</pre>\n\n<h2>Exceptions</h2>\n<p>To prevent generating some false-positives, literals having less than 5 characters are excluded.</p>",
- "status": "READY"
- },
- {
- "key": "squid:S138",
- "name": "Methods should not have too many lines",
- "desc": "<p>\nA method that grows too large tends to aggregate too many responsibilities.\nSuch methods inevitably become harder to understand and therefore harder to maintain.\n</p>\n\n<p>\nAbove a specific threshold, it is strongly advised to refactor into smaller methods which focus on well-defined tasks.\nThose smaller methods will not only be easier to understand, but also probably easier to test.\n</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1067",
- "name": "Expressions should not be too complex",
- "desc": "<p>\nThe complexity of an expression is defined by the number of <code>&&</code>, <code>||</code> and <code>condition ? ifTrue : ifFalse</code> operators it contains.\nA single expression's complexity should not become too high to keep the code readable.\n</p>\n\n<p>The following code, with a maximum complexity of 3:</p>\n\n<pre>\nif (condition1 && condition2 && condition3 && condition4) { /* ... */ } // Non-Compliant\n</pre>\n\n<p>could be refactored into something like:</p>\n\n<pre>\nif (relevantMethodName1() && relevantMethodName2()) { /* ... */ } // Compliant\n\n/* ... */\n\nprivate boolean relevantMethodName1() {\n return condition1 && condition2;\n}\n\nprivate boolean relevantMethodName2() {\n return condition3 && condition4;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "common-java:InsufficientBranchCoverage",
- "name": "Insufficient branch coverage by unit tests",
- "desc": "<p>An issue is created on a file as soon as the branch coverage on this file is less than the required threshold.It gives the number of branches to be covered in order to reach the required threshold.</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1228",
- "name": "Packages should have a javadoc file 'package-info.java'",
- "desc": "<p>Each package in a Java project should include a <code>package-info.java</code> file. The purpose of this file is to document the Java package using javadoc and declare package annotations.</p>\n\n<h2>Compliant Solution</h2>\n<pre>\n/**\n* This package has non null parameters and is documented.\n**/\n@ParametersAreNonnullByDefault\npackage org.foo.bar;\n</pre>",
- "status": "REMOVED"
- }
- ],
- "users": [],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 50,
- "total": 4623,
- "fTotal": "4,623",
- "pages": 93
- },
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 3214
- },
- {
- "val": "INFO",
- "count": 930
- },
- {
- "val": "MINOR",
- "count": 436
- },
- {
- "val": "CRITICAL",
- "count": 43
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- },
- {
- "property": "statuses",
- "values": [
- {
- "val": "CONFIRMED",
- "count": 4123
- },
- {
- "val": "OPEN",
- "count": 499
- },
- {
- "val": "REOPENED",
- "count": 1
- },
- {
- "val": "CLOSED",
- "count": 0
- },
- {
- "val": "RESOLVED",
- "count": 0
- }
- ]
- },
- {
- "property": "resolutions",
- "values": [
- {
- "val": "",
- "count": 4623
- },
- {
- "val": "FIXED",
- "count": 39744
- },
- {
- "val": "REMOVED",
- "count": 14385
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 724
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/search-filter-similar-issues-severities.json b/server/sonar-web/src/test/json/issues-spec/search-filter-similar-issues-severities.json
deleted file mode 100644
index 3e19d6807ad..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/search-filter-similar-issues-severities.json
+++ /dev/null
@@ -1,181 +0,0 @@
-{
- "total": 17,
- "p": 1,
- "ps": 50,
- "paging": {
- "pageIndex": 1,
- "pageSize": 50,
- "total": 1,
- "fTotal": "1",
- "pages": 1
- },
- "components": [
- {
- "uuid": "7feef7c3-11b9-4175-b5a7-527ca3c75cb7",
- "key": "org.codehaus.sonar:sonar-plugin-api",
- "id": 16,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Plugin API",
- "longName": "SonarQube :: Plugin API",
- "path": "sonar-plugin-api",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- },
- {
- "uuid": "b0517331-0aaf-4091-b5cf-8e305dd0337a",
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/CoreProperties.java",
- "id": 3509,
- "enabled": true,
- "qualifier": "FIL",
- "name": "CoreProperties.java",
- "longName": "src/main/java/org/sonar/api/CoreProperties.java",
- "path": "src/main/java/org/sonar/api/CoreProperties.java",
- "projectId": 2865,
- "subProjectId": 16
- }
- ],
- "issues": [
- {
- "key": "10c6eeca-cc71-40fc-9ea8-fa90fef8db72",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/CoreProperties.java",
- "componentId": 3509,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:S1214",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Move constants to a class or enum.",
- "line": 30,
- "debt": "20min",
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-08-28T12:19:16+0200",
- "updateDate": "2015-03-19T14:15:56+0100",
- "fUpdateAge": "about a minute",
- "tags": [
- "bad-practice",
- "brain-overload"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ]
- }
- ],
- "rules": [
- {
- "key": "squid:S1214",
- "name": "Constants should not be defined in interfaces",
- "lang": "java",
- "desc": "<p>According to Joshua Bloch, author of \"Effective Java\":</p>\n\n<blockquote>\n<p>\nThe constant interface pattern is a poor use of interfaces.\n</p>\n\n<p>\nThat a class uses some constants internally is an implementation detail.\nImplementing a constant interface causes this implementation detail to leak into the class's exported API.\nIt is of no consequence to the users of a class that the class implements a constant interface.\nIn fact, it may even confuse them.\nWorse, it represents a commitment:\nif in a future release the class is modified so that it no longer needs to use the constants,\nit still must implement the interface to ensure binary compatibility.\nIf a nonfinal class implements a constant interface,\nall of its subclasses will have their namespaces polluted by the constants in the interface.\n</p>\n</blockquote>\n\n<h2>Noncompliant Code Example</h2>\n\n<pre>\ninterface Status { // Non-Compliant\n int OPEN = 1;\n int CLOSED = 2;\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n\n<pre>\npublic enum Status { // Compliant\n OPEN,\n CLOSED;\n}\n</pre>\n\n<p>or</p>\n\n<pre>\npublic final class Status { // Compliant\n public static final int OPEN = 1;\n public static final int CLOSED = 2;\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- }
- ],
- "users": [
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- }
- ],
- "languages": [
- {
- "key": "py",
- "name": "Python"
- },
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "php",
- "name": "PHP"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 1
- },
- {
- "val": "INFO",
- "count": 0
- },
- {
- "val": "MINOR",
- "count": 0
- },
- {
- "val": "CRITICAL",
- "count": 0
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- },
- {
- "property": "resolutions",
- "values": [
- {
- "val": "",
- "count": 1
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 0
- },
- {
- "val": "WONTFIX",
- "count": 0
- },
- {
- "val": "FIXED",
- "count": 0
- },
- {
- "val": "REMOVED",
- "count": 0
- }
- ]
- },
- {
- "property": "assigned_to_me",
- "values": [
- {
- "val": "admin",
- "count": 0
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/search-filter-similar-issues.json b/server/sonar-web/src/test/json/issues-spec/search-filter-similar-issues.json
deleted file mode 100644
index 43501b00118..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/search-filter-similar-issues.json
+++ /dev/null
@@ -1,216 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 50,
- "paging": {
- "pageIndex": 1,
- "pageSize": 50,
- "total": 1,
- "fTotal": "1",
- "pages": 1
- },
- "components": [
- {
- "uuid": "7feef7c3-11b9-4175-b5a7-527ca3c75cb7",
- "key": "org.codehaus.sonar:sonar-plugin-api",
- "id": 16,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Plugin API",
- "longName": "SonarQube :: Plugin API",
- "path": "sonar-plugin-api",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- },
- {
- "uuid": "b0517331-0aaf-4091-b5cf-8e305dd0337a",
- "key": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/CoreProperties.java",
- "id": 3509,
- "enabled": true,
- "qualifier": "FIL",
- "name": "CoreProperties.java",
- "longName": "src/main/java/org/sonar/api/CoreProperties.java",
- "path": "src/main/java/org/sonar/api/CoreProperties.java",
- "projectId": 2865,
- "subProjectId": 16
- }
- ],
- "issues": [
- {
- "key": "10c6eeca-cc71-40fc-9ea8-fa90fef8db72",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/CoreProperties.java",
- "componentId": 3509,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:S1214",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Move constants to a class or enum.",
- "line": 30,
- "debt": "20min",
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-08-28T12:19:16+0200",
- "updateDate": "2015-03-19T14:15:56+0100",
- "fUpdateAge": "about a minute",
- "tags": [
- "bad-practice",
- "brain-overload"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ]
- },
- {
- "key": "10c6eeca-cc71-40fc-9ea8-fa90fef8db73",
- "component": "org.codehaus.sonar:sonar-plugin-api:src/main/java/org/sonar/api/CoreProperties.java",
- "componentId": 3509,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-plugin-api",
- "rule": "squid:S1214",
- "status": "CONFIRMED",
- "severity": "MINOR",
- "message": "Move constants to a class or enum.",
- "line": 30,
- "debt": "20min",
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-08-28T12:19:16+0200",
- "updateDate": "2015-03-19T14:15:56+0100",
- "fUpdateAge": "about a minute",
- "tags": [
- "bad-practice",
- "brain-overload"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ]
- }
- ],
- "rules": [
- {
- "key": "squid:S1214",
- "name": "Constants should not be defined in interfaces",
- "lang": "java",
- "desc": "<p>According to Joshua Bloch, author of \"Effective Java\":</p>\n\n<blockquote>\n<p>\nThe constant interface pattern is a poor use of interfaces.\n</p>\n\n<p>\nThat a class uses some constants internally is an implementation detail.\nImplementing a constant interface causes this implementation detail to leak into the class's exported API.\nIt is of no consequence to the users of a class that the class implements a constant interface.\nIn fact, it may even confuse them.\nWorse, it represents a commitment:\nif in a future release the class is modified so that it no longer needs to use the constants,\nit still must implement the interface to ensure binary compatibility.\nIf a nonfinal class implements a constant interface,\nall of its subclasses will have their namespaces polluted by the constants in the interface.\n</p>\n</blockquote>\n\n<h2>Noncompliant Code Example</h2>\n\n<pre>\ninterface Status { // Non-Compliant\n int OPEN = 1;\n int CLOSED = 2;\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n\n<pre>\npublic enum Status { // Compliant\n OPEN,\n CLOSED;\n}\n</pre>\n\n<p>or</p>\n\n<pre>\npublic final class Status { // Compliant\n public static final int OPEN = 1;\n public static final int CLOSED = 2;\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- }
- ],
- "users": [
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- }
- ],
- "languages": [
- {
- "key": "py",
- "name": "Python"
- },
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "php",
- "name": "PHP"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 1
- },
- {
- "val": "INFO",
- "count": 0
- },
- {
- "val": "MINOR",
- "count": 0
- },
- {
- "val": "CRITICAL",
- "count": 0
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- },
- {
- "property": "resolutions",
- "values": [
- {
- "val": "",
- "count": 1
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 0
- },
- {
- "val": "WONTFIX",
- "count": 0
- },
- {
- "val": "FIXED",
- "count": 0
- },
- {
- "val": "REMOVED",
- "count": 0
- }
- ]
- },
- {
- "property": "assigned_to_me",
- "values": [
- {
- "val": "admin",
- "count": 0
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/search-reopened.json b/server/sonar-web/src/test/json/issues-spec/search-reopened.json
deleted file mode 100644
index e0defa923fd..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/search-reopened.json
+++ /dev/null
@@ -1,459 +0,0 @@
-{
- "total": 4,
- "p": 1,
- "ps": 50,
- "components": [
- {
- "uuid": "f62c3080-6e75-4940-ae95-7dae743bcac3",
- "key": "org.codehaus.sonar:sonar-server:src/main/java/org/sonar/server/search/request/ProxySearchScrollRequestBuilder.java",
- "id": 35659,
- "enabled": true,
- "qualifier": "FIL",
- "name": "ProxySearchScrollRequestBuilder.java",
- "longName": "src/main/java/org/sonar/server/search/request/ProxySearchScrollRequestBuilder.java",
- "path": "src/main/java/org/sonar/server/search/request/ProxySearchScrollRequestBuilder.java",
- "projectId": 2865,
- "subProjectId": 2872
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- },
- {
- "uuid": "0160edec-b7ca-49a1-93ca-a6ea2c38ed21",
- "key": "org.codehaus.sonar-plugins:sonar-issues-report-plugin:src/main/java/org/sonar/issuesreport/IssuesReportPlugin.java",
- "id": 17639,
- "enabled": true,
- "qualifier": "FIL",
- "name": "IssuesReportPlugin.java",
- "longName": "src/main/java/org/sonar/issuesreport/IssuesReportPlugin.java",
- "path": "src/main/java/org/sonar/issuesreport/IssuesReportPlugin.java",
- "projectId": 17637,
- "subProjectId": 17637
- },
- {
- "uuid": "6acccd14-18f8-436e-9a20-1d2d1f91295b",
- "key": "com.sonarsource.rpg:rpg-analyzer:src/main/java/com/sonar/rpg/parser/Parser.java",
- "id": 27173,
- "enabled": true,
- "qualifier": "FIL",
- "name": "Parser.java",
- "longName": "src/main/java/com/sonar/rpg/parser/Parser.java",
- "path": "src/main/java/com/sonar/rpg/parser/Parser.java",
- "projectId": 27165,
- "subProjectId": 27166
- },
- {
- "uuid": "06a742ea-5c55-4c7e-a2b4-8747c163cb40",
- "key": "org.codehaus.sonar-plugins:sonar-issues-report-plugin",
- "id": 17637,
- "enabled": true,
- "qualifier": "TRK",
- "name": "Sonar :: Issues Report :: Plugin",
- "longName": "Sonar :: Issues Report :: Plugin"
- },
- {
- "uuid": "98662175-0f52-4f83-b0e9-1e9444320b5b",
- "key": "org.codehaus.sonar-plugins:sonar-issues-report-plugin:src/main/java/org/sonar/issuesreport/ReportJob.java",
- "id": 17640,
- "enabled": true,
- "qualifier": "FIL",
- "name": "ReportJob.java",
- "longName": "src/main/java/org/sonar/issuesreport/ReportJob.java",
- "path": "src/main/java/org/sonar/issuesreport/ReportJob.java",
- "projectId": 17637,
- "subProjectId": 17637
- },
- {
- "uuid": "a6b74bc6-94b9-431f-b7fd-524553d42405",
- "key": "com.sonarsource.rpg:rpg-analyzer",
- "id": 27166,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarSource :: RPG :: Analyzer",
- "longName": "SonarSource :: RPG :: Analyzer",
- "path": "rpg-analyzer",
- "projectId": 27165,
- "subProjectId": 27165
- },
- {
- "uuid": "e1f6f8bd-6b5f-4e2d-b936-4abffc9e4264",
- "key": "org.codehaus.sonar:sonar-server",
- "id": 2872,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Server",
- "longName": "SonarQube :: Server",
- "path": "sonar-server",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "963cefe8-9128-475f-8d39-636685195e43",
- "key": "com.sonarsource.rpg:rpg",
- "id": 27165,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarSource :: RPG",
- "longName": "SonarSource :: RPG"
- }
- ],
- "issues": [
- {
- "key": "80f1562f-9f64-48a9-a6bb-1dcd2ebf444a",
- "component": "org.codehaus.sonar-plugins:sonar-issues-report-plugin:src/main/java/org/sonar/issuesreport/IssuesReportPlugin.java",
- "componentId": 17639,
- "project": "org.codehaus.sonar-plugins:sonar-issues-report-plugin",
- "rule": "squid:S1161",
- "status": "REOPENED",
- "severity": "MINOR",
- "message": "Add the \"@Override\" annotation above this method signature",
- "line": 61,
- "debt": "5min",
- "assignee": "julien.henry",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-10-09T23:03:12+0200",
- "updateDate": "2014-11-24T08:11:19+0100",
- "fUpdateAge": "14 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ],
- "assigneeName": "Julien Henry"
- },
- {
- "key": "9eae5201-96c7-4e78-a407-8d58479c98a3",
- "component": "org.codehaus.sonar-plugins:sonar-issues-report-plugin:src/main/java/org/sonar/issuesreport/ReportJob.java",
- "componentId": 17640,
- "project": "org.codehaus.sonar-plugins:sonar-issues-report-plugin",
- "rule": "squid:S1161",
- "status": "REOPENED",
- "severity": "MAJOR",
- "message": "Add the \"@Override\" annotation above this method signature",
- "line": 39,
- "debt": "5min",
- "assignee": "julien.henry",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-10-09T23:03:12+0200",
- "updateDate": "2014-11-18T08:25:31+0100",
- "fUpdateAge": "20 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ],
- "assigneeName": "Julien Henry"
- },
- {
- "key": "50bfc04f-6137-457a-a967-f6b1b7345365",
- "component": "org.codehaus.sonar:sonar-server:src/main/java/org/sonar/server/search/request/ProxySearchScrollRequestBuilder.java",
- "componentId": 35659,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-server",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "REOPENED",
- "severity": "MAJOR",
- "message": "1 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "10min",
- "assignee": "julien.lancelot",
- "creationDate": "2014-11-04T14:51:27+0100",
- "updateDate": "2014-11-10T23:29:27+0100",
- "fUpdateAge": "27 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ],
- "assigneeName": "Julien Lancelot"
- },
- {
- "key": "7012d6fc-e663-4032-aba6-70c4522453b4",
- "component": "com.sonarsource.rpg:rpg-analyzer:src/main/java/com/sonar/rpg/parser/Parser.java",
- "componentId": 27173,
- "project": "com.sonarsource.rpg:rpg",
- "subProject": "com.sonarsource.rpg:rpg-analyzer",
- "rule": "squid:S1994",
- "status": "REOPENED",
- "severity": "MAJOR",
- "message": "This loop's stop condition tests \"isEndOfFile()\" but the incrementer updates \"lineNumber\".",
- "line": 69,
- "debt": "20min",
- "assignee": "pierre-yves.nicolas",
- "author": "pierre-yves.nicolas@sonarsource.com",
- "creationDate": "2014-10-09T23:05:10+0200",
- "updateDate": "2014-10-31T10:33:08+0100",
- "fUpdateAge": "about a month",
- "comments": [
- {
- "key": "9d2b1d6e-9c9c-4ff2-bc55-af622922c4f0",
- "login": "evgeny.mandrikov",
- "userName": "Evgeny Mandrikov",
- "htmlText": "Severity changed from &quot;critical&quot; to &quot;major&quot;, because this is a new Java rule.<br/>Also message looks suspicious. Nico, could you please take a look?",
- "markdown": "Severity changed from \"critical\" to \"major\", because this is a new Java rule.\nAlso message looks suspicious. Nico, could you please take a look?",
- "updatable": false,
- "createdAt": "2014-10-10T15:49:23+0200"
- },
- {
- "key": "583033bd-c0be-4865-ba86-f1773c712bba",
- "login": "nicolas.peru",
- "userName": "Nicolas Peru",
- "htmlText": "message has been improved in <a href=\"https://github.com/SonarSource/sonar-java/commit/d1e4fa74ada69039958dbff8a94c776fd6be6639\" target=\"_blank\">https://github.com/SonarSource/sonar-java/commit/d1e4fa74ada69039958dbff8a94c776fd6be6639</a>",
- "markdown": "message has been improved in https://github.com/SonarSource/sonar-java/commit/d1e4fa74ada69039958dbff8a94c776fd6be6639",
- "updatable": false,
- "createdAt": "2014-10-13T17:38:52+0200"
- }
- ],
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ],
- "assigneeName": "Pierre-Yves Nicolas"
- }
- ],
- "rules": [
- {
- "key": "squid:S1994",
- "name": "\"for\" loop incrementers should modify the variable being tested in the loop's stop condition",
- "lang": "java",
- "desc": "<p>It is almost always an error when a <code>for</code> loop's stop condition and incrementer don't act on the same variable. Even when it is not, it could confuse future maintainers of the code, and should be avoided.</p>\n\n<h2>Noncompliant Code Example</h2>\n<pre>\nfor (i = 0; i < 10; j++) { // Noncompliant\n // ...\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nfor (i = 0; i < 10; i++) {\n // ...\n}\n</pre>",
- "status": "REMOVED",
- "langName": "Java"
- },
- {
- "key": "common-java:InsufficientBranchCoverage",
- "name": "Insufficient branch coverage by unit tests",
- "lang": "java",
- "desc": "<p>An issue is created on a file as soon as the branch coverage on this file is less than the required threshold.It gives the number of branches to be covered in order to reach the required threshold.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1161",
- "name": "\"@Override\" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one",
- "lang": "java",
- "desc": "<p>Using the <code>@Override</code> annotation is useful for two reasons :</p>\n<ul>\n <li>It elicits a warning from the compiler if the annotated method doesn't actually override anything, as in the case of a misspelling.</li>\n <li>It improves the readability of the source code by making it obvious that methods are overridden.</li>\n</ul>\n<h2>Noncompliant Code Example</h2>\n<pre>\nclass ParentClass {\n public boolean doSomething(){...}\n}\nclass FirstChildClass extends ParentClass {\n public boolean doSomething(){...} //Non-Compliant\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nclass ParentClass {\n public boolean doSomething(){...}\n}\nclass FirstChildClass extends ParentClass {\n @Override\n public boolean doSomething(){...} //Compliant\n}\n</pre>",
- "status": "REMOVED",
- "langName": "Java"
- }
- ],
- "users": [
- {
- "login": "julien.lancelot",
- "name": "Julien Lancelot",
- "active": true,
- "email": "julien.lancelot@sonarsource.com"
- },
- {
- "login": "pierre-yves.nicolas",
- "name": "Pierre-Yves Nicolas",
- "active": true,
- "email": "pierre-yves.nicolas@sonarsource.com"
- },
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- },
- {
- "login": "nicolas.peru",
- "name": "Nicolas Peru",
- "active": true,
- "email": "nicolas.peru@sonarsource.com"
- },
- {
- "login": "julien.henry",
- "name": "Julien Henry",
- "active": true,
- "email": "julien.henry@sonarsource.com"
- },
- {
- "login": "evgeny.mandrikov",
- "name": "Evgeny Mandrikov",
- "active": true,
- "email": "evgeny.mandrikov@sonarsource.com"
- }
- ],
- "actionPlans": [
- {
- "key": "1b9e7e52-ff58-40c1-80bf-f68429a3275e",
- "name": "5.0",
- "status": "OPEN",
- "project": "org.codehaus.sonar:sonar",
- "userLogin": "fabrice.bellingard",
- "createdAt": "2014-09-01T17:14:55+0200",
- "fCreatedAt": "Sep 1, 2014 5:14 PM",
- "updatedAt": "2014-09-01T17:14:55+0200",
- "fUpdatedAt": "Sep 1, 2014 5:14 PM"
- },
- {
- "key": "151b796f-c5e1-40c9-89c0-ca391e8a31c0",
- "name": "CPP 3.3",
- "status": "OPEN",
- "project": "com.sonarsource.cpp:cpp",
- "userLogin": "eric.hartmann",
- "createdAt": "2014-10-27T15:15:34+0100",
- "fCreatedAt": "Oct 27, 2014 3:15 PM",
- "updatedAt": "2014-10-27T15:15:34+0100",
- "fUpdatedAt": "Oct 27, 2014 3:15 PM"
- },
- {
- "key": "6f967cd5-687b-49ac-b4e3-b8d392374557",
- "name": "4.5",
- "status": "CLOSED",
- "project": "org.codehaus.sonar:sonar",
- "userLogin": "freddy.mallet",
- "createdAt": "2014-07-01T21:22:52+0200",
- "fCreatedAt": "Jul 1, 2014 9:22 PM",
- "updatedAt": "2014-09-10T15:44:24+0200",
- "fUpdatedAt": "Sep 10, 2014 3:44 PM"
- }
- ],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 50,
- "total": 4,
- "fTotal": "4",
- "pages": 1
- },
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 3
- },
- {
- "val": "MINOR",
- "count": 1
- },
- {
- "val": "INFO",
- "count": 0
- },
- {
- "val": "CRITICAL",
- "count": 0
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- },
- {
- "property": "statuses",
- "values": [
- {
- "val": "CONFIRMED",
- "count": 4583
- },
- {
- "val": "OPEN",
- "count": 324
- },
- {
- "val": "REOPENED",
- "count": 4
- },
- {
- "val": "RESOLVED",
- "count": 0
- },
- {
- "val": "CLOSED",
- "count": 0
- }
- ]
- },
- {
- "property": "resolutions",
- "values": [
- {
- "val": "",
- "count": 4
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 0
- },
- {
- "val": "FIXED",
- "count": 0
- },
- {
- "val": "REMOVED",
- "count": 0
- }
- ]
- },
- {
- "property": "actionPlans",
- "values": [
- {
- "val": "1b9e7e52-ff58-40c1-80bf-f68429a3275e",
- "count": 4
- },
- {
- "val": "151b796f-c5e1-40c9-89c0-ca391e8a31c0",
- "count": 2
- },
- {
- "val": "6f967cd5-687b-49ac-b4e3-b8d392374557",
- "count": 1
- },
- {
- "val": "",
- "count": 4
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/search-rules-facet.json b/server/sonar-web/src/test/json/issues-spec/search-rules-facet.json
deleted file mode 100644
index 368a04f82f1..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/search-rules-facet.json
+++ /dev/null
@@ -1,170 +0,0 @@
-{
- "total": 4623,
- "p": 1,
- "ps": 50,
- "issues": [],
- "rules": [
- {
- "key": "squid:S1698",
- "name": "Objects should be compared with \"equals()\"",
- "desc": "<p>Using the equality (<code>==</code>) and inequality (<code>!=</code>) operators to compare two objects does not check to see if they have the same values. Rather it checks to see if both object references point to exactly the same object in memory. The vast majority of the time, this is not what you want to do. Use the .equals() method to compare the values of two objects or to compare a string object to a string literal.</p>\n\n<h2>Noncompliant Code Sample</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1 == str2)\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == \"blue\")\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this prints\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1.equals(str2))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1.equals(\"blue\"))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this still prints, but it's probably not what you meant to do\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1142",
- "name": "Methods should not contain too many return statements",
- "desc": "<p>\nHaving too many return statements in a method increases the method's essential complexity because the flow of execution is broken each time a return statement is encountered.\nThis makes it harder to read and understand the logic of the method.\n</p>\n\n<p>\nThe following code snippet illustrates this rule with the default threshold of 3:\n</p>\n\n<pre>\npublic boolean myMethod() { // Non-Compliant as there are 4 return statements\n if (condition1) {\n return true;\n } else {\n if (condition2) {\n return false;\n } else {\n return true;\n }\n }\n return false;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1694",
- "name": "An abstract class should have both abstract and concrete methods",
- "desc": "<p>The purpose of an abstract class is to provide some heritable behaviors while also defining methods which must be implemented by sub-classes.</p>\n\n<p>A class with no abstract methods that was made abstract purely to prevent instantiation should be converted to a concrete class (i.e. remove the <code>abstract</code> keyword) with a private constructor.</p>\n\n<p>A class with only abstract methods and no inheritable behavior should be converted to an interface.</p>\n\n<h2>Noncompliant Code Sample</h2>\n<pre>\npublic abstract class Animal {\n abstract void move();\n abstract void feed();\n}\n\npublic abstract class Color {\n private int red = 0;\n private int green = 0;\n private int blue = 0;\n\n public int getRed(){\n return red;\n }\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\npublic interface Animal {\n void move();\n void feed();\n}\n\npublic class Color {\n private int red = 0;\n private int green = 0;\n private int blue = 0;\n\n private Color (){\n }\n\n public int getRed() {\n return red;\n }\n}\n\npublic abstract class Lamp {\n\n private boolean switchLamp=false;\n public abstract void glow();\n\n public void flipSwitch() {\n switchLamp = !switchLamp;\n if (switchLamp) {\n glow();\n }\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1151",
- "name": "Switch cases should not have too many lines",
- "desc": "<p>Switch cases should remain small to keep the overall switch compact and readable.</p>\n\n<p>The following code snippet illustrates this rule with the default threshold of 5:</p>\n\n<pre>\nswitch (myVariable) {\n case 0: // Compliant - 5 lines till following case\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n break;\n default: // Non-Compliant - 6 lines till switch end\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n break;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1643",
- "name": "Strings should not be concatenated using '+' in a loop",
- "desc": "<p>Strings are immutable objects in Java, so concatenation doesn't simply add the new String to the end of the existing string. Instead, in each loop iteration, the first String is converted to an intermediate object type, the second string is appended, and then the intermediate object is converted back to a String. Further, performance of these intermediate operations degrades as the String gets longer. Therefore, the use of StringBuilder is preferred.</p>\n\n<h2>Noncompliant Code Example</h2>\n<pre>\nString str = \"\";\nfor (int i = 0; i < arrayOfStrings.length ; ++i) {\n str = str + arrayOfStrings[i];\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nStringBuilder bld = new StringBuilder();\nfor (int i = 0; i < arrayOfStrings.length; ++i) {\n bld.append(arrayOfStrings[i]);\n}\nString str = bld.toString();\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S134",
- "name": "Control flow statements \"if\", \"for\", \"while\", \"switch\" and \"try\" should not be nested too deeply",
- "desc": "<p>\nNested <code>if</code>, <code>for</code>, <code>while</code> and <code>try</code> statements is a key ingredient for making what's known as \"Spaghetti code\".\nSuch code is hard to read, refactor and therefore maintain.\n</p>\n\n<h2>Noncompliant Code Example</h2>\n\n<p>The following code snippet illustrates this rule with the default threshold of 3.</p>\n\n<pre>\npublic void process() {\n if (condition1) { // Compliant - depth = 1\n /* ... */\n if (condition2) { // Compliant - depth = 2\n /* ... */\n for(int i = 0; i < 10; i++) { // Compliant - depth = 3, not exceeding the limit\n /* ... */\n if (condition4) { // Non-Compliant - depth = 4\n if (condition5) { // Depth = 5, exceeding the limit, but issues are only reported on depth = 4\n /* ... */\n }\n return;\n }\n }\n }\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "common-java:DuplicatedBlocks",
- "name": "Duplicated blocks",
- "desc": "<p>An issue is created on a file as soon as there is a block of duplicated code on this file. It gives the number of blocks in the file.</p>",
- "status": "READY"
- },
- {
- "key": "squid:RightCurlyBraceSameLineAsNextBlockCheck",
- "name": "Right curly brace and next \"else\", \"catch\" and \"finally\" keywords should be located on the same line",
- "desc": "<p>\nSharing some coding conventions is a key point to make it possible for a team to efficiently collaborate.\nThis rule make it mandatory to place closing curly braces on the same line that next <code>else</code>, <code>catch</code> or <code>finally</code> keywords.\n</p>\n\n<p>\nThe following code snippet illustrates this rule:\n</p>\n\n<pre>\npublic void myMethod() {\n if(something) {\n executeTask();\n } else if (somethingElse) { // Compliant\n doSomethingElse();\n }\n else { // Non-Compliant\n generateError();\n }\n\n try {\n generateOrder();\n } catch (Exception e) { // Compliant\n log(e);\n }\n finally { // Non-Compliant\n closeConnection();\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:MethodCyclomaticComplexity",
- "name": "Methods should not be too complex",
- "desc": "<p>The Cyclomatic Complexity is measured by the number of\n\t(&amp;&amp;, ||) operators and (if, while, do, for, ?:, catch, switch,\n\tcase, return, throw) statements in the body of a class plus one for\n\teach constructor, method (but not getter/setter), static initializer,\n\tor instance initializer in the class. The last return stament in\n\tmethod, if exists, is not taken into account.</p>\n<p>\n\tEven when the Cyclomatic Complexity of a class is very high, this\n\tcomplexity might be well distributed among all methods. Nevertheless,\n\tmost of the time, a very complex class is a class which breaks the <a\n\t\thref=\"http://en.wikipedia.org/wiki/Single_responsibility_principle\">Single\n\t\tResponsibility Principle</a> and which should be re-factored to be split\n\tin several classes.\n</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1192",
- "name": "String literals should not be duplicated",
- "desc": "<p>\n Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.\n On the other hand, constants can be referenced from many places, but only need to be updated in a single place.\n</p>\n\n<h2>Non Compliant Code Example</h2>\n\n<pre>\npublic void run() {\n prepare(\"action1\"); // Non-Compliant - \"action1\" is duplicated 3 times\n execute(\"action1\");\n release(\"action1\");\n}\n\n@SuppressWarning(\"all\") // Compliant - annotations are excluded\nprivate void method1() { /* ... */ }\n@SuppressWarning(\"all\")\nprivate void method2() { /* ... */ }\n\npublic String method3(String a) {\n System.out.println(\"'\" + a + \"'\"); // Compliant - literal \"'\" has less than 5 characters and is excluded\n return \"\"; // Compliant - literal \"\" has less than 5 characters and is excluded\n}\n</pre>\n\n<h2>Compliant Code Example</h2>\n\n<pre>\nprivate static final String ACTION_1 = \"action1\"; // Compliant\n\npublic void run() {\n prepare(ACTION_1); // Compliant\n execute(ACTION_1);\n release(ACTION_1);\n}\n</pre>\n\n<h2>Exceptions</h2>\n<p>To prevent generating some false-positives, literals having less than 5 characters are excluded.</p>",
- "status": "READY"
- },
- {
- "key": "squid:S138",
- "name": "Methods should not have too many lines",
- "desc": "<p>\nA method that grows too large tends to aggregate too many responsibilities.\nSuch methods inevitably become harder to understand and therefore harder to maintain.\n</p>\n\n<p>\nAbove a specific threshold, it is strongly advised to refactor into smaller methods which focus on well-defined tasks.\nThose smaller methods will not only be easier to understand, but also probably easier to test.\n</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1067",
- "name": "Expressions should not be too complex",
- "desc": "<p>\nThe complexity of an expression is defined by the number of <code>&&</code>, <code>||</code> and <code>condition ? ifTrue : ifFalse</code> operators it contains.\nA single expression's complexity should not become too high to keep the code readable.\n</p>\n\n<p>The following code, with a maximum complexity of 3:</p>\n\n<pre>\nif (condition1 && condition2 && condition3 && condition4) { /* ... */ } // Non-Compliant\n</pre>\n\n<p>could be refactored into something like:</p>\n\n<pre>\nif (relevantMethodName1() && relevantMethodName2()) { /* ... */ } // Compliant\n\n/* ... */\n\nprivate boolean relevantMethodName1() {\n return condition1 && condition2;\n}\n\nprivate boolean relevantMethodName2() {\n return condition3 && condition4;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "common-java:InsufficientBranchCoverage",
- "name": "Insufficient branch coverage by unit tests",
- "desc": "<p>An issue is created on a file as soon as the branch coverage on this file is less than the required threshold.It gives the number of branches to be covered in order to reach the required threshold.</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1228",
- "name": "Packages should have a javadoc file 'package-info.java'",
- "desc": "<p>Each package in a Java project should include a <code>package-info.java</code> file. The purpose of this file is to document the Java package using javadoc and declare package annotations.</p>\n\n<h2>Compliant Solution</h2>\n<pre>\n/**\n* This package has non null parameters and is documented.\n**/\n@ParametersAreNonnullByDefault\npackage org.foo.bar;\n</pre>",
- "status": "REMOVED"
- }
- ],
- "users": [],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 50,
- "total": 4623,
- "fTotal": "4,623",
- "pages": 93
- },
- "facets": [
- {
- "property": "rules",
- "values": [
- {
- "val": "squid:S1698",
- "count": 801
- },
- {
- "val": "squid:S1142",
- "count": 394
- },
- {
- "val": "squid:S1694",
- "count": 114
- },
- {
- "val": "squid:S1151",
- "count": 78
- },
- {
- "val": "squid:S1643",
- "count": 57
- },
- {
- "val": "squid:S134",
- "count": 53
- },
- {
- "val": "common-java:DuplicatedBlocks",
- "count": 53
- },
- {
- "val": "squid:RightCurlyBraceSameLineAsNextBlockCheck",
- "count": 40
- },
- {
- "val": "squid:MethodCyclomaticComplexity",
- "count": 28
- },
- {
- "val": "squid:S138",
- "count": 24
- },
- {
- "val": "squid:S1067",
- "count": 21
- },
- {
- "val": "common-java:InsufficientBranchCoverage",
- "count": 16
- },
- {
- "val": "squid:S1228",
- "count": 14
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/search-with-tags.json b/server/sonar-web/src/test/json/issues-spec/search-with-tags.json
deleted file mode 100644
index 101cd38fb6f..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/search-with-tags.json
+++ /dev/null
@@ -1,162 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 50,
- "components": [
- {
- "uuid": "639e257b-d3fb-4d10-b94a-31079b71532d",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "id": 26177,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml",
- "longName": "src/main/java/org/sonar/plugins/xml",
- "path": "src/main/java/org/sonar/plugins/xml",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "015c6451-1709-4360-b4fa-e4508e13082d",
- "key": "org.codehaus.sonar-plugins.xml:xml",
- "id": 17156,
- "enabled": true,
- "qualifier": "TRK",
- "name": "XML",
- "longName": "XML"
- }
-
- ],
- "issues": [
- {
- "key": "94357807-fcb4-40cc-9598-9a715f1eee6e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "componentId": 26177,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:55+0200",
- "fUpdateAge": "26 days",
- "tags": [
- "security",
- "cwe"
- ],
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity",
- "set_tags"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- }
- ],
- "rules": [
- {
- "key": "squid:S1228",
- "name": "Packages should have a javadoc file 'package-info.java'",
- "desc": "<p>Each package in a Java project should include a <code>package-info.java</code> file. The purpose of this file is to document the Java package using javadoc and declare package annotations.</p>\n\n<h2>Compliant Solution</h2>\n<pre>\n/**\n* This package has non null parameters and is documented.\n**/\n@ParametersAreNonnullByDefault\npackage org.foo.bar;\n</pre>",
- "status": "REMOVED"
- }
- ],
- "users": [],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 50,
- "total": 1,
- "fTotal": "1",
- "pages": 1
- },
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 1
- },
- {
- "val": "INFO",
- "count": 0
- },
- {
- "val": "MINOR",
- "count": 0
- },
- {
- "val": "CRITICAL",
- "count": 0
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- },
- {
- "property": "statuses",
- "values": [
- {
- "val": "CONFIRMED",
- "count": 1
- },
- {
- "val": "OPEN",
- "count": 0
- },
- {
- "val": "REOPENED",
- "count": 0
- },
- {
- "val": "CLOSED",
- "count": 0
- },
- {
- "val": "RESOLVED",
- "count": 0
- }
- ]
- },
- {
- "property": "resolutions",
- "values": [
- {
- "val": "",
- "count": 1
- },
- {
- "val": "FIXED",
- "count": 0
- },
- {
- "val": "REMOVED",
- "count": 0
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 0
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/search.json b/server/sonar-web/src/test/json/issues-spec/search.json
deleted file mode 100644
index eb66a695d5a..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/search.json
+++ /dev/null
@@ -1,2085 +0,0 @@
-{
- "total": 4623,
- "p": 1,
- "ps": 50,
- "components": [
- {
- "uuid": "367350ce-00c7-461b-8348-c64138515ef9",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/UnusedPrivateVariableCheck.java",
- "id": 29801,
- "enabled": true,
- "qualifier": "FIL",
- "name": "UnusedPrivateVariableCheck.java",
- "longName": "src/main/java/com/sonar/vb/checks/UnusedPrivateVariableCheck.java",
- "path": "src/main/java/com/sonar/vb/checks/UnusedPrivateVariableCheck.java",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "2c39c99e-6c3e-4635-a673-fbd876eb2107",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "id": 19130,
- "enabled": true,
- "qualifier": "FIL",
- "name": "CDataDocTokenizer.java",
- "longName": "src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "path": "src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "729bcb00-97b2-432d-b36e-06174e0bea26",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "id": 19132,
- "enabled": true,
- "qualifier": "FIL",
- "name": "XmlStartElementTokenizer.java",
- "longName": "src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "path": "src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "e1cf7541-9f52-4c9c-864e-85257b6126da",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/api",
- "id": 26175,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/xml/api",
- "longName": "src/main/java/org/sonar/xml/api",
- "path": "src/main/java/org/sonar/xml/api",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "23eaa59a-36dd-484d-9cb3-af9ddac0943f",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/parsers/AbstractParser.java",
- "id": 17191,
- "enabled": true,
- "qualifier": "FIL",
- "name": "AbstractParser.java",
- "longName": "src/main/java/org/sonar/plugins/xml/parsers/AbstractParser.java",
- "path": "src/main/java/org/sonar/plugins/xml/parsers/AbstractParser.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "730a7d9f-f280-48dd-9a09-de210f5db607",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml",
- "id": 26174,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/xml",
- "longName": "src/main/java/org/sonar/xml",
- "path": "src/main/java/org/sonar/xml",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "45d36e11-d9ed-4157-8a2c-916d2e131af7",
- "key": "org.codehaus.sonar-plugins.xml:sslr-xml-toolkit",
- "id": 17257,
- "enabled": true,
- "qualifier": "BRC",
- "name": "XML :: SSLR Toolkit",
- "longName": "XML :: SSLR Toolkit",
- "path": "sslr-xml-toolkit",
- "projectId": 17156,
- "subProjectId": 17156
- },
- {
- "uuid": "e3ac3a3e-ac1b-4e3a-8e38-039e06a2ca38",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/LineContinuationChannel.java",
- "id": 28613,
- "enabled": true,
- "qualifier": "FIL",
- "name": "LineContinuationChannel.java",
- "longName": "src/main/java/com/sonar/vb/LineContinuationChannel.java",
- "path": "src/main/java/com/sonar/vb/LineContinuationChannel.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "7428200d-ce03-464d-a099-593092cd0291",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/TrailingCommentCheck.java",
- "id": 29769,
- "enabled": true,
- "qualifier": "FIL",
- "name": "TrailingCommentCheck.java",
- "longName": "src/main/java/com/sonar/vb/checks/TrailingCommentCheck.java",
- "path": "src/main/java/com/sonar/vb/checks/TrailingCommentCheck.java",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "966aa6fd-9463-422c-b785-208ad519e4ea",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/ProgressAstScanner.java",
- "id": 28614,
- "enabled": true,
- "qualifier": "FIL",
- "name": "ProgressAstScanner.java",
- "longName": "src/main/java/com/sonar/vb/ProgressAstScanner.java",
- "path": "src/main/java/com/sonar/vb/ProgressAstScanner.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "c236560b-b257-4f34-bb7b-3977d178e1ff",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/AbstractXmlCheck.java",
- "id": 17168,
- "enabled": true,
- "qualifier": "FIL",
- "name": "AbstractXmlCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/AbstractXmlCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/AbstractXmlCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "26f2099c-664b-424a-b815-c017eb2165b1",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks",
- "id": 29690,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/checks",
- "longName": "src/main/java/com/sonar/vb/checks",
- "path": "src/main/java/com/sonar/vb/checks",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "4adacc63-7447-4bb1-95ae-1cc5102e8335",
- "key": "com.sonarsource.plugins.vb:vb-checks",
- "id": 29689,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarSource :: Visual Basic :: Checks",
- "longName": "SonarSource :: Visual Basic :: Checks",
- "path": "vb-checks",
- "projectId": 28554,
- "subProjectId": 28554
- },
- {
- "uuid": "fa92c266-befe-460c-8bad-1ff13b918ec5",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb",
- "id": 28611,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb",
- "longName": "src/main/java/com/sonar/vb",
- "path": "src/main/java/com/sonar/vb",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "e92b1510-91c3-4479-8714-44fa3a139f7c",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin",
- "id": 28610,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarSource :: Visual Basic :: Sonar Plugin",
- "longName": "SonarSource :: Visual Basic :: Sonar Plugin",
- "path": "sonar-vb-plugin",
- "projectId": 28554,
- "subProjectId": 28554
- },
- {
- "uuid": "1f609143-c6a4-4f76-ac38-370d349feaf7",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/schemas",
- "id": 26182,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/schemas",
- "longName": "src/main/java/org/sonar/plugins/xml/schemas",
- "path": "src/main/java/org/sonar/plugins/xml/schemas",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "7abb4d57-160a-41ba-927f-b53603e843b8",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/schemas/SchemaResolver.java",
- "id": 17178,
- "enabled": true,
- "qualifier": "FIL",
- "name": "SchemaResolver.java",
- "longName": "src/main/java/org/sonar/plugins/xml/schemas/SchemaResolver.java",
- "path": "src/main/java/org/sonar/plugins/xml/schemas/SchemaResolver.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "c960a7a1-e078-47de-8a31-167b0f774002",
- "key": "org.codehaus.sonar-plugins.xml:sslr-xml-toolkit:src/main/java/org/sonar/xml/toolkit",
- "id": 26183,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/xml/toolkit",
- "longName": "src/main/java/org/sonar/xml/toolkit",
- "path": "src/main/java/org/sonar/xml/toolkit",
- "projectId": 17156,
- "subProjectId": 17257
- },
- {
- "uuid": "7d14bd3e-33b7-4b0f-ade5-cf6cef0085b9",
- "key": "com.sonarsource.plugins.vb:vb-squid",
- "id": 28555,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarSource :: Visual Basic :: Squid",
- "longName": "SonarSource :: Visual Basic :: Squid",
- "path": "vb-squid",
- "projectId": 28554,
- "subProjectId": 28554
- },
- {
- "uuid": "d9716626-0952-4ec7-a8fb-2760ba3256a3",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/parsers",
- "id": 26180,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/parsers",
- "longName": "src/main/java/org/sonar/plugins/xml/parsers",
- "path": "src/main/java/org/sonar/plugins/xml/parsers",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "071bdfec-a244-444d-877e-772a68973e18",
- "key": "com.sonarsource.plugins.vb:vb",
- "id": 28554,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarSource :: Visual Basic",
- "longName": "SonarSource :: Visual Basic"
- },
- {
- "uuid": "99d31cea-6b8f-4fb6-ba87-c86ce8d339cf",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/api",
- "id": 28622,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/api",
- "longName": "src/main/java/com/sonar/vb/api",
- "path": "src/main/java/com/sonar/vb/api",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "26facc1b-fd2b-4fe4-a543-65e9ec692360",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/rules",
- "id": 26181,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/rules",
- "longName": "src/main/java/org/sonar/plugins/xml/rules",
- "path": "src/main/java/org/sonar/plugins/xml/rules",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "d789993b-c5fe-414b-9164-33871fd3c3c2",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks",
- "id": 26178,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/checks",
- "longName": "src/main/java/org/sonar/plugins/xml/checks",
- "path": "src/main/java/org/sonar/plugins/xml/checks",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "91715de9-47ed-4837-a51b-4dcead30a71c",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/plugin",
- "id": 28952,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/plugin",
- "longName": "src/main/java/com/sonar/vb/plugin",
- "path": "src/main/java/com/sonar/vb/plugin",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "3c338bdb-39c9-4cb8-9b13-2e08358047d6",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/language",
- "id": 26179,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml/language",
- "longName": "src/main/java/org/sonar/plugins/xml/language",
- "path": "src/main/java/org/sonar/plugins/xml/language",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "639e257b-d3fb-4d10-b94a-31079b71532d",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "id": 26177,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/org/sonar/plugins/xml",
- "longName": "src/main/java/org/sonar/plugins/xml",
- "path": "src/main/java/org/sonar/plugins/xml",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "08bafb36-5990-4f10-821c-534dc451d297",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/NumberedLineProcessor.java",
- "id": 29907,
- "enabled": true,
- "qualifier": "FIL",
- "name": "NumberedLineProcessor.java",
- "longName": "src/main/java/com/sonar/vb/checks/NumberedLineProcessor.java",
- "path": "src/main/java/com/sonar/vb/checks/NumberedLineProcessor.java",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "e3bb947b-9385-4972-8367-f69beb488d21",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics/LinesOfCodeVisitor.java",
- "id": 28629,
- "enabled": true,
- "qualifier": "FIL",
- "name": "LinesOfCodeVisitor.java",
- "longName": "src/main/java/com/sonar/vb/metrics/LinesOfCodeVisitor.java",
- "path": "src/main/java/com/sonar/vb/metrics/LinesOfCodeVisitor.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "dd9c314f-0c19-498d-9e16-67ef0b49486e",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/colorizer",
- "id": 28932,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/colorizer",
- "longName": "src/main/java/com/sonar/vb/colorizer",
- "path": "src/main/java/com/sonar/vb/colorizer",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "9d771010-5d4f-49ed-9f70-ff131189610d",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/pp",
- "id": 28630,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/pp",
- "longName": "src/main/java/com/sonar/vb/pp",
- "path": "src/main/java/com/sonar/vb/pp",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "8597e351-39d2-4b17-8422-00409d21bccd",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd",
- "id": 28935,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/cpd",
- "longName": "src/main/java/com/sonar/vb/cpd",
- "path": "src/main/java/com/sonar/vb/cpd",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "9d44133a-d633-48b4-a54b-800df905a1fd",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/pp/EmptyLinesRemovalPreprocessor.java",
- "id": 28631,
- "enabled": true,
- "qualifier": "FIL",
- "name": "EmptyLinesRemovalPreprocessor.java",
- "longName": "src/main/java/com/sonar/vb/pp/EmptyLinesRemovalPreprocessor.java",
- "path": "src/main/java/com/sonar/vb/pp/EmptyLinesRemovalPreprocessor.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "b6d552ca-aabe-499b-9c72-18247177ae68",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin",
- "id": 17158,
- "enabled": true,
- "qualifier": "BRC",
- "name": "XML :: SonarQube Plugin",
- "longName": "XML :: SonarQube Plugin",
- "path": "sonar-xml-plugin",
- "projectId": 17156,
- "subProjectId": 17156
- },
- {
- "uuid": "2e9ae8fd-fa5c-48a4-a0f6-1eaba1c38a2f",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/batch",
- "id": 28928,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/batch",
- "longName": "src/main/java/com/sonar/vb/batch",
- "path": "src/main/java/com/sonar/vb/batch",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "015c6451-1709-4360-b4fa-e4508e13082d",
- "key": "org.codehaus.sonar-plugins.xml:xml",
- "id": 17156,
- "enabled": true,
- "qualifier": "TRK",
- "name": "XML",
- "longName": "XML"
- },
- {
- "uuid": "1bb3f177-d173-469e-a178-6ae8078bd765",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics",
- "id": 28626,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/metrics",
- "longName": "src/main/java/com/sonar/vb/metrics",
- "path": "src/main/java/com/sonar/vb/metrics",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "216ebdfc-9fc9-4c06-9f14-859d051fae69",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid",
- "id": 17157,
- "enabled": true,
- "qualifier": "BRC",
- "name": "XML :: Squid",
- "longName": "XML :: Squid",
- "path": "xml-squid",
- "projectId": 17156,
- "subProjectId": 17156
- },
- {
- "uuid": "aad717d1-12f5-48c0-9273-0c9aac102467",
- "key": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics/CommentsVisitor.java",
- "id": 28627,
- "enabled": true,
- "qualifier": "FIL",
- "name": "CommentsVisitor.java",
- "longName": "src/main/java/com/sonar/vb/metrics/CommentsVisitor.java",
- "path": "src/main/java/com/sonar/vb/metrics/CommentsVisitor.java",
- "projectId": 28554,
- "subProjectId": 28555
- },
- {
- "uuid": "53ecdff7-a6af-4cc9-b30c-7656a33cf732",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XPathCheck.java",
- "id": 17162,
- "enabled": true,
- "qualifier": "FIL",
- "name": "XPathCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/XPathCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/XPathCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "d8f590fb-5a56-49a9-991c-4c9d4ec5a7fe",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "id": 17163,
- "enabled": true,
- "qualifier": "FIL",
- "name": "IndentCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "7d79ad61-0f0a-449a-bdce-fd544c8d8d27",
- "key": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/api/XmlGrammar.java",
- "id": 17160,
- "enabled": true,
- "qualifier": "FIL",
- "name": "XmlGrammar.java",
- "longName": "src/main/java/org/sonar/xml/api/XmlGrammar.java",
- "path": "src/main/java/org/sonar/xml/api/XmlGrammar.java",
- "projectId": 17156,
- "subProjectId": 17157
- },
- {
- "uuid": "be763c66-8400-432d-9e84-bc2e9d6e164c",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "id": 17166,
- "enabled": true,
- "qualifier": "FIL",
- "name": "NewlineCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "c2c82fc7-073f-449e-bb18-ebbf60ceb1d9",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "id": 28937,
- "enabled": true,
- "qualifier": "FIL",
- "name": "VbCpdTokenizer.java",
- "longName": "src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "path": "src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "projectId": 28554,
- "subProjectId": 28610
- },
- {
- "uuid": "bc2e055a-eb0a-4ba6-8c06-8390bdb2c08a",
- "key": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/ExpressionComplexityCheck.java",
- "id": 29783,
- "enabled": true,
- "qualifier": "FIL",
- "name": "ExpressionComplexityCheck.java",
- "longName": "src/main/java/com/sonar/vb/checks/ExpressionComplexityCheck.java",
- "path": "src/main/java/com/sonar/vb/checks/ExpressionComplexityCheck.java",
- "projectId": 28554,
- "subProjectId": 29689
- },
- {
- "uuid": "7bbe651e-5b83-4002-9fa9-79397693d529",
- "key": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "id": 17164,
- "enabled": true,
- "qualifier": "FIL",
- "name": "XmlSchemaCheck.java",
- "longName": "src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "path": "src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "projectId": 17156,
- "subProjectId": 17158
- },
- {
- "uuid": "2dc0e6d7-09b9-4f99-a25e-acf288b26581",
- "key": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/foundation",
- "id": 28938,
- "enabled": true,
- "qualifier": "DIR",
- "name": "src/main/java/com/sonar/vb/foundation",
- "longName": "src/main/java/com/sonar/vb/foundation",
- "path": "src/main/java/com/sonar/vb/foundation",
- "projectId": 28554,
- "subProjectId": 28610
- }
- ],
- "issues": [
- {
- "key": "94357807-fcb4-40cc-9598-9a715f1eee6e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "componentId": 26177,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:55+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "c24088ec-b204-4744-827e-7509fd34c2a7",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks",
- "componentId": 26178,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/checks' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:33:02+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "e5f8e82a-2765-4084-ba57-4a81ee8da1df",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/AbstractXmlCheck.java",
- "componentId": 17168,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "10min",
- "creationDate": "2013-02-05T00:47:29+0100",
- "updateDate": "2014-02-14T23:34:11+0100",
- "fUpdateAge": "8 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "56f021c3-b717-4cc8-9fad-5f1911a8d66f",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "componentId": 17163,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:MethodCyclomaticComplexity",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "The Cyclomatic Complexity of this method \"collectIndent\" is 13 which is greater than 10 authorized.",
- "line": 47,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-02-05T00:47:29+0100",
- "updateDate": "2013-12-18T23:52:20+0100",
- "fUpdateAge": "10 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "b32333fe-7efd-4bc8-a72b-bad90361af1a",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "componentId": 17163,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1151",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce this switch case number of lines from 26 to at most 5, for example by extracting code into methods.",
- "line": 54,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-11T00:06:49+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "2174148b-6be9-4213-8f57-c63576904e9e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/IndentCheck.java",
- "componentId": 17163,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S134",
- "status": "CONFIRMED",
- "severity": "MINOR",
- "message": "Refactor this code to not nest more than 4 if/for/while/switch/try statements.",
- "line": 59,
- "debt": "20min",
- "author": "mandrikov@gmail.com",
- "creationDate": "2013-10-18T23:46:56+0200",
- "updateDate": "2013-12-18T23:52:20+0100",
- "fUpdateAge": "10 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "633c9ba7-b757-4bdf-9e91-ff2ccbc9dd74",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "componentId": 17166,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1151",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce this switch case number of lines from 9 to at most 5, for example by extracting code into methods.",
- "line": 49,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-11T00:06:49+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "63f5037f-a060-4cec-820a-25221a4cc313",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/NewlineCheck.java",
- "componentId": 17166,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1151",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce this switch case number of lines from 6 to at most 5, for example by extracting code into methods.",
- "line": 58,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-13T23:58:09+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "bf75fe08-7ddc-4c69-989d-7e5b83cee043",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "componentId": 17164,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:RightCurlyBraceSameLineAsNextBlockCheck",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Move this \"else\" on the same line that the previous closing curly brace.",
- "line": 167,
- "debt": "1min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-07T23:58:51+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "6d6e64ae-94cd-4367-a9bc-df51093a6468",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XmlSchemaCheck.java",
- "componentId": 17164,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "5 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "50min",
- "creationDate": "2013-02-05T00:47:29+0100",
- "updateDate": "2014-06-06T15:53:08+0200",
- "fUpdateAge": "5 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "5ddc1783-3c72-4f68-bbd1-d2d1fad425eb",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/checks/XPathCheck.java",
- "componentId": 17162,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "10min",
- "creationDate": "2014-06-06T15:53:08+0200",
- "updateDate": "2014-06-06T16:53:27+0200",
- "fUpdateAge": "5 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "f0853649-fe5e-4c6c-92b9-42ad460fcc0f",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/language",
- "componentId": 26179,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/language' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:43+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "24f4c570-a96d-42ea-a99e-60aded51d69c",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/parsers",
- "componentId": 26180,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/parsers' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:48+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "aeeb9e4e-fd39-4b7e-a482-36d9da710127",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/parsers/AbstractParser.java",
- "componentId": 17191,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1694",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Convert this \"AbstractParser\" class to a concrete class with a private constructor",
- "line": 33,
- "debt": "5min",
- "author": "matthijs.galesloot@gmail.com",
- "creationDate": "2014-06-26T23:08:13+0200",
- "updateDate": "2014-07-23T23:07:58+0200",
- "fUpdateAge": "3 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "66a25a73-b555-4c35-8bc5-536da40a3493",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/rules",
- "componentId": 26181,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/rules' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:33:03+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "89695ec6-63c2-457f-966b-b2cfd7ad8489",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/schemas",
- "componentId": 26182,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml/schemas' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:50+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "3ac6d2e6-6af2-435f-abc7-b281f3676d34",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml/schemas/SchemaResolver.java",
- "componentId": 17178,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1192",
- "status": "CONFIRMED",
- "severity": "MINOR",
- "message": "Define a constant instead of duplicating this literal \"xhtml1/xhtml1-strict.xsd\" 3 times.",
- "line": 58,
- "debt": "10min",
- "author": "Evgeny Mandrikov",
- "creationDate": "2013-08-22T23:52:06+0200",
- "updateDate": "2014-04-24T23:32:18+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "39942422-fbc2-4383-81fe-82777eb3ce7f",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml",
- "componentId": 26174,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:33:07+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "e44fb44e-df1c-460a-b807-66ff79e21194",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/api",
- "componentId": 26175,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/xml/api' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:52+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "08f9aedf-5119-4875-8e58-260bfc2e3f69",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/api/XmlGrammar.java",
- "componentId": 17160,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S138",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "This method has 233 lines, which is greater than the 100 lines authorized. Split it into smaller methods.",
- "line": 134,
- "debt": "1h",
- "author": "Dinesh Bolkensteyn",
- "creationDate": "2013-08-22T23:52:06+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "f781c518-83bd-4bd9-8806-c889d0711a39",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "componentId": 19130,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1067",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce the number of conditional operators (4) used in the expression (maximum allowed 3).",
- "line": 47,
- "debt": "10min",
- "author": "Dinesh Bolkensteyn",
- "creationDate": "2013-08-28T23:50:16+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "cdde8bbf-9d13-4832-8faa-4d189d79fb6b",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "componentId": 19130,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 82,
- "debt": "2min",
- "author": "dinesh.bolkensteyn@sonarsource.com",
- "creationDate": "2014-06-26T23:08:13+0200",
- "updateDate": "2014-06-26T23:08:13+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "f9eae4c0-ca44-440f-aeb7-327dca040f57",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/CDataDocTokenizer.java",
- "componentId": 19130,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "common-java:InsufficientBranchCoverage",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "3 more branches need to be covered by unit tests to reach the minimum threshold of 65.0% branch coverage.",
- "debt": "30min",
- "creationDate": "2013-04-04T15:37:48+0200",
- "updateDate": "2014-02-14T23:34:11+0100",
- "fUpdateAge": "8 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "19516152-0ad2-485a-bc5f-576d19f5dea4",
- "component": "org.codehaus.sonar-plugins.xml:sslr-xml-toolkit:src/main/java/org/sonar/xml/toolkit",
- "componentId": 26183,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/xml/toolkit' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:33:05+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "2c767e87-dd31-4803-b8da-581dddb8b73b",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "componentId": 19132,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1142",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Reduce the number of returns of this method 7, down to the maximum allowed 5.",
- "line": 74,
- "debt": "20min",
- "author": "Dinesh Bolkensteyn",
- "creationDate": "2013-08-11T00:06:49+0200",
- "updateDate": "2013-10-23T15:15:05+0200",
- "fUpdateAge": "about a year",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "f8665ff6-6f1b-4014-acb9-2d8cbcd9bd8b",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "componentId": 19132,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:MethodCyclomaticComplexity",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "The Cyclomatic Complexity of this method \"consumeStartElement\" is 15 which is greater than 10 authorized.",
- "line": 74,
- "debt": "10min",
- "author": "Dinesh Bolkensteyn",
- "creationDate": "2013-04-04T15:37:48+0200",
- "updateDate": "2013-12-18T23:52:20+0100",
- "fUpdateAge": "10 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "5f039a47-9dcc-474e-894c-5598720cb4e0",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "componentId": 19132,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 155,
- "debt": "2min",
- "author": "dinesh.bolkensteyn@sonarsource.com",
- "creationDate": "2014-06-26T23:08:13+0200",
- "updateDate": "2014-06-26T23:08:13+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "7985c68b-2a1d-4aa7-af55-bb6236a01450",
- "component": "org.codehaus.sonar-plugins.xml:xml-squid:src/main/java/org/sonar/xml/XmlStartElementTokenizer.java",
- "componentId": 19132,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 160,
- "debt": "2min",
- "author": "dinesh.bolkensteyn@sonarsource.com",
- "creationDate": "2014-06-26T23:08:13+0200",
- "updateDate": "2014-06-26T23:08:13+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "d0dba7cd-e31d-4577-a047-644cdc7e2172",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb",
- "componentId": 28611,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:37:50+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "6d77a59b-53c2-444c-b288-a803d1f7f18d",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/api",
- "componentId": 28622,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/api' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:38+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "bda16272-3785-47af-a0cd-c3fd3c581887",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/batch",
- "componentId": 28928,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/batch' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:06+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "4ea78cde-76c0-41ad-8809-a4e406168a00",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks",
- "componentId": 29690,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/checks' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:04+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "459f9f04-0901-4250-9e9b-946d505455ac",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/ExpressionComplexityCheck.java",
- "componentId": 29783,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 54,
- "debt": "2min",
- "author": "pierre-yves.nicolas@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-06-26T23:07:23+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "47ec8d6b-b7df-4e8c-a254-f9ccf7c0b90a",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/NumberedLineProcessor.java",
- "componentId": 29907,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-05-01T23:14:46+0200",
- "updateDate": "2014-05-02T09:05:22+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "84f34eb4-5aec-419b-8a2d-094d79d7969a",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/TrailingCommentCheck.java",
- "componentId": 29769,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "4 duplicated blocks of code.",
- "debt": "4h",
- "creationDate": "2014-04-14T23:14:16+0200",
- "updateDate": "2014-05-23T23:13:54+0200",
- "fUpdateAge": "5 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "bd85131c-2bac-474d-ac0f-2cf3c8848d40",
- "component": "com.sonarsource.plugins.vb:vb-checks:src/main/java/com/sonar/vb/checks/UnusedPrivateVariableCheck.java",
- "componentId": 29801,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1643",
- "status": "REOPENED",
- "severity": "MAJOR",
- "message": "Use a StringBuilder instead.",
- "line": 57,
- "debt": "10min",
- "author": "pierre-yves.nicolas@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-11-03T09:50:23+0100",
- "fUpdateAge": "a day",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "0f81cd62-e82d-44b1-8773-a7a61536a516",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/colorizer",
- "componentId": 28932,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/colorizer' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:03+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "c7d665b1-0d77-4f7b-b893-8678c5324a70",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd",
- "componentId": 28935,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/cpd' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:30+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "47780a07-2b00-47bb-a5e0-91af1ab53b49",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "componentId": 28937,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 55,
- "debt": "2min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-06-26T23:07:23+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "4882c235-98a2-4ac8-8131-acbe30010be5",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "componentId": 28937,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 55,
- "debt": "2min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-06-26T23:07:23+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "a7816c2c-4a24-4edc-955b-4bf064c8da6c",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/cpd/VbCpdTokenizer.java",
- "componentId": 28937,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1698",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Change this comparison to use the equals method.",
- "line": 55,
- "debt": "2min",
- "author": "julien.henry@sonarsource.com",
- "creationDate": "2014-06-26T23:07:23+0200",
- "updateDate": "2014-06-26T23:07:23+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "5c6bc4d6-560f-47c7-9170-873c7ec51243",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/foundation",
- "componentId": 28938,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/foundation' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:32+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "4df1a07e-1961-4b7c-bd9d-f08670b7dc53",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/LineContinuationChannel.java",
- "componentId": 28613,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:33+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "8d505c3e-e944-40a7-bdc4-3e55a6d80ddf",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics",
- "componentId": 28626,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/metrics' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:37:59+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "5420d272-a363-44a5-9a8d-4ed9236aee6c",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics/CommentsVisitor.java",
- "componentId": 28627,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "2 duplicated blocks of code.",
- "debt": "2h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:15+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "eaff60ef-0e3f-4744-9ada-a701eb92fc38",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/metrics/LinesOfCodeVisitor.java",
- "componentId": 28629,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "2 duplicated blocks of code.",
- "debt": "2h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:13+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "4b6e0ff7-8343-4389-bfee-74fb06ae1a4c",
- "component": "com.sonarsource.plugins.vb:sonar-vb-plugin:src/main/java/com/sonar/vb/plugin",
- "componentId": 28952,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/plugin' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:37:48+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "86a0cb1a-c36b-442e-aac0-5d29efc8b0f0",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/pp",
- "componentId": 28630,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/com/sonar/vb/pp' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:05:55+0200",
- "updateDate": "2014-10-09T06:38:40+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "8d5d8cb6-2f92-4cdd-858e-6d551b6507a3",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/pp/EmptyLinesRemovalPreprocessor.java",
- "componentId": 28631,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:10+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "dd34e8a9-7c6a-4a66-8b02-7bf5d9daa4f9",
- "component": "com.sonarsource.plugins.vb:vb-squid:src/main/java/com/sonar/vb/ProgressAstScanner.java",
- "componentId": 28614,
- "project": "com.sonarsource.plugins.vb:vb",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "1 duplicated blocks of code.",
- "debt": "1h",
- "creationDate": "2014-03-24T23:14:21+0100",
- "updateDate": "2014-04-28T16:56:31+0200",
- "fUpdateAge": "6 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- }
- ],
- "rules": [
- {
- "key": "squid:S1698",
- "name": "Objects should be compared with \"equals()\"",
- "desc": "<p>Using the equality (<code>==</code>) and inequality (<code>!=</code>) operators to compare two objects does not check to see if they have the same values. Rather it checks to see if both object references point to exactly the same object in memory. The vast majority of the time, this is not what you want to do. Use the .equals() method to compare the values of two objects or to compare a string object to a string literal.</p>\n\n<h2>Noncompliant Code Sample</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1 == str2)\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == \"blue\")\n{\n System.out.println(\"they're both 'blue'\"); // this doesn't print because the objects are different\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this prints\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nString str1 = \"blue\";\nString str2 = \"blue\";\nString str3 = str1;\n\nif (str1.equals(str2))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1.equals(\"blue\"))\n{\n System.out.println(\"they're both 'blue'\"); // this prints\n}\n\nif (str1 == str3)\n{\n System.out.println(\"they're the same object\"); // this still prints, but it's probably not what you meant to do\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1142",
- "name": "Methods should not contain too many return statements",
- "desc": "<p>\nHaving too many return statements in a method increases the method's essential complexity because the flow of execution is broken each time a return statement is encountered.\nThis makes it harder to read and understand the logic of the method.\n</p>\n\n<p>\nThe following code snippet illustrates this rule with the default threshold of 3:\n</p>\n\n<pre>\npublic boolean myMethod() { // Non-Compliant as there are 4 return statements\n if (condition1) {\n return true;\n } else {\n if (condition2) {\n return false;\n } else {\n return true;\n }\n }\n return false;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1694",
- "name": "An abstract class should have both abstract and concrete methods",
- "desc": "<p>The purpose of an abstract class is to provide some heritable behaviors while also defining methods which must be implemented by sub-classes.</p>\n\n<p>A class with no abstract methods that was made abstract purely to prevent instantiation should be converted to a concrete class (i.e. remove the <code>abstract</code> keyword) with a private constructor.</p>\n\n<p>A class with only abstract methods and no inheritable behavior should be converted to an interface.</p>\n\n<h2>Noncompliant Code Sample</h2>\n<pre>\npublic abstract class Animal {\n abstract void move();\n abstract void feed();\n}\n\npublic abstract class Color {\n private int red = 0;\n private int green = 0;\n private int blue = 0;\n\n public int getRed(){\n return red;\n }\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\npublic interface Animal {\n void move();\n void feed();\n}\n\npublic class Color {\n private int red = 0;\n private int green = 0;\n private int blue = 0;\n\n private Color (){\n }\n\n public int getRed() {\n return red;\n }\n}\n\npublic abstract class Lamp {\n\n private boolean switchLamp=false;\n public abstract void glow();\n\n public void flipSwitch() {\n switchLamp = !switchLamp;\n if (switchLamp) {\n glow();\n }\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1151",
- "name": "Switch cases should not have too many lines",
- "desc": "<p>Switch cases should remain small to keep the overall switch compact and readable.</p>\n\n<p>The following code snippet illustrates this rule with the default threshold of 5:</p>\n\n<pre>\nswitch (myVariable) {\n case 0: // Compliant - 5 lines till following case\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n break;\n default: // Non-Compliant - 6 lines till switch end\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n break;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S1643",
- "name": "Strings should not be concatenated using '+' in a loop",
- "desc": "<p>Strings are immutable objects in Java, so concatenation doesn't simply add the new String to the end of the existing string. Instead, in each loop iteration, the first String is converted to an intermediate object type, the second string is appended, and then the intermediate object is converted back to a String. Further, performance of these intermediate operations degrades as the String gets longer. Therefore, the use of StringBuilder is preferred.</p>\n\n<h2>Noncompliant Code Example</h2>\n<pre>\nString str = \"\";\nfor (int i = 0; i < arrayOfStrings.length ; ++i) {\n str = str + arrayOfStrings[i];\n}\n</pre>\n\n<h2>Compliant Solution</h2>\n<pre>\nStringBuilder bld = new StringBuilder();\nfor (int i = 0; i < arrayOfStrings.length; ++i) {\n bld.append(arrayOfStrings[i]);\n}\nString str = bld.toString();\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:S134",
- "name": "Control flow statements \"if\", \"for\", \"while\", \"switch\" and \"try\" should not be nested too deeply",
- "desc": "<p>\nNested <code>if</code>, <code>for</code>, <code>while</code> and <code>try</code> statements is a key ingredient for making what's known as \"Spaghetti code\".\nSuch code is hard to read, refactor and therefore maintain.\n</p>\n\n<h2>Noncompliant Code Example</h2>\n\n<p>The following code snippet illustrates this rule with the default threshold of 3.</p>\n\n<pre>\npublic void process() {\n if (condition1) { // Compliant - depth = 1\n /* ... */\n if (condition2) { // Compliant - depth = 2\n /* ... */\n for(int i = 0; i < 10; i++) { // Compliant - depth = 3, not exceeding the limit\n /* ... */\n if (condition4) { // Non-Compliant - depth = 4\n if (condition5) { // Depth = 5, exceeding the limit, but issues are only reported on depth = 4\n /* ... */\n }\n return;\n }\n }\n }\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "common-java:DuplicatedBlocks",
- "name": "Duplicated blocks",
- "desc": "<p>An issue is created on a file as soon as there is a block of duplicated code on this file. It gives the number of blocks in the file.</p>",
- "status": "READY"
- },
- {
- "key": "squid:RightCurlyBraceSameLineAsNextBlockCheck",
- "name": "Right curly brace and next \"else\", \"catch\" and \"finally\" keywords should be located on the same line",
- "desc": "<p>\nSharing some coding conventions is a key point to make it possible for a team to efficiently collaborate.\nThis rule make it mandatory to place closing curly braces on the same line that next <code>else</code>, <code>catch</code> or <code>finally</code> keywords.\n</p>\n\n<p>\nThe following code snippet illustrates this rule:\n</p>\n\n<pre>\npublic void myMethod() {\n if(something) {\n executeTask();\n } else if (somethingElse) { // Compliant\n doSomethingElse();\n }\n else { // Non-Compliant\n generateError();\n }\n\n try {\n generateOrder();\n } catch (Exception e) { // Compliant\n log(e);\n }\n finally { // Non-Compliant\n closeConnection();\n }\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "squid:MethodCyclomaticComplexity",
- "name": "Methods should not be too complex",
- "desc": "<p>The Cyclomatic Complexity is measured by the number of\n\t(&amp;&amp;, ||) operators and (if, while, do, for, ?:, catch, switch,\n\tcase, return, throw) statements in the body of a class plus one for\n\teach constructor, method (but not getter/setter), static initializer,\n\tor instance initializer in the class. The last return stament in\n\tmethod, if exists, is not taken into account.</p>\n<p>\n\tEven when the Cyclomatic Complexity of a class is very high, this\n\tcomplexity might be well distributed among all methods. Nevertheless,\n\tmost of the time, a very complex class is a class which breaks the <a\n\t\thref=\"http://en.wikipedia.org/wiki/Single_responsibility_principle\">Single\n\t\tResponsibility Principle</a> and which should be re-factored to be split\n\tin several classes.\n</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1192",
- "name": "String literals should not be duplicated",
- "desc": "<p>\n Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.\n On the other hand, constants can be referenced from many places, but only need to be updated in a single place.\n</p>\n\n<h2>Non Compliant Code Example</h2>\n\n<pre>\npublic void run() {\n prepare(\"action1\"); // Non-Compliant - \"action1\" is duplicated 3 times\n execute(\"action1\");\n release(\"action1\");\n}\n\n@SuppressWarning(\"all\") // Compliant - annotations are excluded\nprivate void method1() { /* ... */ }\n@SuppressWarning(\"all\")\nprivate void method2() { /* ... */ }\n\npublic String method3(String a) {\n System.out.println(\"'\" + a + \"'\"); // Compliant - literal \"'\" has less than 5 characters and is excluded\n return \"\"; // Compliant - literal \"\" has less than 5 characters and is excluded\n}\n</pre>\n\n<h2>Compliant Code Example</h2>\n\n<pre>\nprivate static final String ACTION_1 = \"action1\"; // Compliant\n\npublic void run() {\n prepare(ACTION_1); // Compliant\n execute(ACTION_1);\n release(ACTION_1);\n}\n</pre>\n\n<h2>Exceptions</h2>\n<p>To prevent generating some false-positives, literals having less than 5 characters are excluded.</p>",
- "status": "READY"
- },
- {
- "key": "squid:S138",
- "name": "Methods should not have too many lines",
- "desc": "<p>\nA method that grows too large tends to aggregate too many responsibilities.\nSuch methods inevitably become harder to understand and therefore harder to maintain.\n</p>\n\n<p>\nAbove a specific threshold, it is strongly advised to refactor into smaller methods which focus on well-defined tasks.\nThose smaller methods will not only be easier to understand, but also probably easier to test.\n</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1067",
- "name": "Expressions should not be too complex",
- "desc": "<p>\nThe complexity of an expression is defined by the number of <code>&&</code>, <code>||</code> and <code>condition ? ifTrue : ifFalse</code> operators it contains.\nA single expression's complexity should not become too high to keep the code readable.\n</p>\n\n<p>The following code, with a maximum complexity of 3:</p>\n\n<pre>\nif (condition1 && condition2 && condition3 && condition4) { /* ... */ } // Non-Compliant\n</pre>\n\n<p>could be refactored into something like:</p>\n\n<pre>\nif (relevantMethodName1() && relevantMethodName2()) { /* ... */ } // Compliant\n\n/* ... */\n\nprivate boolean relevantMethodName1() {\n return condition1 && condition2;\n}\n\nprivate boolean relevantMethodName2() {\n return condition3 && condition4;\n}\n</pre>",
- "status": "READY"
- },
- {
- "key": "common-java:InsufficientBranchCoverage",
- "name": "Insufficient branch coverage by unit tests",
- "desc": "<p>An issue is created on a file as soon as the branch coverage on this file is less than the required threshold.It gives the number of branches to be covered in order to reach the required threshold.</p>",
- "status": "READY"
- },
- {
- "key": "squid:S1228",
- "name": "Packages should have a javadoc file 'package-info.java'",
- "desc": "<p>Each package in a Java project should include a <code>package-info.java</code> file. The purpose of this file is to document the Java package using javadoc and declare package annotations.</p>\n\n<h2>Compliant Solution</h2>\n<pre>\n/**\n* This package has non null parameters and is documented.\n**/\n@ParametersAreNonnullByDefault\npackage org.foo.bar;\n</pre>",
- "status": "REMOVED"
- }
- ],
- "users": [],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 50,
- "total": 4623,
- "fTotal": "4,623",
- "pages": 93
- },
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 3214
- },
- {
- "val": "INFO",
- "count": 930
- },
- {
- "val": "MINOR",
- "count": 436
- },
- {
- "val": "CRITICAL",
- "count": 43
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- },
- {
- "property": "statuses",
- "values": [
- {
- "val": "CONFIRMED",
- "count": 4123
- },
- {
- "val": "OPEN",
- "count": 499
- },
- {
- "val": "REOPENED",
- "count": 1
- },
- {
- "val": "CLOSED",
- "count": 0
- },
- {
- "val": "RESOLVED",
- "count": 0
- }
- ]
- },
- {
- "property": "resolutions",
- "values": [
- {
- "val": "",
- "count": 4623
- },
- {
- "val": "FIXED",
- "count": 39744
- },
- {
- "val": "REMOVED",
- "count": 14385
- },
- {
- "val": "FALSE-POSITIVE",
- "count": 724
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/show-fp-new.json b/server/sonar-web/src/test/json/issues-spec/show-fp-new.json
deleted file mode 100644
index 68715405a38..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/show-fp-new.json
+++ /dev/null
@@ -1,69 +0,0 @@
-{
- "issue": {
- "key": "91e89abf-fb8e-4b6a-8d9c-2cf0ee01242e",
- "rule": "javascript:S1067",
- "severity": "MAJOR",
- "component": "backbone:backbone.js",
- "componentId": 1073,
- "project": "backbone",
- "subProject": "backbone",
- "line": 12,
- "textRange": {
- "startLine": 12,
- "endLine": 12,
- "startOffset": 0,
- "endOffset": 70
- },
- "flows": [],
- "resolution": "FALSE-POSITIVE",
- "status": "RESOLVED",
- "message": "Reduce the number of conditional operators (5) used in the expression (maximum allowed 3).",
- "author": "yeatesgraeme@gmail.com",
- "tags": [
- "brain-overload"
- ],
- "transitions": [
- "reopen"
- ],
- "actions": [
- "comment"
- ],
- "comments": [],
- "creationDate": "2015-08-10T14:37:54+0200",
- "updateDate": "2015-09-15T17:09:30+0200"
- },
- "components": [
- {
- "id": 1073,
- "key": "backbone:backbone.js",
- "uuid": "51097e69-d229-4471-87c9-c5b86e0e48a7",
- "enabled": true,
- "qualifier": "FIL",
- "name": "backbone.js",
- "longName": "backbone.js",
- "path": "backbone.js",
- "projectId": 1071,
- "subProjectId": 1071
- },
- {
- "id": 1071,
- "key": "backbone",
- "uuid": "10c394cc-c37c-4cf0-97b9-360165c47270",
- "enabled": true,
- "qualifier": "TRK",
- "name": "backbone",
- "longName": "backbone"
- }
- ],
- "rules": [
- {
- "key": "javascript:S1067",
- "name": "Expressions should not be too complex",
- "lang": "js",
- "status": "READY",
- "langName": "JavaScript"
- }
- ],
- "users": [],
- "actionPlans": []
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/show-open.json b/server/sonar-web/src/test/json/issues-spec/show-open.json
deleted file mode 100644
index 071d6bde7c4..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/show-open.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "issue": {
- "key": "94357807-fcb4-40cc-9598-9a715f1eee6e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "componentId": 26177,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:55+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/show-resolved.json b/server/sonar-web/src/test/json/issues-spec/show-resolved.json
deleted file mode 100644
index f4eab749601..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/show-resolved.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "issue": {
- "key": "94357807-fcb4-40cc-9598-9a715f1eee6e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "componentId": 26177,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "RESOLVED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:55+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "reopen"
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/show-with-tags.json b/server/sonar-web/src/test/json/issues-spec/show-with-tags.json
deleted file mode 100644
index 273f4079bdb..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/show-with-tags.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "issue": {
- "key": "94357807-fcb4-40cc-9598-9a715f1eee6e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "componentId": 26177,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:55+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "tags": ["security", "cwe"],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/show.json b/server/sonar-web/src/test/json/issues-spec/show.json
deleted file mode 100644
index c125f5f96c2..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/show.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "issue": {
- "key": "94357807-fcb4-40cc-9598-9a715f1eee6e",
- "component": "org.codehaus.sonar-plugins.xml:sonar-xml-plugin:src/main/java/org/sonar/plugins/xml",
- "componentId": 26177,
- "project": "org.codehaus.sonar-plugins.xml:xml",
- "rule": "squid:S1228",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "Add a 'package-info.java' file to document the 'src/main/java/org/sonar/plugins/xml' package",
- "debt": "20min",
- "creationDate": "2014-10-03T23:26:37+0200",
- "updateDate": "2014-10-09T06:32:55+0200",
- "fUpdateAge": "26 days",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/tags-modified.json b/server/sonar-web/src/test/json/issues-spec/tags-modified.json
deleted file mode 100644
index d1b53890ee3..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/tags-modified.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "tags": [
- "security",
- "cwe",
- "cert"
- ]
-}
diff --git a/server/sonar-web/src/test/json/issues-spec/tags.json b/server/sonar-web/src/test/json/issues-spec/tags.json
deleted file mode 100644
index af6bc92e0b4..00000000000
--- a/server/sonar-web/src/test/json/issues-spec/tags.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "tags": [
- "brain-overload",
- "bug",
- "cert",
- "convention",
- "cwe",
- "design",
- "error-handling",
- "misra",
- "misra-c",
- "misra-c++",
- "multithreading",
- "obsolete",
- "owasp-top10",
- "performance",
- "pitfall",
- "sans-top25",
- "sans-top25-2011",
- "security",
- "sql",
- "unused"
- ]
-}
diff --git a/server/sonar-web/src/test/json/maintenance-spec/status-down.json b/server/sonar-web/src/test/json/maintenance-spec/status-down.json
deleted file mode 100644
index 1a1bd37fefc..00000000000
--- a/server/sonar-web/src/test/json/maintenance-spec/status-down.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "id": "1",
- "version": "1.0",
- "status": "DOWN"
-}
diff --git a/server/sonar-web/src/test/json/maintenance-spec/status-up.json b/server/sonar-web/src/test/json/maintenance-spec/status-up.json
deleted file mode 100644
index b582c6d30c0..00000000000
--- a/server/sonar-web/src/test/json/maintenance-spec/status-up.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "id": "1",
- "version": "1.0",
- "status": "UP"
-}
diff --git a/server/sonar-web/src/test/json/metrics-spec/domains.json b/server/sonar-web/src/test/json/metrics-spec/domains.json
deleted file mode 100644
index 80713fcf818..00000000000
--- a/server/sonar-web/src/test/json/metrics-spec/domains.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "domains": [
- "Tests (Overall)",
- "Complexity",
- "Issues",
- "SCM",
- "Tests (Integration)",
- "Duplication",
- "Technical Debt",
- "General",
- "Management",
- "Tests",
- "Documentation",
- "Size"
- ]
-}
diff --git a/server/sonar-web/src/test/json/metrics-spec/error.json b/server/sonar-web/src/test/json/metrics-spec/error.json
deleted file mode 100644
index dc1b261128c..00000000000
--- a/server/sonar-web/src/test/json/metrics-spec/error.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "errors": [
- {
- "msg": "Some error message"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/metrics-spec/search-big-1.json b/server/sonar-web/src/test/json/metrics-spec/search-big-1.json
deleted file mode 100644
index ab2bbb7068d..00000000000
--- a/server/sonar-web/src/test/json/metrics-spec/search-big-1.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "metrics": [
- {
- "id": "1",
- "key": "burned_budget",
- "name": "Burned budget",
- "domain": "Management",
- "type": "FLOAT",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "2",
- "key": "business_value",
- "name": "Business value",
- "domain": "Complexity",
- "type": "PERCENT",
- "description": "Description of Business value",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- }
- ],
- "total": 3,
- "p": 1,
- "ps": 2
-}
diff --git a/server/sonar-web/src/test/json/metrics-spec/search-big-2.json b/server/sonar-web/src/test/json/metrics-spec/search-big-2.json
deleted file mode 100644
index 1243aa1832d..00000000000
--- a/server/sonar-web/src/test/json/metrics-spec/search-big-2.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "metrics": [
- {
- "id": "3",
- "key": "team_size",
- "name": "Team size",
- "domain": "Management",
- "type": "INT",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- }
- ],
- "total": 3,
- "p": 2,
- "ps": 2
-}
diff --git a/server/sonar-web/src/test/json/metrics-spec/search-created.json b/server/sonar-web/src/test/json/metrics-spec/search-created.json
deleted file mode 100644
index 783d5d66803..00000000000
--- a/server/sonar-web/src/test/json/metrics-spec/search-created.json
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- "metrics": [
- {
- "id": "1",
- "key": "burned_budget",
- "name": "Burned budget",
- "domain": "Management",
- "type": "FLOAT",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "2",
- "key": "business_value",
- "name": "Business value",
- "domain": "Complexity",
- "type": "PERCENT",
- "description": "Description of Business value",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "3",
- "key": "team_size",
- "name": "Team size",
- "domain": "Management",
- "type": "INT",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "4",
- "key": "new_metric",
- "name": "New Metric",
- "domain": "Domain for New Metric",
- "type": "RATING",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- }
- ],
- "total": 4,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/metrics-spec/search-updated.json b/server/sonar-web/src/test/json/metrics-spec/search-updated.json
deleted file mode 100644
index 060e33f143c..00000000000
--- a/server/sonar-web/src/test/json/metrics-spec/search-updated.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "metrics": [
- {
- "id": "1",
- "key": "burned_budget",
- "name": "Burned budget",
- "domain": "Management",
- "type": "FLOAT",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "2",
- "key": "business_value",
- "name": "Business value",
- "domain": "Complexity",
- "type": "PERCENT",
- "description": "Description of Business value",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "3",
- "key": "updated_key",
- "name": "Updated Name",
- "domain": "Random Domain",
- "type": "WORK_DUR",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- }
- ],
- "total": 3,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/metrics-spec/search.json b/server/sonar-web/src/test/json/metrics-spec/search.json
deleted file mode 100644
index 2d5dec0b56a..00000000000
--- a/server/sonar-web/src/test/json/metrics-spec/search.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "metrics": [
- {
- "id": "1",
- "key": "burned_budget",
- "name": "Burned budget",
- "domain": "Management",
- "type": "FLOAT",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "2",
- "key": "business_value",
- "name": "Business value",
- "domain": "Complexity",
- "type": "PERCENT",
- "description": "Description of Business value",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "3",
- "key": "team_size",
- "name": "Team size",
- "domain": "Management",
- "type": "INT",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- }
- ],
- "total": 3,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/metrics-spec/types.json b/server/sonar-web/src/test/json/metrics-spec/types.json
deleted file mode 100644
index c160e087e24..00000000000
--- a/server/sonar-web/src/test/json/metrics-spec/types.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "types": [
- "INT",
- "FLOAT",
- "PERCENT",
- "BOOL",
- "STRING",
- "MILLISEC",
- "DATA",
- "LEVEL",
- "DISTRIB",
- "RATING",
- "WORK_DUR"
- ]
-}
diff --git a/server/sonar-web/src/test/json/nav-spec/component.json b/server/sonar-web/src/test/json/nav-spec/component.json
deleted file mode 100644
index c55e713e463..00000000000
--- a/server/sonar-web/src/test/json/nav-spec/component.json
+++ /dev/null
@@ -1,37 +0,0 @@
-{
- "key": "org.codehaus.sonar-plugins.java:java",
- "uuid": "acfc6a2d-d28c-4302-987c-697544fb096e",
- "name": "MAIF :: Cobol plugin",
- "isComparable": true,
- "canBeFavorite": true,
- "isFavorite": false,
- "dashboards": [
- {
- "key": 1,
- "name": "Main Dashboard"
- }
- ],
- "version": "2.9-SNAPSHOT",
- "snapshotDate": "2015-03-03T09:43:37+01:00",
- "extensions": [],
- "configuration": {
- "showSettings": true,
- "showQualityProfiles": true,
- "showQualityGates": true,
- "showManualMeasures": true,
- "showActionPlans": true,
- "showLinks": true,
- "showPermissions": true,
- "showHistory": true,
- "showUpdateKey": true,
- "showDeletion": true,
- "extensions": []
- },
- "breadcrumbs": [
- {
- "key": "/dashboard/index?id=org.codehaus.sonar-plugins.java%3Ajava",
- "name": "SonarQube Java",
- "qualifier": "TRK"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/nav-spec/favorite.json b/server/sonar-web/src/test/json/nav-spec/favorite.json
deleted file mode 100644
index da8f54ec6fc..00000000000
--- a/server/sonar-web/src/test/json/nav-spec/favorite.json
+++ /dev/null
@@ -1,20 +0,0 @@
-[
- {
- "key": "favorite-project-key",
- "name": "Favorite Project",
- "lname": "Favorite Project",
- "qualifier": "TRK"
- },
- {
- "key": "favorite-file-key",
- "name": "FavoriteFile.java",
- "lname": "src/main/java/com/example/FavoriteFile.java",
- "qualifier": "FIL"
- },
- {
- "key": "quality-project",
- "name": "Quality Project",
- "lname": "Quality Project",
- "qualifier": "TRK"
- }
-]
diff --git a/server/sonar-web/src/test/json/nav-spec/global.json b/server/sonar-web/src/test/json/nav-spec/global.json
deleted file mode 100644
index 709993d8f2a..00000000000
--- a/server/sonar-web/src/test/json/nav-spec/global.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "globalDashboards": [
- {
- "key": 1,
- "name": "First Global Dashboard"
- },
- {
- "key": 2,
- "name": "Second Global Dashboard"
- },
- {
- "key": 3,
- "name": "Third Global Dashboard"
- },
- {
- "key": 50,
- "name": "Quality"
- }
- ],
- "globalPages": [
- {
- "url": "/page/1",
- "name": "First Global Page"
- },
- {
- "url": "/page/2",
- "name": "Second Global Page"
- },
- {
- "url": "/page/3",
- "name": "Third Global Page"
- }
- ],
- "qualifiers": [
- "TRK",
- "VW",
- "DEV"
- ]
-}
diff --git a/server/sonar-web/src/test/json/nav-spec/search.json b/server/sonar-web/src/test/json/nav-spec/search.json
deleted file mode 100644
index 7596000da7b..00000000000
--- a/server/sonar-web/src/test/json/nav-spec/search.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "total": 3,
- "results": [
- {
- "q": "TRK",
- "name": "Projects",
- "items": [
- {
- "key": "org.codehaus.sonar-plugins.java:java",
- "name": "SonarQube Java"
- }
- ]
- },
- {
- "q": "BRC",
- "name": "Sub-projects",
- "items": [
- {
- "key": "org.codehaus.sonar-plugins.java:java-squid",
- "name": "SonarQube Java :: Squid"
- },
- {
- "key": "org.codehaus.sonar-plugins.java:java-checks",
- "name": "SonarQube Java :: Checks"
- }
- ]
- },
- {
- "q": "DIR",
- "name": "Directories",
- "items": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/permissions/global-permissions.json b/server/sonar-web/src/test/json/permissions/global-permissions.json
deleted file mode 100644
index 3ee0d8bed14..00000000000
--- a/server/sonar-web/src/test/json/permissions/global-permissions.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "permissions": [
- {
- "key": "admin",
- "name": "Administer System",
- "description": "Ability to perform all administration functions for the instance: global configuration and personalization of default dashboards.",
- "usersCount": 1,
- "groupsCount": 5
- },
- {
- "key": "profileadmin",
- "name": "Administer Quality Profiles and Gates",
- "description": "Ability to perform any action on the quality profiles and gates.",
- "usersCount": 1,
- "groupsCount": 0
- },
- {
- "key": "shareDashboard",
- "name": "Share Dashboards And Filters",
- "description": "Ability to share dashboards, issue filters and measure filters.",
- "usersCount": 0,
- "groupsCount": 1
- },
- {
- "key": "scan",
- "name": "Execute Analysis",
- "description": "Ability to execute analyses, and to get all settings required to perform the analysis, even the secured ones like the scm account password, the jira account password, and so on.",
- "usersCount": 0,
- "groupsCount": 1
- },
- {
- "key": "dryRunScan",
- "name": "Execute Preview Analysis",
- "description": "Ability to execute preview analysis (results are not pushed to the server). This permission does not include the ability to access secured settings such as the scm account password, the jira account password, and so on.<br/>This permission is <em>required</em> to execute preview analysis in Eclipse or via the Issues Report plugin.",
- "usersCount": 0,
- "groupsCount": 1
- },
- {
- "key": "provisioning",
- "name": "Provision Projects",
- "description": "Ability to initialize project structure before first analysis.",
- "usersCount": 0,
- "groupsCount": 1
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/permissions/groups.json b/server/sonar-web/src/test/json/permissions/groups.json
deleted file mode 100644
index 89da5dab357..00000000000
--- a/server/sonar-web/src/test/json/permissions/groups.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "groups": [
- {
- "id": "3",
- "name": "1",
- "description": "",
- "selected": true
- },
- {
- "id": "4",
- "name": "2",
- "description": "",
- "selected": true
- },
- {
- "id": "5",
- "name": "3",
- "description": "",
- "selected": true
- }
- ],
- "paging": {
- "pageIndex": 1,
- "pageSize": 3,
- "total": 5
- }
-}
diff --git a/server/sonar-web/src/test/json/permissions/permission-templates.json b/server/sonar-web/src/test/json/permissions/permission-templates.json
deleted file mode 100644
index b34f812102d..00000000000
--- a/server/sonar-web/src/test/json/permissions/permission-templates.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "permissionTemplates": [
- {
- "id": "default_template",
- "name": "Default template",
- "description": "This permission template will be used as default when no other permission configuration is available",
- "projectKeyPattern": "abc.*",
- "createdAt": "2015-08-07T15:30:59+0200",
- "updatedAt": "2015-09-14T12:56:21+0200",
- "permissions": [
- {
- "key": "admin",
- "usersCount": 0,
- "groupsCount": 1
- },
- {
- "key": "codeviewer",
- "usersCount": 0,
- "groupsCount": 1
- },
- {
- "key": "issueadmin",
- "usersCount": 0,
- "groupsCount": 1
- },
- {
- "key": "user",
- "usersCount": 0,
- "groupsCount": 1
- }
- ]
- },
- {
- "id": "test_20150820_133222",
- "name": "test",
- "description": "",
- "projectKeyPattern": "Javascript*",
- "createdAt": "2015-08-20T13:32:22+0200",
- "updatedAt": "2015-09-14T12:07:26+0200",
- "permissions": [
- {
- "key": "user",
- "usersCount": 1,
- "groupsCount": 0
- }
- ]
- },
- {
- "id": "AU_Lp7-59jciAH96Rd8H",
- "name": "test2",
- "description": "Default permission template",
- "projectKeyPattern": "",
- "createdAt": "2015-09-14T13:40:12+0200",
- "updatedAt": "2015-09-14T13:41:23+0200"
- }
- ],
- "defaultTemplates": [
- {
- "templateId": "test_20150820_133222",
- "qualifier": "VW"
- },
- {
- "templateId": "AU_Lp7-59jciAH96Rd8H",
- "qualifier": "TRK"
- }
- ],
- "permissions": [
- {
- "key": "user",
- "name": "Browse",
- "description": "Access a project, browse its measures, and create/edit issues for it."
- },
- {
- "key": "admin",
- "name": "Administer",
- "description": "Access project settings and perform administration tasks. (Users will also need \"Browse\" permission)"
- },
- {
- "key": "issueadmin",
- "name": "Administer Issues",
- "description": "Perform advanced editing on issues: marking an issue False Positive / Won't Fix, and changing an Issue's severity. (Users will also need \"Browse\" permission)"
- },
- {
- "key": "codeviewer",
- "name": "See Source Code",
- "description": "View the project's source code. (Users will also need \"Browse\" permission)"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/permissions/project-permissions-changed.json b/server/sonar-web/src/test/json/permissions/project-permissions-changed.json
deleted file mode 100644
index 39ad975d06d..00000000000
--- a/server/sonar-web/src/test/json/permissions/project-permissions-changed.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "projects": [
- {
- "id": "10c394cc-c37c-4cf0-97b9-360165c47270",
- "key": "my-project",
- "name": "My Project",
- "permissions": [
- {
- "key": "admin",
- "usersCount": 11,
- "groupsCount": 12
- },
- {
- "key": "codeviewer",
- "usersCount": 13,
- "groupsCount": 14
- }
- ]
- },
- {
- "id": "5d2408c9-b5c6-4426-8ee8-05be930a5f62",
- "key": "another-project",
- "name": "Another Project",
- "permissions": [
- {
- "key": "admin",
- "usersCount": 15,
- "groupsCount": 16
- },
- {
- "key": "codeviewer",
- "usersCount": 17,
- "groupsCount": 18
- }
- ]
- }
- ],
- "permissions": [
- {
- "key": "admin",
- "name": "Administer",
- "description": "Ability to access project settings and perform administration tasks. (Users will also need \"Browse\" permission)"
- },
- {
- "key": "codeviewer",
- "name": "See Source Code",
- "description": "Ability to view the project's source code. (Users will also need \"Browse\" permission)"
- }
- ],
- "paging": {
- "pageIndex": 1,
- "pageSize": 25,
- "total": 2
- }
-}
diff --git a/server/sonar-web/src/test/json/permissions/project-permissions.json b/server/sonar-web/src/test/json/permissions/project-permissions.json
deleted file mode 100644
index 92ec017304c..00000000000
--- a/server/sonar-web/src/test/json/permissions/project-permissions.json
+++ /dev/null
@@ -1,55 +0,0 @@
-{
- "projects": [
- {
- "id": "10c394cc-c37c-4cf0-97b9-360165c47270",
- "key": "my-project",
- "name": "My Project",
- "permissions": [
- {
- "key": "admin",
- "usersCount": 1,
- "groupsCount": 2
- },
- {
- "key": "codeviewer",
- "usersCount": 3,
- "groupsCount": 4
- }
- ]
- },
- {
- "id": "5d2408c9-b5c6-4426-8ee8-05be930a5f62",
- "key": "another-project",
- "name": "Another Project",
- "permissions": [
- {
- "key": "admin",
- "usersCount": 5,
- "groupsCount": 6
- },
- {
- "key": "codeviewer",
- "usersCount": 7,
- "groupsCount": 8
- }
- ]
- }
- ],
- "permissions": [
- {
- "key": "admin",
- "name": "Administer",
- "description": "Ability to access project settings and perform administration tasks. (Users will also need \"Browse\" permission)"
- },
- {
- "key": "codeviewer",
- "name": "See Source Code",
- "description": "Ability to view the project's source code. (Users will also need \"Browse\" permission)"
- }
- ],
- "paging": {
- "pageIndex": 1,
- "pageSize": 25,
- "total": 2
- }
-}
diff --git a/server/sonar-web/src/test/json/permissions/users.json b/server/sonar-web/src/test/json/permissions/users.json
deleted file mode 100644
index 9945a28ae43..00000000000
--- a/server/sonar-web/src/test/json/permissions/users.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "users": [
- {
- "login": "admin",
- "name": "Administrator",
- "selected": true
- }
- ],
- "paging": {
- "pageIndex": 1,
- "pageSize": 3,
- "total": 1
- }
-}
diff --git a/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-date.json b/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-date.json
deleted file mode 100644
index 54153d9897b..00000000000
--- a/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-date.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "createdAt",
- "values": [
- {
- "val": "2011-01-01T01:00:00+0000",
- "count": 72
- },
- {
- "val": "2012-01-01T01:00:00+0000",
- "count": 64
- },
- {
- "val": "2013-01-01T01:00:00+0000",
- "count": 1262
- },
- {
- "val": "2014-01-01T01:00:00+0000",
- "count": 3729
- },
- {
- "val": "2015-01-01T01:00:00+0000",
- "count": 1724
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity-with-IGNORED-differential-period.json b/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity-with-IGNORED-differential-period.json
deleted file mode 100644
index afa5ed4f5cc..00000000000
--- a/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity-with-IGNORED-differential-period.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 549,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 306
- },
- {
- "val": "MINOR",
- "count": 135
- },
- {
- "val": "CRITICAL",
- "count": 59
- },
- {
- "val": "INFO",
- "count": 49
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity-with-differential-period.json b/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity-with-differential-period.json
deleted file mode 100644
index afa5ed4f5cc..00000000000
--- a/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity-with-differential-period.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 549,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 306
- },
- {
- "val": "MINOR",
- "count": 135
- },
- {
- "val": "CRITICAL",
- "count": 59
- },
- {
- "val": "INFO",
- "count": 49
- },
- {
- "val": "BLOCKER",
- "count": 0
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity.json b/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity.json
deleted file mode 100644
index f261766748c..00000000000
--- a/server/sonar-web/src/test/json/project-issues-filter-widget/unresolved-issues-by-severity.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "total": 6851,
- "p": 1,
- "ps": 1,
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 5027
- },
- {
- "val": "INFO",
- "count": 1178
- },
- {
- "val": "MINOR",
- "count": 540
- },
- {
- "val": "CRITICAL",
- "count": 105
- },
- {
- "val": "BLOCKER",
- "count": 1
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/provisioning-spec/delete-error.json b/server/sonar-web/src/test/json/provisioning-spec/delete-error.json
deleted file mode 100644
index dc1b261128c..00000000000
--- a/server/sonar-web/src/test/json/provisioning-spec/delete-error.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "errors": [
- {
- "msg": "Some error message"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/provisioning-spec/error.json b/server/sonar-web/src/test/json/provisioning-spec/error.json
deleted file mode 100644
index 9f5a49f4904..00000000000
--- a/server/sonar-web/src/test/json/provisioning-spec/error.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "err_code": 400,
- "err_msg": "error message"
-}
diff --git a/server/sonar-web/src/test/json/provisioning-spec/search-big-1.json b/server/sonar-web/src/test/json/provisioning-spec/search-big-1.json
deleted file mode 100644
index bbe3a9bd79e..00000000000
--- a/server/sonar-web/src/test/json/provisioning-spec/search-big-1.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "projects": [
- {
- "uuid": "id-sonarqube",
- "key": "sonarqube",
- "name": "SonarQube",
- "creationDate": "2015-05-25T16:49:16+0200"
- },
- {
- "uuid": "id-javascript",
- "key": "javascript",
- "name": "JavaScript",
- "creationDate": "2015-05-25T16:49:41+0200"
- }
- ],
- "total": 3,
- "p": 1,
- "ps": 2
-}
diff --git a/server/sonar-web/src/test/json/provisioning-spec/search-big-2.json b/server/sonar-web/src/test/json/provisioning-spec/search-big-2.json
deleted file mode 100644
index ac0bb15c13f..00000000000
--- a/server/sonar-web/src/test/json/provisioning-spec/search-big-2.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "projects": [
- {
- "uuid": "id-sonarqube-release",
- "key": "sonarqube:release",
- "name": "SonarQube",
- "creationDate": "2015-05-25T16:49:30+0200"
- }
- ],
- "total": 3,
- "p": 2,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/provisioning-spec/search-created.json b/server/sonar-web/src/test/json/provisioning-spec/search-created.json
deleted file mode 100644
index c750b72665b..00000000000
--- a/server/sonar-web/src/test/json/provisioning-spec/search-created.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "projects": [
- {
- "uuid": "id-sonarqube",
- "key": "sonarqube",
- "name": "SonarQube",
- "creationDate": "2015-05-25T16:49:16+0200"
- },
- {
- "uuid": "id-javascript",
- "key": "javascript",
- "name": "JavaScript",
- "creationDate": "2015-05-25T16:49:41+0200"
- },
- {
- "uuid": "id-sonarqube-release",
- "key": "sonarqube:release",
- "name": "SonarQube",
- "creationDate": "2015-05-25T16:49:30+0200"
- },
- {
- "uuid": "id-key-branch",
- "key": "key:branch",
- "name": "name",
- "creationDate": "2015-05-25T16:49:30+0200"
- }
- ],
- "total": 4,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/provisioning-spec/search-deleted.json b/server/sonar-web/src/test/json/provisioning-spec/search-deleted.json
deleted file mode 100644
index 85e5bca139e..00000000000
--- a/server/sonar-web/src/test/json/provisioning-spec/search-deleted.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "projects": [
- {
- "uuid": "id-javascript",
- "key": "javascript",
- "name": "JavaScript",
- "creationDate": "2015-05-25T16:49:41+0200"
- }
- ],
- "total": 1,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/provisioning-spec/search-filtered.json b/server/sonar-web/src/test/json/provisioning-spec/search-filtered.json
deleted file mode 100644
index 85e5bca139e..00000000000
--- a/server/sonar-web/src/test/json/provisioning-spec/search-filtered.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "projects": [
- {
- "uuid": "id-javascript",
- "key": "javascript",
- "name": "JavaScript",
- "creationDate": "2015-05-25T16:49:41+0200"
- }
- ],
- "total": 1,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/provisioning-spec/search.json b/server/sonar-web/src/test/json/provisioning-spec/search.json
deleted file mode 100644
index 9697960ec61..00000000000
--- a/server/sonar-web/src/test/json/provisioning-spec/search.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "projects": [
- {
- "uuid": "id-sonarqube",
- "key": "sonarqube",
- "name": "SonarQube",
- "creationDate": "2015-05-25T16:49:16+0200"
- },
- {
- "uuid": "id-javascript",
- "key": "javascript",
- "name": "JavaScript",
- "creationDate": "2015-05-25T16:49:41+0200"
- },
- {
- "uuid": "id-sonarqube-release",
- "key": "sonarqube:release",
- "name": "SonarQube",
- "creationDate": "2015-05-25T16:49:30+0200"
- }
- ],
- "total": 3,
- "p": 1,
- "ps": 100
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/app-anonymous.json b/server/sonar-web/src/test/json/quality-gates-spec/app-anonymous.json
deleted file mode 100644
index ddbb887c940..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/app-anonymous.json
+++ /dev/null
@@ -1,835 +0,0 @@
-{
- "edit": false,
- "periods": [
- {
- "key": 1,
- "text": "since previous analysis"
- },
- {
- "key": 2,
- "text": "over 30 days"
- },
- {
- "key": 3,
- "text": "since previous version"
- },
- {
- "key": 4,
- "text": "over period 4 - defined at project level"
- },
- {
- "key": 5,
- "text": "over period 5 - defined at project level"
- }
- ],
- "metrics": [
- {
- "id": 1,
- "key": "lines",
- "name": "Lines",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 101,
- "key": "new_critical_violations",
- "name": "New Critical issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 102,
- "key": "new_major_violations",
- "name": "New Major issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 103,
- "key": "new_minor_violations",
- "name": "New Minor issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 104,
- "key": "new_info_violations",
- "name": "New Info issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 105,
- "key": "false_positive_issues",
- "name": "False positive issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 106,
- "key": "open_issues",
- "name": "Open issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 12,
- "key": "statements",
- "name": "Statements",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 19,
- "key": "commented_out_code_lines",
- "name": "Commented-out LOC",
- "type": "INT",
- "domain": "Documentation",
- "hidden": true
- },
- {
- "id": 20,
- "key": "complexity",
- "name": "Complexity",
- "type": "INT",
- "domain": "Complexity",
- "hidden": false
- },
- {
- "id": 135,
- "key": "sqale_debt_ratio",
- "name": "SQALE Technical Debt Ratio",
- "type": "PERCENT",
- "domain": "Technical Debt",
- "hidden": false
- },
- {
- "id": 66,
- "key": "it_branch_coverage",
- "name": "IT condition coverage",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 67,
- "key": "new_it_branch_coverage",
- "name": "Condition coverage by IT on new code",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 70,
- "key": "overall_coverage",
- "name": "Overall coverage",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 71,
- "key": "new_overall_coverage",
- "name": "Overall coverage on new code",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 72,
- "key": "overall_lines_to_cover",
- "name": "Overall lines to cover",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": true
- },
- {
- "id": 90,
- "key": "duplicated_lines_density",
- "name": "Duplicated lines (%)",
- "type": "PERCENT",
- "domain": "Duplication",
- "hidden": false
- },
- {
- "id": 131,
- "key": "sqale_index",
- "name": "Technical Debt",
- "type": "WORK_DUR",
- "domain": "Technical Debt",
- "hidden": false
- },
- {
- "id": 132,
- "key": "new_technical_debt",
- "name": "Technical Debt on new code",
- "type": "WORK_DUR",
- "domain": "Technical Debt",
- "hidden": false
- },
- {
- "id": 144,
- "key": "burned_budget",
- "name": "Burned budget",
- "type": "FLOAT",
- "domain": "Management",
- "hidden": false
- },
- {
- "id": 145,
- "key": "business_value",
- "name": "Business value",
- "type": "FLOAT",
- "domain": "Management",
- "hidden": false
- },
- {
- "id": 146,
- "key": "team_size",
- "name": "Team size",
- "type": "INT",
- "domain": "Management",
- "hidden": false
- },
- {
- "id": 141,
- "key": "profile_version",
- "name": "Profile version",
- "type": "INT",
- "domain": "General",
- "hidden": true
- },
- {
- "id": 143,
- "key": "days_since_last_commit",
- "name": "Days since last commit",
- "type": "INT",
- "domain": "SCM",
- "hidden": false
- },
- {
- "id": 41,
- "key": "new_uncovered_lines",
- "name": "Uncovered lines on new code",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 42,
- "key": "line_coverage",
- "name": "Line coverage",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 43,
- "key": "new_line_coverage",
- "name": "Line coverage on new code",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 45,
- "key": "conditions_to_cover",
- "name": "Branches to cover",
- "type": "INT",
- "domain": "Tests",
- "hidden": true
- },
- {
- "id": 46,
- "key": "new_conditions_to_cover",
- "name": "Branches to cover on new code",
- "type": "INT",
- "domain": "Tests",
- "hidden": true
- },
- {
- "id": 47,
- "key": "uncovered_conditions",
- "name": "Uncovered branches",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 48,
- "key": "new_uncovered_conditions",
- "name": "Uncovered branches on new code",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 49,
- "key": "branch_coverage",
- "name": "Condition coverage",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 50,
- "key": "new_branch_coverage",
- "name": "Condition coverage on new code",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 53,
- "key": "it_coverage",
- "name": "IT coverage",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 54,
- "key": "new_it_coverage",
- "name": "Coverage by IT on new code",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 55,
- "key": "it_lines_to_cover",
- "name": "IT lines to cover",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": true
- },
- {
- "id": 56,
- "key": "new_it_lines_to_cover",
- "name": "Lines to cover by IT on new code",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 57,
- "key": "it_uncovered_lines",
- "name": "IT uncovered lines",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 58,
- "key": "new_it_uncovered_lines",
- "name": "Uncovered lines by IT on new code",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 59,
- "key": "it_line_coverage",
- "name": "IT line coverage",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 60,
- "key": "new_it_line_coverage",
- "name": "Line coverage by IT on new code",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 73,
- "key": "new_overall_lines_to_cover",
- "name": "Overall lines to cover on new code",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 74,
- "key": "overall_uncovered_lines",
- "name": "Overall uncovered lines",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 75,
- "key": "new_overall_uncovered_lines",
- "name": "Overall uncovered lines on new code",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 76,
- "key": "overall_line_coverage",
- "name": "Overall line coverage",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 77,
- "key": "new_overall_line_coverage",
- "name": "Overall line coverage on new code",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 2,
- "key": "generated_lines",
- "name": "Generated Lines",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 3,
- "key": "ncloc",
- "name": "Lines of code",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 5,
- "key": "generated_ncloc",
- "name": "Generated lines of code",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 6,
- "key": "classes",
- "name": "Classes",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 7,
- "key": "files",
- "name": "Files",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 8,
- "key": "directories",
- "name": "Directories",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 9,
- "key": "packages",
- "name": "Packages",
- "type": "INT",
- "domain": "Size",
- "hidden": true
- },
- {
- "id": 10,
- "key": "functions",
- "name": "Functions",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 79,
- "key": "overall_conditions_to_cover",
- "name": "Overall branches to cover",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": true
- },
- {
- "id": 80,
- "key": "new_overall_conditions_to_cover",
- "name": "Overall branches to cover on new code",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": true
- },
- {
- "id": 81,
- "key": "overall_uncovered_conditions",
- "name": "Overall uncovered branches",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 82,
- "key": "new_overall_uncovered_conditions",
- "name": "Overall uncovered branches on new code",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 83,
- "key": "overall_branch_coverage",
- "name": "Overall condition coverage",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 84,
- "key": "new_overall_branch_coverage",
- "name": "Overall condition coverage on new code",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 87,
- "key": "duplicated_lines",
- "name": "Duplicated lines",
- "type": "INT",
- "domain": "Duplication",
- "hidden": false
- },
- {
- "id": 88,
- "key": "duplicated_blocks",
- "name": "Duplicated blocks",
- "type": "INT",
- "domain": "Duplication",
- "hidden": false
- },
- {
- "id": 89,
- "key": "duplicated_files",
- "name": "Duplicated files",
- "type": "INT",
- "domain": "Duplication",
- "hidden": false
- },
- {
- "id": 25,
- "key": "function_complexity",
- "name": "Complexity /function",
- "type": "FLOAT",
- "domain": "Complexity",
- "hidden": false
- },
- {
- "id": 29,
- "key": "tests",
- "name": "Unit tests",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 30,
- "key": "test_execution_time",
- "name": "Unit tests duration",
- "type": "MILLISEC",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 31,
- "key": "test_errors",
- "name": "Unit test errors",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 32,
- "key": "skipped_tests",
- "name": "Skipped unit tests",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 33,
- "key": "test_failures",
- "name": "Unit test failures",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 34,
- "key": "test_success_density",
- "name": "Unit test success (%)",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 36,
- "key": "coverage",
- "name": "Coverage",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 38,
- "key": "lines_to_cover",
- "name": "Lines to cover",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 134,
- "key": "development_cost",
- "name": "SQALE Development Cost",
- "type": "STRING",
- "domain": "Technical Debt",
- "hidden": true
- },
- {
- "id": 37,
- "key": "new_coverage",
- "name": "Coverage on new code",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 107,
- "key": "reopened_issues",
- "name": "Reopened issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 108,
- "key": "confirmed_issues",
- "name": "Confirmed issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 13,
- "key": "public_api",
- "name": "Public API",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 14,
- "key": "projects",
- "name": "Projects",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 15,
- "key": "comment_lines",
- "name": "Comment lines",
- "type": "INT",
- "domain": "Documentation",
- "hidden": false
- },
- {
- "id": 16,
- "key": "comment_lines_density",
- "name": "Comments (%)",
- "type": "PERCENT",
- "domain": "Documentation",
- "hidden": false
- },
- {
- "id": 17,
- "key": "public_documented_api_density",
- "name": "Public documented API (%)",
- "type": "PERCENT",
- "domain": "Documentation",
- "hidden": false
- },
- {
- "id": 18,
- "key": "public_undocumented_api",
- "name": "Public undocumented API",
- "type": "INT",
- "domain": "Documentation",
- "hidden": false
- },
- {
- "id": 21,
- "key": "file_complexity",
- "name": "Complexity /file",
- "type": "FLOAT",
- "domain": "Complexity",
- "hidden": false
- },
- {
- "id": 22,
- "key": "complexity_in_classes",
- "name": "Complexity in classes",
- "type": "INT",
- "domain": "Complexity",
- "hidden": true
- },
- {
- "id": 23,
- "key": "class_complexity",
- "name": "Complexity /class",
- "type": "FLOAT",
- "domain": "Complexity",
- "hidden": false
- },
- {
- "id": 24,
- "key": "complexity_in_functions",
- "name": "Complexity in functions",
- "type": "INT",
- "domain": "Complexity",
- "hidden": true
- },
- {
- "id": 39,
- "key": "new_lines_to_cover",
- "name": "Lines to cover on new code",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 62,
- "key": "it_conditions_to_cover",
- "name": "IT branches to cover",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": true
- },
- {
- "id": 40,
- "key": "uncovered_lines",
- "name": "Uncovered lines",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 11,
- "key": "accessors",
- "name": "Accessors",
- "type": "INT",
- "domain": "Size",
- "hidden": true
- },
- {
- "id": 63,
- "key": "new_it_conditions_to_cover",
- "name": "Branches to cover by IT on new code",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": true
- },
- {
- "id": 64,
- "key": "it_uncovered_conditions",
- "name": "IT uncovered branches",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 65,
- "key": "new_it_uncovered_conditions",
- "name": "Uncovered branches by IT on new code",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 93,
- "key": "violations",
- "name": "Issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 94,
- "key": "blocker_violations",
- "name": "Blocker issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 95,
- "key": "critical_violations",
- "name": "Critical issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 96,
- "key": "major_violations",
- "name": "Major issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 97,
- "key": "minor_violations",
- "name": "Minor issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 98,
- "key": "info_violations",
- "name": "Info issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 99,
- "key": "new_violations",
- "name": "New issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 100,
- "key": "new_blocker_violations",
- "name": "New Blocker issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/app.json b/server/sonar-web/src/test/json/quality-gates-spec/app.json
deleted file mode 100644
index 4908fd2b2fc..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/app.json
+++ /dev/null
@@ -1,835 +0,0 @@
-{
- "edit": true,
- "periods": [
- {
- "key": 1,
- "text": "since previous analysis"
- },
- {
- "key": 2,
- "text": "over 30 days"
- },
- {
- "key": 3,
- "text": "since previous version"
- },
- {
- "key": 4,
- "text": "over period 4 - defined at project level"
- },
- {
- "key": 5,
- "text": "over period 5 - defined at project level"
- }
- ],
- "metrics": [
- {
- "id": 1,
- "key": "lines",
- "name": "Lines",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 101,
- "key": "new_critical_violations",
- "name": "New Critical issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 102,
- "key": "new_major_violations",
- "name": "New Major issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 103,
- "key": "new_minor_violations",
- "name": "New Minor issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 104,
- "key": "new_info_violations",
- "name": "New Info issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 105,
- "key": "false_positive_issues",
- "name": "False positive issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 106,
- "key": "open_issues",
- "name": "Open issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 12,
- "key": "statements",
- "name": "Statements",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 19,
- "key": "commented_out_code_lines",
- "name": "Commented-out LOC",
- "type": "INT",
- "domain": "Documentation",
- "hidden": true
- },
- {
- "id": 20,
- "key": "complexity",
- "name": "Complexity",
- "type": "INT",
- "domain": "Complexity",
- "hidden": false
- },
- {
- "id": 135,
- "key": "sqale_debt_ratio",
- "name": "SQALE Technical Debt Ratio",
- "type": "PERCENT",
- "domain": "Technical Debt",
- "hidden": false
- },
- {
- "id": 66,
- "key": "it_branch_coverage",
- "name": "IT condition coverage",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 67,
- "key": "new_it_branch_coverage",
- "name": "Condition coverage by IT on new code",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 70,
- "key": "overall_coverage",
- "name": "Overall coverage",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 71,
- "key": "new_overall_coverage",
- "name": "Overall coverage on new code",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 72,
- "key": "overall_lines_to_cover",
- "name": "Overall lines to cover",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": true
- },
- {
- "id": 90,
- "key": "duplicated_lines_density",
- "name": "Duplicated lines (%)",
- "type": "PERCENT",
- "domain": "Duplication",
- "hidden": false
- },
- {
- "id": 131,
- "key": "sqale_index",
- "name": "Technical Debt",
- "type": "WORK_DUR",
- "domain": "Technical Debt",
- "hidden": false
- },
- {
- "id": 132,
- "key": "new_technical_debt",
- "name": "Technical Debt on new code",
- "type": "WORK_DUR",
- "domain": "Technical Debt",
- "hidden": false
- },
- {
- "id": 144,
- "key": "burned_budget",
- "name": "Burned budget",
- "type": "FLOAT",
- "domain": "Management",
- "hidden": false
- },
- {
- "id": 145,
- "key": "business_value",
- "name": "Business value",
- "type": "FLOAT",
- "domain": "Management",
- "hidden": false
- },
- {
- "id": 146,
- "key": "team_size",
- "name": "Team size",
- "type": "INT",
- "domain": "Management",
- "hidden": false
- },
- {
- "id": 141,
- "key": "profile_version",
- "name": "Profile version",
- "type": "INT",
- "domain": "General",
- "hidden": true
- },
- {
- "id": 143,
- "key": "days_since_last_commit",
- "name": "Days since last commit",
- "type": "INT",
- "domain": "SCM",
- "hidden": false
- },
- {
- "id": 41,
- "key": "new_uncovered_lines",
- "name": "Uncovered lines on new code",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 42,
- "key": "line_coverage",
- "name": "Line coverage",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 43,
- "key": "new_line_coverage",
- "name": "Line coverage on new code",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 45,
- "key": "conditions_to_cover",
- "name": "Branches to cover",
- "type": "INT",
- "domain": "Tests",
- "hidden": true
- },
- {
- "id": 46,
- "key": "new_conditions_to_cover",
- "name": "Branches to cover on new code",
- "type": "INT",
- "domain": "Tests",
- "hidden": true
- },
- {
- "id": 47,
- "key": "uncovered_conditions",
- "name": "Uncovered branches",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 48,
- "key": "new_uncovered_conditions",
- "name": "Uncovered branches on new code",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 49,
- "key": "branch_coverage",
- "name": "Condition coverage",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 50,
- "key": "new_branch_coverage",
- "name": "Condition coverage on new code",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 53,
- "key": "it_coverage",
- "name": "IT coverage",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 54,
- "key": "new_it_coverage",
- "name": "Coverage by IT on new code",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 55,
- "key": "it_lines_to_cover",
- "name": "IT lines to cover",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": true
- },
- {
- "id": 56,
- "key": "new_it_lines_to_cover",
- "name": "Lines to cover by IT on new code",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 57,
- "key": "it_uncovered_lines",
- "name": "IT uncovered lines",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 58,
- "key": "new_it_uncovered_lines",
- "name": "Uncovered lines by IT on new code",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 59,
- "key": "it_line_coverage",
- "name": "IT line coverage",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 60,
- "key": "new_it_line_coverage",
- "name": "Line coverage by IT on new code",
- "type": "PERCENT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 73,
- "key": "new_overall_lines_to_cover",
- "name": "Overall lines to cover on new code",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 74,
- "key": "overall_uncovered_lines",
- "name": "Overall uncovered lines",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 75,
- "key": "new_overall_uncovered_lines",
- "name": "Overall uncovered lines on new code",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 76,
- "key": "overall_line_coverage",
- "name": "Overall line coverage",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 77,
- "key": "new_overall_line_coverage",
- "name": "Overall line coverage on new code",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 2,
- "key": "generated_lines",
- "name": "Generated Lines",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 3,
- "key": "ncloc",
- "name": "Lines of code",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 5,
- "key": "generated_ncloc",
- "name": "Generated lines of code",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 6,
- "key": "classes",
- "name": "Classes",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 7,
- "key": "files",
- "name": "Files",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 8,
- "key": "directories",
- "name": "Directories",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 9,
- "key": "packages",
- "name": "Packages",
- "type": "INT",
- "domain": "Size",
- "hidden": true
- },
- {
- "id": 10,
- "key": "functions",
- "name": "Functions",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 79,
- "key": "overall_conditions_to_cover",
- "name": "Overall branches to cover",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": true
- },
- {
- "id": 80,
- "key": "new_overall_conditions_to_cover",
- "name": "Overall branches to cover on new code",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": true
- },
- {
- "id": 81,
- "key": "overall_uncovered_conditions",
- "name": "Overall uncovered branches",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 82,
- "key": "new_overall_uncovered_conditions",
- "name": "Overall uncovered branches on new code",
- "type": "INT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 83,
- "key": "overall_branch_coverage",
- "name": "Overall condition coverage",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 84,
- "key": "new_overall_branch_coverage",
- "name": "Overall condition coverage on new code",
- "type": "PERCENT",
- "domain": "Tests (Overall)",
- "hidden": false
- },
- {
- "id": 87,
- "key": "duplicated_lines",
- "name": "Duplicated lines",
- "type": "INT",
- "domain": "Duplication",
- "hidden": false
- },
- {
- "id": 88,
- "key": "duplicated_blocks",
- "name": "Duplicated blocks",
- "type": "INT",
- "domain": "Duplication",
- "hidden": false
- },
- {
- "id": 89,
- "key": "duplicated_files",
- "name": "Duplicated files",
- "type": "INT",
- "domain": "Duplication",
- "hidden": false
- },
- {
- "id": 25,
- "key": "function_complexity",
- "name": "Complexity /function",
- "type": "FLOAT",
- "domain": "Complexity",
- "hidden": false
- },
- {
- "id": 29,
- "key": "tests",
- "name": "Unit tests",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 30,
- "key": "test_execution_time",
- "name": "Unit tests duration",
- "type": "MILLISEC",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 31,
- "key": "test_errors",
- "name": "Unit test errors",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 32,
- "key": "skipped_tests",
- "name": "Skipped unit tests",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 33,
- "key": "test_failures",
- "name": "Unit test failures",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 34,
- "key": "test_success_density",
- "name": "Unit test success (%)",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 36,
- "key": "coverage",
- "name": "Coverage",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 38,
- "key": "lines_to_cover",
- "name": "Lines to cover",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 134,
- "key": "development_cost",
- "name": "SQALE Development Cost",
- "type": "STRING",
- "domain": "Technical Debt",
- "hidden": true
- },
- {
- "id": 37,
- "key": "new_coverage",
- "name": "Coverage on new code",
- "type": "PERCENT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 107,
- "key": "reopened_issues",
- "name": "Reopened issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 108,
- "key": "confirmed_issues",
- "name": "Confirmed issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 13,
- "key": "public_api",
- "name": "Public API",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 14,
- "key": "projects",
- "name": "Projects",
- "type": "INT",
- "domain": "Size",
- "hidden": false
- },
- {
- "id": 15,
- "key": "comment_lines",
- "name": "Comment lines",
- "type": "INT",
- "domain": "Documentation",
- "hidden": false
- },
- {
- "id": 16,
- "key": "comment_lines_density",
- "name": "Comments (%)",
- "type": "PERCENT",
- "domain": "Documentation",
- "hidden": false
- },
- {
- "id": 17,
- "key": "public_documented_api_density",
- "name": "Public documented API (%)",
- "type": "PERCENT",
- "domain": "Documentation",
- "hidden": false
- },
- {
- "id": 18,
- "key": "public_undocumented_api",
- "name": "Public undocumented API",
- "type": "INT",
- "domain": "Documentation",
- "hidden": false
- },
- {
- "id": 21,
- "key": "file_complexity",
- "name": "Complexity /file",
- "type": "FLOAT",
- "domain": "Complexity",
- "hidden": false
- },
- {
- "id": 22,
- "key": "complexity_in_classes",
- "name": "Complexity in classes",
- "type": "INT",
- "domain": "Complexity",
- "hidden": true
- },
- {
- "id": 23,
- "key": "class_complexity",
- "name": "Complexity /class",
- "type": "FLOAT",
- "domain": "Complexity",
- "hidden": false
- },
- {
- "id": 24,
- "key": "complexity_in_functions",
- "name": "Complexity in functions",
- "type": "INT",
- "domain": "Complexity",
- "hidden": true
- },
- {
- "id": 39,
- "key": "new_lines_to_cover",
- "name": "Lines to cover on new code",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 62,
- "key": "it_conditions_to_cover",
- "name": "IT branches to cover",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": true
- },
- {
- "id": 40,
- "key": "uncovered_lines",
- "name": "Uncovered lines",
- "type": "INT",
- "domain": "Tests",
- "hidden": false
- },
- {
- "id": 11,
- "key": "accessors",
- "name": "Accessors",
- "type": "INT",
- "domain": "Size",
- "hidden": true
- },
- {
- "id": 63,
- "key": "new_it_conditions_to_cover",
- "name": "Branches to cover by IT on new code",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": true
- },
- {
- "id": 64,
- "key": "it_uncovered_conditions",
- "name": "IT uncovered branches",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 65,
- "key": "new_it_uncovered_conditions",
- "name": "Uncovered branches by IT on new code",
- "type": "INT",
- "domain": "Tests (Integration)",
- "hidden": false
- },
- {
- "id": 93,
- "key": "violations",
- "name": "Issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 94,
- "key": "blocker_violations",
- "name": "Blocker issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 95,
- "key": "critical_violations",
- "name": "Critical issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 96,
- "key": "major_violations",
- "name": "Major issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 97,
- "key": "minor_violations",
- "name": "Minor issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 98,
- "key": "info_violations",
- "name": "Info issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 99,
- "key": "new_violations",
- "name": "New issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- },
- {
- "id": 100,
- "key": "new_blocker_violations",
- "name": "New Blocker issues",
- "type": "INT",
- "domain": "Issues",
- "hidden": false
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/copy.json b/server/sonar-web/src/test/json/quality-gates-spec/copy.json
deleted file mode 100644
index 5049f54d958..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/copy.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "id": 6,
- "name": "New Name"
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/create-condition.json b/server/sonar-web/src/test/json/quality-gates-spec/create-condition.json
deleted file mode 100644
index 219e339b799..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/create-condition.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "id": 19,
- "metric": "complexity",
- "op": "GT",
- "warning": "1",
- "error": "2",
- "period": 1
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/create.json b/server/sonar-web/src/test/json/quality-gates-spec/create.json
deleted file mode 100644
index 5049f54d958..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/create.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "id": 6,
- "name": "New Name"
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/list.json b/server/sonar-web/src/test/json/quality-gates-spec/list.json
deleted file mode 100644
index 6fcd19d6f28..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/list.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "qualitygates": [
- {
- "id": 5,
- "name": "Another Gate"
- },
- {
- "id": 4,
- "name": "Simple Gate"
- },
- {
- "id": 1,
- "name": "SonarQube way"
- }
- ],
- "default": 1
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/projects.json b/server/sonar-web/src/test/json/quality-gates-spec/projects.json
deleted file mode 100644
index 1d75a5e35b8..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/projects.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "more": false,
- "results": [
- {
- "id": 191,
- "name": "SonarQube",
- "selected": true
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/rename.json b/server/sonar-web/src/test/json/quality-gates-spec/rename.json
deleted file mode 100644
index e370fa9586e..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/rename.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "id": 1,
- "name": "New Name"
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/show-another.json b/server/sonar-web/src/test/json/quality-gates-spec/show-another.json
deleted file mode 100644
index dbb615b2295..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/show-another.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "id": 5,
- "name": "Another Gate"
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/show-created.json b/server/sonar-web/src/test/json/quality-gates-spec/show-created.json
deleted file mode 100644
index 5049f54d958..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/show-created.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "id": 6,
- "name": "New Name"
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/show.json b/server/sonar-web/src/test/json/quality-gates-spec/show.json
deleted file mode 100644
index 7125875b1b3..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/show.json
+++ /dev/null
@@ -1,58 +0,0 @@
-{
- "id": 1,
- "name": "SonarQube way",
- "conditions": [
- {
- "id": 1,
- "metric": "blocker_violations",
- "op": "GT",
- "warning": "",
- "error": "0"
- },
- {
- "id": 3,
- "metric": "test_errors",
- "op": "GT",
- "error": "0"
- },
- {
- "id": 4,
- "metric": "test_failures",
- "op": "GT",
- "error": "0"
- },
- {
- "id": 5,
- "metric": "new_coverage",
- "op": "LT",
- "warning": "",
- "error": "80",
- "period": 3
- },
- {
- "id": 6,
- "metric": "open_issues",
- "op": "GT",
- "warning": "0"
- },
- {
- "id": 7,
- "metric": "reopened_issues",
- "op": "GT",
- "warning": "0"
- },
- {
- "id": 8,
- "metric": "skipped_tests",
- "op": "GT",
- "warning": "0"
- },
- {
- "id": 9,
- "metric": "sqale_index",
- "op": "LT",
- "warning": "3360",
- "error": "4020"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-gates-spec/update-condition.json b/server/sonar-web/src/test/json/quality-gates-spec/update-condition.json
deleted file mode 100644
index af2c053ff94..00000000000
--- a/server/sonar-web/src/test/json/quality-gates-spec/update-condition.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "id": 1,
- "metric": "blocker_violations",
- "op": "GT",
- "warning": "173",
- "error": "0"
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/changelog.json b/server/sonar-web/src/test/json/quality-profiles/changelog.json
deleted file mode 100644
index 196f81cdb36..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/changelog.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "total": 3,
- "p": 1,
- "ps": 2,
- "events": [
- {
- "date": "2015-04-13T13:44:23+0200",
- "action": "ACTIVATED",
- "ruleKey": "squid:S1860",
- "ruleName": "Synchronisation should not be based on Strings or boxed primitives",
- "params": {
- "severity": "BLOCKER"
- }
- },
- {
- "date": "2015-04-13T13:44:23+0200",
- "action": "ACTIVATED",
- "authorLogin" : "anakin.skywalker",
- "authorName" : "Anakin Skywalker",
- "ruleKey": "squid:S2127",
- "ruleName": "\"Double.longBitsToDouble\" should not be used for \"int\"",
- "params": {
- "threshold": "3",
- "emptyParameter": ""
- }
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/changelog2.json b/server/sonar-web/src/test/json/quality-profiles/changelog2.json
deleted file mode 100644
index d64d6aeaf30..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/changelog2.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "total": 3,
- "p": 2,
- "ps": 2,
- "events": [
- {
- "date": "2015-04-13T13:44:23+0200",
- "action": "DEACTIVATED",
- "ruleKey": "squid:S2151",
- "ruleName": "\"runFinalizersOnExit\" should not be called"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/compare.json b/server/sonar-web/src/test/json/quality-profiles/compare.json
deleted file mode 100644
index 8d93357f0bd..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/compare.json
+++ /dev/null
@@ -1,99 +0,0 @@
-{
- "left": {
- "key": "java-sonar-way-67887",
- "name": "Sonar way"
- },
- "right": {
- "key": "java-copied-profile-11711",
- "name": "Copied Profile"
- },
- "inLeft": [
- {
- "key": "squid:S2204",
- "name": "\".equals()\" should not be used to test the values of \"Atomic\" classes",
- "pluginKey": "squid",
- "pluginName": "SonarQube",
- "languageKey": "java",
- "languageName": "Java",
- "severity": "BLOCKER"
- },
- {
- "key": "squid:S1161",
- "name": "\"@Override\" annotation should be used on any method overriding (since Java 5) or implementing (since Java 6) another one",
- "pluginKey": "squid",
- "pluginName": "SonarQube",
- "languageKey": "java",
- "languageName": "Java",
- "severity": "MAJOR"
- }
- ],
- "inRight": [
- {
- "key": "squid:S2250",
- "name": "\"ConcurrentLinkedQueue.size()\" should not be used",
- "pluginKey": "squid",
- "pluginName": "SonarQube",
- "languageKey": "java",
- "languageName": "Java",
- "severity": "CRITICAL"
- },
- {
- "key": "squid:S2200",
- "name": "\"compareTo\" results should not be checked for specific values",
- "pluginKey": "squid",
- "pluginName": "SonarQube",
- "languageKey": "java",
- "languageName": "Java",
- "severity": "MAJOR"
- }
- ],
- "modified": [
- {
- "key": "squid:S134",
- "name": "Control flow statements \"if\", \"for\", \"while\", \"switch\" and \"try\" should not be nested too deeply",
- "pluginKey": "squid",
- "pluginName": "SonarQube",
- "languageKey": "java",
- "languageName": "Java",
- "left": {
- "severity": "MINOR",
- "params": {
- "max": "5"
- }
- },
- "right": {
- "severity": "MINOR",
- "params": {
- "max": "3"
- }
- }
- },
- {
- "key": "squid:S2157",
- "name": "\"Cloneables\" should implement \"clone\"",
- "pluginKey": "squid",
- "pluginName": "SonarQube",
- "languageKey": "java",
- "languageName": "Java",
- "left": {
- "severity": "CRITICAL",
- "params": {}
- },
- "right": {
- "severity": "INFO",
- "params": {}
- }
- }
- ],
- "same": [
- {
- "key": "squid:S2111",
- "name": "\"BigDecimal(double)\" should not be used",
- "pluginKey": "squid",
- "pluginName": "SonarQube",
- "languageKey": "java",
- "languageName": "Java",
- "severity": "CRITICAL"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/copy.json b/server/sonar-web/src/test/json/quality-profiles/copy.json
deleted file mode 100644
index ba810f15720..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/copy.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "key": "java-copied-profile-11711",
- "name": "Copied Profile",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/create.json b/server/sonar-web/src/test/json/quality-profiles/create.json
deleted file mode 100644
index 357d814db6a..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/create.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "profile": {
- "key": "java-copied-profile-11711",
- "name": "Copied Profile",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false
- }
-}
-
-
diff --git a/server/sonar-web/src/test/json/quality-profiles/exporters.json b/server/sonar-web/src/test/json/quality-profiles/exporters.json
deleted file mode 100644
index 86d3e20568d..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/exporters.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "exporters": [
- {"key": "pmd", "name": "PMD", "languages": ["java"]},
- {"key": "checkstyle", "name": "Checkstyle", "languages": ["java"]},
- {"key": "js-lint", "name": "JS Lint", "languages": ["js"]},
- {"key": "android-lint", "name": "Android Lint", "languages": ["xml", "java"]}
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/importers-empty.json b/server/sonar-web/src/test/json/quality-profiles/importers-empty.json
deleted file mode 100644
index b00cdebb50e..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/importers-empty.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "importers": []
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/importers.json b/server/sonar-web/src/test/json/quality-profiles/importers.json
deleted file mode 100644
index 68d254909cb..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/importers.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "importers": [
- {
- "key": "pmd",
- "name": "PMD",
- "languages": [
- "java"
- ]
- },
- {
- "key": "random",
- "name": "Random",
- "languages": [
- "java",
- "js"
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/inheritance-change-parent.json b/server/sonar-web/src/test/json/quality-profiles/inheritance-change-parent.json
deleted file mode 100644
index 34082a5cfe2..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/inheritance-change-parent.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "profile": {
- "key": "java-inherited-profile-85155",
- "name": "Inherited Profile",
- "parent": "java-sonar-way-67887",
- "activeRuleCount": 163,
- "overridingRuleCount": 7
- },
- "ancestors": [
- {
- "key": "java-sonar-way-67887",
- "name": "Sonar way",
- "activeRuleCount": 161
- }
- ],
- "children": [
- {
- "key": "java-second-level-inherited-profile-81377",
- "name": "Second Level Inherited Profile",
- "activeRuleCount": 165
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/inheritance-changed-parent.json b/server/sonar-web/src/test/json/quality-profiles/inheritance-changed-parent.json
deleted file mode 100644
index 938d666a250..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/inheritance-changed-parent.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "profile": {
- "key": "java-inherited-profile-85155",
- "name": "Inherited Profile",
- "parent": "java-another-profile-00609",
- "activeRuleCount": 1
- },
- "ancestors": [
- {
- "key": "java-another-profile-00609",
- "name": "Another Profile",
- "activeRuleCount": 0
- }
- ],
- "children": [
- {
- "key": "java-second-level-inherited-profile-81377",
- "name": "Second Level Inherited Profile",
- "activeRuleCount": 1
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/inheritance-plus.json b/server/sonar-web/src/test/json/quality-profiles/inheritance-plus.json
deleted file mode 100644
index 34082a5cfe2..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/inheritance-plus.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "profile": {
- "key": "java-inherited-profile-85155",
- "name": "Inherited Profile",
- "parent": "java-sonar-way-67887",
- "activeRuleCount": 163,
- "overridingRuleCount": 7
- },
- "ancestors": [
- {
- "key": "java-sonar-way-67887",
- "name": "Sonar way",
- "activeRuleCount": 161
- }
- ],
- "children": [
- {
- "key": "java-second-level-inherited-profile-81377",
- "name": "Second Level Inherited Profile",
- "activeRuleCount": 165
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/inheritance.json b/server/sonar-web/src/test/json/quality-profiles/inheritance.json
deleted file mode 100644
index 62c4717e3bb..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/inheritance.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "profile": {},
- "ancestors": [],
- "children": []
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/languages.json b/server/sonar-web/src/test/json/quality-profiles/languages.json
deleted file mode 100644
index 7a408e75ecb..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/languages.json
+++ /dev/null
@@ -1,20 +0,0 @@
-{
- "languages": [
- {
- "key": "java",
- "name": "Java"
- },
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "php",
- "name": "PHP"
- },
- {
- "key": "py",
- "name": "Python"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/projects.json b/server/sonar-web/src/test/json/quality-profiles/projects.json
deleted file mode 100644
index 39c951e89ab..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/projects.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "results": [
- {
- "key": "f140a877-8ab9-4eba-bb7e-7e0e0ec26129",
- "name": "CSS",
- "selected": true
- },
- {
- "key": "fd68ca9a-f8cb-4e9b-8379-8d054e43b3ab",
- "name": "http-request-parent",
- "selected": true
- }
- ],
- "more": false
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/rules.json b/server/sonar-web/src/test/json/quality-profiles/rules.json
deleted file mode 100644
index 9a581ed37e4..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/rules.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "total": 161,
- "p": 1,
- "ps": 1,
- "rules": [],
- "facets": [
- {
- "property": "active_severities",
- "values": [
- {
- "val": "MAJOR",
- "count": 90
- },
- {
- "val": "CRITICAL",
- "count": 41
- },
- {
- "val": "MINOR",
- "count": 16
- },
- {
- "val": "BLOCKER",
- "count": 12
- },
- {
- "val": "INFO",
- "count": 2
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/search-another-default.json b/server/sonar-web/src/test/json/quality-profiles/search-another-default.json
deleted file mode 100644
index 30b1d40419d..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/search-another-default.json
+++ /dev/null
@@ -1,49 +0,0 @@
-{
- "profiles": [
- {
- "key": "java-sonar-way-67887",
- "name": "Sonar way",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "js-sonar-way-71566",
- "name": "Sonar way",
- "activeRuleCount": 63,
- "language": "js",
- "languageName": "JavaScript",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-psr-2-46772",
- "name": "PSR-2",
- "activeRuleCount": 19,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-sonar-way-10778",
- "name": "Sonar way",
- "activeRuleCount": 59,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false,
- "isDefault": false
- },
- {
- "key": "py-sonar-way-78627",
- "name": "Sonar way",
- "activeRuleCount": 21,
- "language": "py",
- "languageName": "Python",
- "isInherited": false,
- "isDefault": true
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/search-change-parent.json b/server/sonar-web/src/test/json/quality-profiles/search-change-parent.json
deleted file mode 100644
index 63f22a0bc71..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/search-change-parent.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "profiles": [
- {
- "key": "java-another-profile-00609",
- "name": "Another Profile",
- "activeRuleCount": 0,
- "language": "java",
- "languageName": "Java",
- "isInherited": false
- },
- {
- "key": "java-inherited-profile-85155",
- "name": "Inherited Profile",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "parentKey": "java-sonar-way-67887",
- "parentName": "Sonar way",
- "isInherited": true
- },
- {
- "key": "java-second-level-inherited-profile-81377",
- "name": "Second Level Inherited Profile",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "parentKey": "java-inherited-profile-85155",
- "parentName": "Inherited Profile",
- "isInherited": true
- },
- {
- "key": "java-sonar-way-67887",
- "name": "Sonar way",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "js-sonar-way-71566",
- "name": "Sonar way",
- "activeRuleCount": 63,
- "language": "js",
- "languageName": "JavaScript",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-psr-2-46772",
- "name": "PSR-2",
- "activeRuleCount": 19,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-sonar-way-10778",
- "name": "Sonar way",
- "activeRuleCount": 59,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false
- },
- {
- "key": "py-sonar-way-78627",
- "name": "Sonar way",
- "activeRuleCount": 21,
- "language": "py",
- "languageName": "Python",
- "isInherited": false,
- "isDefault": true
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/search-changed-parent.json b/server/sonar-web/src/test/json/quality-profiles/search-changed-parent.json
deleted file mode 100644
index 5ce6a7180aa..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/search-changed-parent.json
+++ /dev/null
@@ -1,76 +0,0 @@
-{
- "profiles": [
- {
- "key": "java-another-profile-00609",
- "name": "Another Profile",
- "activeRuleCount": 0,
- "language": "java",
- "languageName": "Java",
- "isInherited": false
- },
- {
- "key": "java-inherited-profile-85155",
- "name": "Inherited Profile",
- "activeRuleCount": 1,
- "language": "java",
- "languageName": "Java",
- "parentKey": "java-another-profile-00609",
- "parentName": "Another Profile",
- "isInherited": true
- },
- {
- "key": "java-second-level-inherited-profile-81377",
- "name": "Second Level Inherited Profile",
- "activeRuleCount": 1,
- "language": "java",
- "languageName": "Java",
- "parentKey": "java-inherited-profile-85155",
- "parentName": "Inherited Profile",
- "isInherited": true
- },
- {
- "key": "java-sonar-way-67887",
- "name": "Sonar way",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "js-sonar-way-71566",
- "name": "Sonar way",
- "activeRuleCount": 63,
- "language": "js",
- "languageName": "JavaScript",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-psr-2-46772",
- "name": "PSR-2",
- "activeRuleCount": 19,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-sonar-way-10778",
- "name": "Sonar way",
- "activeRuleCount": 59,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false
- },
- {
- "key": "py-sonar-way-78627",
- "name": "Sonar way",
- "activeRuleCount": 21,
- "language": "py",
- "languageName": "Python",
- "isInherited": false,
- "isDefault": true
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/search-inheritance.json b/server/sonar-web/src/test/json/quality-profiles/search-inheritance.json
deleted file mode 100644
index 3d60223a881..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/search-inheritance.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "profiles": [
- {
- "key": "java-inherited-profile-85155",
- "name": "Inherited Profile",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "parentKey": "java-sonar-way-67887",
- "parentName": "Sonar way",
- "isInherited": true
- },
- {
- "key": "java-second-level-inherited-profile-81377",
- "name": "Second Level Inherited Profile",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "parentKey": "java-inherited-profile-85155",
- "parentName": "Inherited Profile",
- "isInherited": true
- },
- {
- "key": "java-sonar-way-67887",
- "name": "Sonar way",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "js-sonar-way-71566",
- "name": "Sonar way",
- "activeRuleCount": 63,
- "language": "js",
- "languageName": "JavaScript",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-psr-2-46772",
- "name": "PSR-2",
- "activeRuleCount": 19,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-sonar-way-10778",
- "name": "Sonar way",
- "activeRuleCount": 59,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false
- },
- {
- "key": "py-sonar-way-78627",
- "name": "Sonar way",
- "activeRuleCount": 21,
- "language": "py",
- "languageName": "Python",
- "isInherited": false,
- "isDefault": true
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/search-modified.json b/server/sonar-web/src/test/json/quality-profiles/search-modified.json
deleted file mode 100644
index 1ef80b6085a..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/search-modified.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "profiles": [
- {
- "key": "php-psr-2-46772",
- "name": "PSR-2",
- "activeRuleCount": 19,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/search-renamed.json b/server/sonar-web/src/test/json/quality-profiles/search-renamed.json
deleted file mode 100644
index 3915cdfe3e8..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/search-renamed.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "profiles": [
- {
- "key": "java-sonar-way-67887",
- "name": "Renamed Profile",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "js-sonar-way-71566",
- "name": "Sonar way",
- "activeRuleCount": 63,
- "language": "js",
- "languageName": "JavaScript",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-psr-2-46772",
- "name": "PSR-2",
- "activeRuleCount": 19,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false
- },
- {
- "key": "php-sonar-way-10778",
- "name": "Sonar way",
- "activeRuleCount": 59,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "py-sonar-way-78627",
- "name": "Sonar way",
- "activeRuleCount": 21,
- "language": "py",
- "languageName": "Python",
- "isInherited": false,
- "isDefault": true
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/search-with-copy.json b/server/sonar-web/src/test/json/quality-profiles/search-with-copy.json
deleted file mode 100644
index 1df52c4b84b..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/search-with-copy.json
+++ /dev/null
@@ -1,56 +0,0 @@
-{
- "profiles": [
- {
- "key": "java-copied-profile-11711",
- "name": "Copied Profile",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false
- },
- {
- "key": "java-sonar-way-67887",
- "name": "Sonar way",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "js-sonar-way-71566",
- "name": "Sonar way",
- "activeRuleCount": 63,
- "language": "js",
- "languageName": "JavaScript",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-psr-2-46772",
- "name": "PSR-2",
- "activeRuleCount": 19,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false
- },
- {
- "key": "php-sonar-way-10778",
- "name": "Sonar way",
- "activeRuleCount": 59,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "py-sonar-way-78627",
- "name": "Sonar way",
- "activeRuleCount": 21,
- "language": "py",
- "languageName": "Python",
- "isInherited": false,
- "isDefault": true
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/search.json b/server/sonar-web/src/test/json/quality-profiles/search.json
deleted file mode 100644
index c9b44c80656..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/search.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "profiles": [
- {
- "key": "java-sonar-way-67887",
- "name": "Sonar way",
- "activeRuleCount": 161,
- "language": "java",
- "languageName": "Java",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "js-sonar-way-71566",
- "name": "Sonar way",
- "activeRuleCount": 63,
- "language": "js",
- "languageName": "JavaScript",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "php-psr-2-46772",
- "name": "PSR-2",
- "activeRuleCount": 19,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false
- },
- {
- "key": "php-sonar-way-10778",
- "name": "Sonar way",
- "activeRuleCount": 59,
- "language": "php",
- "languageName": "PHP",
- "isInherited": false,
- "isDefault": true
- },
- {
- "key": "py-sonar-way-78627",
- "name": "Sonar way",
- "activeRuleCount": 21,
- "language": "py",
- "languageName": "Python",
- "isInherited": false,
- "isDefault": true
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/user-admin.json b/server/sonar-web/src/test/json/quality-profiles/user-admin.json
deleted file mode 100644
index d0d8417406f..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/user-admin.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "isLoggedIn": true,
- "login": "admin",
- "name": "Administrator",
- "permissions": {
- "global": [
- "provisioning",
- "dryRunScan",
- "shareDashboard",
- "scan",
- "profileadmin",
- "admin"
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/quality-profiles/user.json b/server/sonar-web/src/test/json/quality-profiles/user.json
deleted file mode 100644
index 3d5f7c3fa20..00000000000
--- a/server/sonar-web/src/test/json/quality-profiles/user.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "isLoggedIn": false,
- "permissions": {
- "global": [
- "scan",
- "dryRunScan"
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-coverage/app.json b/server/sonar-web/src/test/json/source-viewer-coverage/app.json
deleted file mode 100644
index 7fad540b881..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-coverage/app.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "uuid": "uuid",
- "key": "sample:sample",
- "path": "sample/path",
- "name": "Sample",
- "longName": "Sample",
- "q": "FIL",
- "subProject": "sample:subproject",
- "subProjectName": "Sample Sub-Project",
- "project": "sample:project",
- "projectName": "Sample Project",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "20",
- "duplicationDensity": "25%"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-coverage/issues.json b/server/sonar-web/src/test/json/source-viewer-coverage/issues.json
deleted file mode 100644
index 40edd884b11..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-coverage/issues.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "total": 0,
- "p": 1,
- "ps": 100,
- "issues": [],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 100,
- "total": 0,
- "fTotal": "0",
- "pages": 1
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-coverage/lines.json b/server/sonar-web/src/test/json/source-viewer-coverage/lines.json
deleted file mode 100644
index 2ad6687a262..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-coverage/lines.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{"sources": [
- { "line": 1, "code": "line 1", "utConditions": 2, "utCoveredConditions": 0 },
- { "line": 2, "code": "line 2", "itConditions": 2, "itCoveredConditions": 0 },
- { "line": 3, "code": "line 3" },
- { "line": 4, "code": "line 4" },
- { "line": 5, "code": "line 5", "utLineHits": 1, "utConditions": 2, "utCoveredConditions": 1 },
- { "line": 6, "code": "line 6", "utLineHits": 1, "utConditions": 2, "utCoveredConditions": 2 },
- { "line": 7, "code": "line 7", "itLineHits": 1, "itConditions": 2, "itCoveredConditions": 1 },
- { "line": 8, "code": "line 8", "itLineHits": 1, "itConditions": 2, "itCoveredConditions": 2 },
- { "line": 9, "code": "line 9" },
- { "line": 10, "code": "line 10" },
- { "line": 11, "code": "line 11", "utLineHits": 3 },
- { "line": 12, "code": "line 12", "itLineHits": 1 },
- { "line": 13, "code": "line 13" },
- { "line": 14, "code": "line 14" },
- { "line": 15, "code": "line 15" },
- { "line": 16, "code": "line 16" }
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-coverage/test-cases.json b/server/sonar-web/src/test/json/source-viewer-coverage/test-cases.json
deleted file mode 100644
index 093ac8bd5f0..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-coverage/test-cases.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "p": 1,
- "ps": 1000,
- "total": 1,
- "tests": [
- {
- "name": "sampleTest",
- "status": "OK",
- "durationInMs": 2,
- "fileKey": "test:sample",
- "fileUuid": "uuid",
- "fileLongName": "SampleTest"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/api-rules-search.json b/server/sonar-web/src/test/json/source-viewer-create-manual-issue/api-rules-search.json
deleted file mode 100644
index 9a176d3e06a..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/api-rules-search.json
+++ /dev/null
@@ -1,27 +0,0 @@
-{
- "total": 5,
- "p": 1,
- "ps": 999999,
- "rules": [
- {
- "key": "manual:api",
- "name": "API"
- },
- {
- "key": "manual:design",
- "name": "Design"
- },
- {
- "key": "manual:error_handling",
- "name": "Error handling"
- },
- {
- "key": "manual:performance",
- "name": "Performance"
- },
- {
- "key": "manual:sql_pitfalls",
- "name": "SQL Pitfall"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/app.json b/server/sonar-web/src/test/json/source-viewer-create-manual-issue/app.json
deleted file mode 100644
index dd6a3fb900f..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/app.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "uuid": "12345",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "path": "src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "longName": "src/main/java/org/sonar/batch/index/Cache.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "378",
- "coverage": "74.3%",
- "duplicationDensity": "5.8%",
- "debt": "2h 10min",
- "sqaleRating": "A",
- "debtRatio": "1.1%",
- "issues": "6"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/create-issue.json b/server/sonar-web/src/test/json/source-viewer-create-manual-issue/create-issue.json
deleted file mode 100644
index db69ef34a93..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/create-issue.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
- "issue": {
- "key": "e69e2012-c58e-4c37-9e0e-9595576de9de",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": null,
- "project": "org.codehaus.sonar:sonar",
- "rule": "manual:api",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "An issue message",
- "line": 3,
- "reporter": "admin",
- "creationDate": "2014-12-08T14:22:49+0100",
- "updateDate": "2014-12-08T14:22:49+0100",
- "fUpdateAge": "less than a minute"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/issues.json b/server/sonar-web/src/test/json/source-viewer-create-manual-issue/issues.json
deleted file mode 100644
index 0b1601191ef..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/issues.json
+++ /dev/null
@@ -1,200 +0,0 @@
-{"total": 6, "p": 1, "ps": 100, "projects": [
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- }
-], "components": [
- {
- "uuid": "83379565-7af3-4047-8d1a-ed42b10309b0",
- "key": "org.codehaus.sonar:sonar-batch",
- "id": 1624,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Batch",
- "longName": "SonarQube :: Batch",
- "path": "sonar-batch",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- },
- {
- "uuid": "b9615992-2458-4d54-a22f-b91ee7ba5bc5",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "id": 19983,
- "enabled": true,
- "qualifier": "FIL",
- "name": "Cache.java",
- "longName": "src/main/java/org/sonar/batch/index/Cache.java",
- "path": "src/main/java/org/sonar/batch/index/Cache.java",
- "projectId": 2865,
- "subProjectId": 1624
- }
-], "issues": [
- {
- "key": "20002ec7-b647-44da-bdf5-4d9fbf4b7c58",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "2 duplicated blocks of code.",
- "debt": "2h",
- "creationDate": "2014-05-01T23:38:31+0200",
- "updateDate": "2014-07-01T17:48:47+0200",
- "fUpdateAge": "5 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "71a26f48-a90d-4a76-a745-4f6e6e8b1773",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 125,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "75419c88-0e3c-4311-aa47-fe5731e67558",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 155,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "01461208-6c1e-4cdf-9f27-b7afa78e76ec",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 184,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "e4de6481-7bfb-460a-8b3c-24459f9561d3",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 239,
- "author": "Simon Brandhof",
- "creationDate": "2013-08-09T16:04:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "59fc17f7-c977-4cb6-8f04-fbe88e4b9186",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1192",
- "status": "CONFIRMED",
- "severity": "MINOR",
- "message": "Define a constant instead of duplicating this literal \"Fail to get keys from cache \" 3 times.",
- "line": 257,
- "debt": "10min",
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2014-02-20T07:48:16+0100",
- "updateDate": "2014-02-24T16:57:34+0100",
- "fUpdateAge": "9 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- }
-], "rules": [
- {
- "key": "common-java:DuplicatedBlocks",
- "name": "Duplicated blocks",
- "lang": "java",
- "desc": "<p>An issue is created on a file as soon as there is a block of duplicated code on this file. It gives the number of blocks in the file.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1192",
- "name": "String literals should not be duplicated",
- "lang": "java",
- "desc": "<p>\n Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.\n On the other hand, constants can be referenced from many places, but only need to be updated in a single place.\n</p>\n\n<h2>Non Compliant Code Example</h2>\n\n<pre>\npublic void run() {\n prepare(\"action1\"); // Non-Compliant - \"action1\" is duplicated 3 times\n execute(\"action1\");\n release(\"action1\");\n}\n\n@SuppressWarning(\"all\") // Compliant - annotations are excluded\nprivate void method1() { /* ... */ }\n@SuppressWarning(\"all\")\nprivate void method2() { /* ... */ }\n\npublic String method3(String a) {\n System.out.println(\"'\" + a + \"'\"); // Compliant - literal \"'\" has less than 5 characters and is excluded\n return \"\"; // Compliant - literal \"\" has less than 5 characters and is excluded\n}\n</pre>\n\n<h2>Compliant Code Example</h2>\n\n<pre>\nprivate static final String ACTION_1 = \"action1\"; // Compliant\n\npublic void run() {\n prepare(ACTION_1); // Compliant\n execute(ACTION_1);\n release(ACTION_1);\n}\n</pre>\n\n<h2>Exceptions</h2>\n<p>To prevent generating some false-positives, literals having less than 5 characters are excluded.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1135",
- "name": "TODO tags should be handled",
- "lang": "java",
- "desc": "<p>\n<code>TODO</code> tags are commonly used to mark places where some more code is required, but which the developer wants to implement later.\nSometimes the developer will not have the time or will simply forget to get back to that tag.\nThis rule is meant to track those tags, and ensure that they do not go unnoticed.\n</p>\n\n<p>The following code illustrates this rule:</p>\n\n<pre>\nvoid doSomething() {\n // TODO\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- }
-], "users": [
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- }
-], "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
-], "maxResultsReached": false, "paging": {
- "pageIndex": 1,
- "pageSize": 100,
- "total": 6,
- "fTotal": "6",
- "pages": 1
-}}
diff --git a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/lines.json b/server/sonar-web/src/test/json/source-viewer-create-manual-issue/lines.json
deleted file mode 100644
index 2983d8e4728..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-create-manual-issue/lines.json
+++ /dev/null
@@ -1,3868 +0,0 @@
-{"sources": [
- {
- "line": 1,
- "code": "<span class=\"cppd\">/*</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 2,
- "code": "<span class=\"cppd\"> * SonarQube, open source software quality management tool.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 3,
- "code": "<span class=\"cppd\"> * Copyright (C) 2008-2014 SonarSource</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "57ae3026c36ae3b0b71756d6161124b1ae594c53",
- "scmDate": "2014-03-11T17:52:41+0100"
- },
- {
- "line": 4,
- "code": "<span class=\"cppd\"> * mailto:contact AT sonarsource DOT com</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 5,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 6,
- "code": "<span class=\"cppd\"> * SonarQube is free software; you can redistribute it and/or</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 7,
- "code": "<span class=\"cppd\"> * modify it under the terms of the GNU Lesser General Public</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 8,
- "code": "<span class=\"cppd\"> * License as published by the Free Software Foundation; either</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 9,
- "code": "<span class=\"cppd\"> * version 3 of the License, or (at your option) any later version.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 10,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 11,
- "code": "<span class=\"cppd\"> * SonarQube is distributed in the hope that it will be useful,</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 12,
- "code": "<span class=\"cppd\"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 13,
- "code": "<span class=\"cppd\"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 14,
- "code": "<span class=\"cppd\"> * Lesser General Public License for more details.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 15,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 16,
- "code": "<span class=\"cppd\"> * You should have received a copy of the GNU Lesser General Public License</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 17,
- "code": "<span class=\"cppd\"> * along with this program; if not, write to the Free Software Foundation,</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 18,
- "code": "<span class=\"cppd\"> * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 19,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 20,
- "code": "<span class=\"k\">package</span> org.sonar.batch.index;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 21,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 22,
- "code": "<span class=\"k\">import </span>com.google.common.collect.<span class=\"sym-1 sym\">Sets</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 23,
- "code": "<span class=\"k\">import </span>com.persistit.<span class=\"sym-2 sym\">Exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 24,
- "code": "<span class=\"k\">import </span>com.persistit.<span class=\"sym-3 sym\">Key</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 25,
- "code": "<span class=\"k\">import </span>com.persistit.<span class=\"sym-4 sym\">KeyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 26,
- "code": "<span class=\"k\">import </span>com.persistit.exception.<span class=\"sym-5 sym\">PersistitException</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 27,
- "code": "<span class=\"k\">import </span>org.apache.commons.lang.builder.<span class=\"sym-6 sym\">ToStringBuilder</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 28,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 29,
- "code": "<span class=\"k\">import </span>javax.annotation.<span class=\"sym-7 sym\">CheckForNull</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 30,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 31,
- "code": "<span class=\"k\">import </span>java.util.<span class=\"sym-8 sym\">Iterator</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 32,
- "code": "<span class=\"k\">import </span>java.util.<span class=\"sym-9 sym\">NoSuchElementException</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 33,
- "code": "<span class=\"k\">import </span>java.util.<span class=\"sym-10 sym\">Set</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 34,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 35,
- "code": "<span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 36,
- "code": "<span class=\"cppd\"> * &lt;p&gt;</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 37,
- "code": "<span class=\"cppd\"> * This cache is not thread-safe, due to direct usage of {@link com.persistit.Exchange}</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 38,
- "code": "<span class=\"cppd\"> * &lt;/p&gt;</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 39,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 40,
- "code": "<span class=\"k\">public </span><span class=\"k\">class</span> <span class=\"sym-11 sym\">Cache</span>&lt;V&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 41,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 42,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span>String <span class=\"sym-12 sym\">name</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 43,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-13 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 44,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 45,
- "code": " <span class=\"sym-14 sym\">Cache</span>(String <span class=\"sym-15 sym\">name</span>, <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-16 sym\">exchange</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 46,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-12 sym\">name</span> = <span class=\"sym-15 sym\">name</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 47,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-13 sym\">exchange</span> = <span class=\"sym-16 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 48,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 49,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 50,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-17 sym\">put</span>(Object <span class=\"sym-18 sym\">key</span>, V <span class=\"sym-19 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 51,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-18 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 52,
- "code": " <span class=\"k\">return</span> <span class=\"sym-32 sym\">doPut</span>(<span class=\"sym-19 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 53,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 54,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 55,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-20 sym\">put</span>(Object <span class=\"sym-21 sym\">firstKey</span>, Object <span class=\"sym-22 sym\">secondKey</span>, V <span class=\"sym-23 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 56,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-21 sym\">firstKey</span>, <span class=\"sym-22 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 57,
- "code": " <span class=\"k\">return</span> <span class=\"sym-32 sym\">doPut</span>(<span class=\"sym-23 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 58,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 59,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 60,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-24 sym\">put</span>(Object <span class=\"sym-25 sym\">firstKey</span>, Object <span class=\"sym-26 sym\">secondKey</span>, Object <span class=\"sym-27 sym\">thirdKey</span>, V <span class=\"sym-28 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 61,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-25 sym\">firstKey</span>, <span class=\"sym-26 sym\">secondKey</span>, <span class=\"sym-27 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 62,
- "code": " <span class=\"k\">return</span> <span class=\"sym-32 sym\">doPut</span>(<span class=\"sym-28 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 63,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 64,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 65,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-29 sym\">put</span>(Object[] <span class=\"sym-30 sym\">key</span>, V <span class=\"sym-31 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 66,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-30 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 67,
- "code": " <span class=\"k\">return</span> <span class=\"sym-32 sym\">doPut</span>(<span class=\"sym-31 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 68,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 69,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 70,
- "code": " <span class=\"k\">private </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-32 sym\">doPut</span>(V <span class=\"sym-33 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 71,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 72,
- "code": " <span class=\"sym-13 sym\">exchange</span>.getValue().put(<span class=\"sym-33 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 73,
- "code": " <span class=\"sym-13 sym\">exchange</span>.store();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 74,
- "code": " <span class=\"k\">return</span> <span class=\"k\">this</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 75,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-34 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 76,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to put element in the cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-34 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1
- },
- {
- "line": 77,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 78,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 79,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 80,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 81,
- "code": "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 82,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 83,
- "code": " <span class=\"k\">public </span>V <span class=\"sym-35 sym\">get</span>(Object <span class=\"sym-36 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 84,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-36 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 85,
- "code": " <span class=\"k\">return</span> <span class=\"sym-46 sym\">doGet</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 86,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 87,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 88,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 89,
- "code": "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 90,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 91,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 92,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-37 sym\">get</span>(Object <span class=\"sym-38 sym\">firstKey</span>, Object <span class=\"sym-39 sym\">secondKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 93,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-38 sym\">firstKey</span>, <span class=\"sym-39 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 94,
- "code": " <span class=\"k\">return</span> <span class=\"sym-46 sym\">doGet</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 95,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 96,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 97,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 98,
- "code": "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 99,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 100,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 101,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-40 sym\">get</span>(Object <span class=\"sym-41 sym\">firstKey</span>, Object <span class=\"sym-42 sym\">secondKey</span>, Object <span class=\"sym-43 sym\">thirdKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 102,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-41 sym\">firstKey</span>, <span class=\"sym-42 sym\">secondKey</span>, <span class=\"sym-43 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 103,
- "code": " <span class=\"k\">return</span> <span class=\"sym-46 sym\">doGet</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 104,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 105,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 106,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 107,
- "code": "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 108,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 109,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 110,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-44 sym\">get</span>(Object[] <span class=\"sym-45 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 111,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-45 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 112,
- "code": " <span class=\"k\">return</span> <span class=\"sym-46 sym\">doGet</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 113,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 114,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 115,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 116,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 117,
- "code": "<span class=\"a\"> </span><span class=\"k\">private </span>V <span class=\"sym-46 sym\">doGet</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 118,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 119,
- "code": " <span class=\"sym-13 sym\">exchange</span>.fetch();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 120,
- "code": " <span class=\"k\">if </span>(!<span class=\"sym-13 sym\">exchange</span>.getValue().isDefined()) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 121,
- "code": " <span class=\"k\">return</span> <span class=\"k\">null</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 122,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 123,
- "code": " <span class=\"k\">return</span> (V) <span class=\"sym-13 sym\">exchange</span>.getValue().get();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 124,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-47 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 125,
- "code": " <span class=\"cppd\">// TODO add parameters to message</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 126,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get element from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-47 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0
- },
- {
- "line": 127,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 128,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 129,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 130,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-48 sym\">containsKey</span>(Object <span class=\"sym-49 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 131,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-49 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 132,
- "code": " <span class=\"k\">return</span> <span class=\"sym-59 sym\">doContainsKey</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 133,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 134,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 135,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-50 sym\">containsKey</span>(Object <span class=\"sym-51 sym\">firstKey</span>, Object <span class=\"sym-52 sym\">secondKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 136,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-51 sym\">firstKey</span>, <span class=\"sym-52 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 137,
- "code": " <span class=\"k\">return</span> <span class=\"sym-59 sym\">doContainsKey</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 138,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 139,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 140,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-53 sym\">containsKey</span>(Object <span class=\"sym-54 sym\">firstKey</span>, Object <span class=\"sym-55 sym\">secondKey</span>, Object <span class=\"sym-56 sym\">thirdKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 141,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-54 sym\">firstKey</span>, <span class=\"sym-55 sym\">secondKey</span>, <span class=\"sym-56 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 142,
- "code": " <span class=\"k\">return</span> <span class=\"sym-59 sym\">doContainsKey</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 143,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 144,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 145,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-57 sym\">containsKey</span>(Object[] <span class=\"sym-58 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 146,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-58 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 147,
- "code": " <span class=\"k\">return</span> <span class=\"sym-59 sym\">doContainsKey</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 148,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 149,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 150,
- "code": " <span class=\"k\">private </span><span class=\"k\">boolean </span><span class=\"sym-59 sym\">doContainsKey</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 151,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 152,
- "code": " <span class=\"sym-13 sym\">exchange</span>.fetch();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200",
- "utLineHits": 1
- },
- {
- "line": 153,
- "code": " <span class=\"k\">return</span> <span class=\"sym-13 sym\">exchange</span>.isValueDefined();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200",
- "utLineHits": 1
- },
- {
- "line": 154,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-60 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200",
- "utLineHits": 0
- },
- {
- "line": 155,
- "code": " <span class=\"cppd\">// TODO add parameters to message</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 156,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to check if element is in cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-60 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200",
- "utLineHits": 0
- },
- {
- "line": 157,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 158,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 159,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 160,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-61 sym\">remove</span>(Object <span class=\"sym-62 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 161,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-62 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 162,
- "code": " <span class=\"k\">return</span> <span class=\"sym-72 sym\">doRemove</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 163,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 164,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 165,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-63 sym\">remove</span>(Object <span class=\"sym-64 sym\">firstKey</span>, Object <span class=\"sym-65 sym\">secondKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 166,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-64 sym\">firstKey</span>, <span class=\"sym-65 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 167,
- "code": " <span class=\"k\">return</span> <span class=\"sym-72 sym\">doRemove</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 168,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 169,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 170,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-66 sym\">remove</span>(Object <span class=\"sym-67 sym\">firstKey</span>, Object <span class=\"sym-68 sym\">secondKey</span>, Object <span class=\"sym-69 sym\">thirdKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 171,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-67 sym\">firstKey</span>, <span class=\"sym-68 sym\">secondKey</span>, <span class=\"sym-69 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 172,
- "code": " <span class=\"k\">return</span> <span class=\"sym-72 sym\">doRemove</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 173,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 174,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 175,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-70 sym\">remove</span>(Object[] <span class=\"sym-71 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 176,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-71 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 177,
- "code": " <span class=\"k\">return</span> <span class=\"sym-72 sym\">doRemove</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 178,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 179,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 180,
- "code": " <span class=\"k\">private </span><span class=\"k\">boolean </span><span class=\"sym-72 sym\">doRemove</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 181,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 182,
- "code": " <span class=\"k\">return</span> <span class=\"sym-13 sym\">exchange</span>.remove();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "6f1161efb92298ace498df544e38f6f97216ec36",
- "scmDate": "2013-04-26T15:19:16+0200",
- "utLineHits": 1
- },
- {
- "line": 183,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-73 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 184,
- "code": " <span class=\"cppd\">// TODO add parameters to message</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 185,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get element from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-73 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0
- },
- {
- "line": 186,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 187,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 188,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 189,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 190,
- "code": "<span class=\"cppd\"> * Removes everything in the specified group.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 191,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 192,
- "code": "<span class=\"cppd\"> * @param group The group name.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 193,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 194,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-74 sym\">clear</span>(Object <span class=\"sym-75 sym\">key</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 195,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-75 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 196,
- "code": " <span class=\"k\">return</span> <span class=\"sym-85 sym\">doClear</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 197,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 198,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 199,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-76 sym\">clear</span>(Object <span class=\"sym-77 sym\">firstKey</span>, Object <span class=\"sym-78 sym\">secondKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 200,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-77 sym\">firstKey</span>, <span class=\"sym-78 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 201,
- "code": " <span class=\"k\">return</span> <span class=\"sym-85 sym\">doClear</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 202,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 203,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 204,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-79 sym\">clear</span>(Object <span class=\"sym-80 sym\">firstKey</span>, Object <span class=\"sym-81 sym\">secondKey</span>, Object <span class=\"sym-82 sym\">thirdKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 205,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-80 sym\">firstKey</span>, <span class=\"sym-81 sym\">secondKey</span>, <span class=\"sym-82 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 206,
- "code": " <span class=\"k\">return</span> <span class=\"sym-85 sym\">doClear</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 207,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 208,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 209,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-83 sym\">clear</span>(Object[] <span class=\"sym-84 sym\">key</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 210,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-84 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 211,
- "code": " <span class=\"k\">return</span> <span class=\"sym-85 sym\">doClear</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 212,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 213,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 214,
- "code": " <span class=\"k\">private </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-85 sym\">doClear</span>() {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 215,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 216,
- "code": " <span class=\"sym-3 sym\">Key</span> <span class=\"sym-86 sym\">to</span> = <span class=\"k\">new</span> <span class=\"sym-3 sym\">Key</span>(<span class=\"sym-13 sym\">exchange</span>.getKey());",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 217,
- "code": " <span class=\"sym-86 sym\">to</span>.append(<span class=\"sym-3 sym\">Key</span>.AFTER);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 218,
- "code": " <span class=\"sym-13 sym\">exchange</span>.removeKeyRange(<span class=\"sym-13 sym\">exchange</span>.getKey(), <span class=\"sym-86 sym\">to</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 219,
- "code": " <span class=\"k\">return</span> <span class=\"k\">this</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 220,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-87 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 221,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to clear values from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-87 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 222,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 223,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 224,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 225,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 226,
- "code": "<span class=\"cppd\"> * Clears the default as well as all group caches.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 227,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 228,
- "code": " <span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-88 sym\">clear</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 229,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 230,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 231,
- "code": " <span class=\"sym-13 sym\">exchange</span>.removeAll();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 232,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-89 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 233,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to clear cache\"</span>, <span class=\"sym-89 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 234,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 235,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 236,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 237,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 238,
- "code": "<span class=\"cppd\"> * Returns the set of cache keys associated with this group.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 239,
- "code": "<span class=\"cppd\"> * TODO implement a lazy-loading equivalent with Iterator/Iterable</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 240,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 241,
- "code": "<span class=\"cppd\"> * @param group The group.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 242,
- "code": "<span class=\"cppd\"> * @return The set of cache keys for this group.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 243,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 244,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"rawtypes\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 245,
- "code": " <span class=\"k\">public </span><span class=\"sym-10 sym\">Set</span> <span class=\"sym-90 sym\">keySet</span>(Object <span class=\"sym-91 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 246,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 247,
- "code": " <span class=\"sym-10 sym\">Set</span>&lt;Object&gt; <span class=\"sym-92 sym\">keys</span> = <span class=\"sym-1 sym\">Sets</span>.newLinkedHashSet();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 248,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 249,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-93 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 250,
- "code": " <span class=\"sym-93 sym\">iteratorExchange</span>.append(<span class=\"sym-91 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 251,
- "code": " <span class=\"sym-93 sym\">iteratorExchange</span>.append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 252,
- "code": " <span class=\"k\">while </span>(<span class=\"sym-93 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 253,
- "code": " <span class=\"sym-92 sym\">keys</span>.add(<span class=\"sym-93 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 254,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 255,
- "code": " <span class=\"k\">return</span> <span class=\"sym-92 sym\">keys</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 256,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-94 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 257,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-94 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0
- },
- {
- "line": 258,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 259,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 260,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 261,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"rawtypes\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 262,
- "code": " <span class=\"k\">public </span><span class=\"sym-10 sym\">Set</span> <span class=\"sym-95 sym\">keySet</span>(Object <span class=\"sym-96 sym\">firstKey</span>, Object <span class=\"sym-97 sym\">secondKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 263,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 264,
- "code": " <span class=\"sym-10 sym\">Set</span>&lt;Object&gt; <span class=\"sym-98 sym\">keys</span> = <span class=\"sym-1 sym\">Sets</span>.newLinkedHashSet();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 265,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 266,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-99 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 267,
- "code": " <span class=\"sym-99 sym\">iteratorExchange</span>.append(<span class=\"sym-96 sym\">firstKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 268,
- "code": " <span class=\"sym-99 sym\">iteratorExchange</span>.append(<span class=\"sym-97 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 269,
- "code": " <span class=\"sym-99 sym\">iteratorExchange</span>.append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 270,
- "code": " <span class=\"k\">while </span>(<span class=\"sym-99 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 271,
- "code": " <span class=\"sym-98 sym\">keys</span>.add(<span class=\"sym-99 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 272,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 273,
- "code": " <span class=\"k\">return</span> <span class=\"sym-98 sym\">keys</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 274,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-100 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 275,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-100 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 276,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 277,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 278,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 279,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 280,
- "code": "<span class=\"cppd\"> * Returns the set of keys associated with this cache.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 281,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 282,
- "code": "<span class=\"cppd\"> * @return The set containing the keys for this cache.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 283,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 284,
- "code": " <span class=\"k\">public </span><span class=\"sym-10 sym\">Set</span>&lt;Object&gt; <span class=\"sym-101 sym\">keySet</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 285,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 286,
- "code": " <span class=\"sym-10 sym\">Set</span>&lt;Object&gt; <span class=\"sym-102 sym\">keys</span> = <span class=\"sym-1 sym\">Sets</span>.newLinkedHashSet();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 287,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 288,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-103 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 289,
- "code": " <span class=\"sym-103 sym\">iteratorExchange</span>.append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 290,
- "code": " <span class=\"k\">while </span>(<span class=\"sym-103 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 291,
- "code": " <span class=\"sym-102 sym\">keys</span>.add(<span class=\"sym-103 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 292,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 293,
- "code": " <span class=\"k\">return</span> <span class=\"sym-102 sym\">keys</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 294,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-104 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 295,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-104 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 296,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 297,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 298,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 299,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 300,
- "code": "<span class=\"cppd\"> * Lazy-loading values for given keys</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 301,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 302,
- "code": " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-105 sym\">values</span>(Object <span class=\"sym-106 sym\">firstKey</span>, Object <span class=\"sym-107 sym\">secondKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 303,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 304,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 1
- },
- {
- "line": 305,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-106 sym\">firstKey</span>).append(<span class=\"sym-107 sym\">secondKey</span>).append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 1
- },
- {
- "line": 306,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-108 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 1
- },
- {
- "line": 307,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-109 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-106 sym\">firstKey</span>)).append(<span class=\"sym-4 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-107 sym\">secondKey</span>));",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 308,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-139 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-108 sym\">iteratorExchange</span>, <span class=\"sym-109 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 309,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-110 sym\">e</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 0
- },
- {
- "line": 310,
- "code": " <span class=\"k\">throw</span> <span class=\"sym-111 sym\">failToGetValues</span>(<span class=\"sym-110 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200",
- "utLineHits": 0
- },
- {
- "line": 311,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 312,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200"
- },
- {
- "line": 313,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200"
- },
- {
- "line": 314,
- "code": " <span class=\"k\">private </span>IllegalStateException <span class=\"sym-111 sym\">failToGetValues</span>(Exception <span class=\"sym-112 sym\">e</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200"
- },
- {
- "line": 315,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get values from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-112 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200",
- "utLineHits": 0
- },
- {
- "line": 316,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 317,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 318,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 319,
- "code": "<span class=\"cppd\"> * Lazy-loading values for a given key</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 320,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 321,
- "code": " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-113 sym\">values</span>(Object <span class=\"sym-114 sym\">firstKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 322,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 323,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 324,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-114 sym\">firstKey</span>).append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 325,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-115 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 326,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-116 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-114 sym\">firstKey</span>));",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 327,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-139 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-115 sym\">iteratorExchange</span>, <span class=\"sym-116 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 328,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-117 sym\">e</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 0
- },
- {
- "line": 329,
- "code": " <span class=\"k\">throw</span> <span class=\"sym-111 sym\">failToGetValues</span>(<span class=\"sym-117 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200",
- "utLineHits": 0
- },
- {
- "line": 330,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 331,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 332,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 333,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 334,
- "code": "<span class=\"cppd\"> * Lazy-loading values</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 335,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 336,
- "code": " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-118 sym\">values</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 337,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 338,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear().append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 339,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-119 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 340,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-120 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.ALL);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 341,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-139 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-119 sym\">iteratorExchange</span>, <span class=\"sym-120 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 342,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-121 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 343,
- "code": " <span class=\"k\">throw</span> <span class=\"sym-111 sym\">failToGetValues</span>(<span class=\"sym-121 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200",
- "utLineHits": 0
- },
- {
- "line": 344,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 345,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 346,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 347,
- "code": " <span class=\"k\">public </span>Iterable&lt;<span class=\"sym-177 sym\">Entry</span>&lt;V&gt;&gt; <span class=\"sym-122 sym\">entries</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 348,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear().to(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 349,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-123 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.ALL);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 350,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-156 sym\">EntryIterable</span>&lt;V&gt;(<span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>), <span class=\"sym-123 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 351,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 352,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 353,
- "code": " <span class=\"k\">public </span>Iterable&lt;<span class=\"sym-177 sym\">Entry</span>&lt;V&gt;&gt; <span class=\"sym-124 sym\">entries</span>(Object <span class=\"sym-125 sym\">firstKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 354,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear().append(<span class=\"sym-125 sym\">firstKey</span>).append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 355,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-126 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-125 sym\">firstKey</span>));",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 356,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-156 sym\">EntryIterable</span>&lt;V&gt;(<span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>), <span class=\"sym-126 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 357,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 358,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 359,
- "code": " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-127 sym\">resetKey</span>(Object <span class=\"sym-128 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 360,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 361,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-128 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 362,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 363,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 364,
- "code": " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-129 sym\">resetKey</span>(Object <span class=\"sym-130 sym\">first</span>, Object <span class=\"sym-131 sym\">second</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 365,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 366,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-130 sym\">first</span>).append(<span class=\"sym-131 sym\">second</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 367,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 368,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 369,
- "code": " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-132 sym\">resetKey</span>(Object <span class=\"sym-133 sym\">first</span>, Object <span class=\"sym-134 sym\">second</span>, Object <span class=\"sym-135 sym\">third</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 370,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 371,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-133 sym\">first</span>).append(<span class=\"sym-134 sym\">second</span>).append(<span class=\"sym-135 sym\">third</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 372,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 373,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 374,
- "code": " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-136 sym\">resetKey</span>(Object[] <span class=\"sym-137 sym\">keys</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 375,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 376,
- "code": " <span class=\"k\">for</span> (Object <span class=\"sym-138 sym\">o</span> : <span class=\"sym-137 sym\">keys</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0,
- "utConditions": 2,
- "utCoveredConditions": 0
- },
- {
- "line": 377,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-138 sym\">o</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 378,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 379,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 0
- },
- {
- "line": 380,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "7b301db8c7e3000ff2a04fce5534e45e7d973a1f",
- "scmDate": "2014-04-25T11:17:09+0200"
- },
- {
- "line": 381,
- "code": " <span class=\"cppd\">//</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 382,
- "code": " <span class=\"cppd\">// LAZY ITERATORS AND ITERABLES</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 383,
- "code": " <span class=\"cppd\">//</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 384,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 385,
- "code": " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-139 sym\">ValueIterable</span>&lt;T&gt; <span class=\"k\">implements</span> Iterable&lt;T&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 386,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-8 sym\">Iterator</span>&lt;T&gt; <span class=\"sym-140 sym\">iterator</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 387,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 388,
- "code": " <span class=\"k\">private </span><span class=\"sym-141 sym\">ValueIterable</span>(<span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-142 sym\">exchange</span>, <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-143 sym\">keyFilter</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 389,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-140 sym\">iterator</span> = <span class=\"k\">new</span> <span class=\"sym-145 sym\">ValueIterator</span>&lt;T&gt;(<span class=\"sym-142 sym\">exchange</span>, <span class=\"sym-143 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 390,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1
- },
- {
- "line": 391,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 392,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 393,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-8 sym\">Iterator</span>&lt;T&gt; <span class=\"sym-144 sym\">iterator</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 394,
- "code": " <span class=\"k\">return</span> <span class=\"sym-140 sym\">iterator</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1
- },
- {
- "line": 395,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 396,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 397,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 398,
- "code": " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-145 sym\">ValueIterator</span>&lt;T&gt; <span class=\"k\">implements</span> <span class=\"sym-8 sym\">Iterator</span>&lt;T&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 399,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-146 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 400,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-147 sym\">keyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 401,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 402,
- "code": " <span class=\"k\">private </span><span class=\"sym-148 sym\">ValueIterator</span>(<span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-149 sym\">exchange</span>, <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-150 sym\">keyFilter</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 403,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-146 sym\">exchange</span> = <span class=\"sym-149 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 404,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-147 sym\">keyFilter</span> = <span class=\"sym-150 sym\">keyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 405,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 406,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 407,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 408,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-151 sym\">hasNext</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 409,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 410,
- "code": " <span class=\"k\">return</span> <span class=\"sym-146 sym\">exchange</span>.hasNext(<span class=\"sym-147 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 411,
- "code": " } <span class=\"k\">catch </span>(<span class=\"sym-5 sym\">PersistitException</span> <span class=\"sym-152 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0,
- "duplicated": true
- },
- {
- "line": 412,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"sym-152 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0,
- "duplicated": true
- },
- {
- "line": 413,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 414,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 415,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 416,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "duplicated": true
- },
- {
- "line": 417,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 418,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>T <span class=\"sym-153 sym\">next</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 419,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 420,
- "code": " <span class=\"sym-146 sym\">exchange</span>.next(<span class=\"sym-147 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 421,
- "code": " } <span class=\"k\">catch </span>(<span class=\"sym-5 sym\">PersistitException</span> <span class=\"sym-154 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 422,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"sym-154 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 423,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 424,
- "code": " <span class=\"k\">if </span>(<span class=\"sym-146 sym\">exchange</span>.getValue().isDefined()) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 1
- },
- {
- "line": 425,
- "code": " <span class=\"k\">return</span> (T) <span class=\"sym-146 sym\">exchange</span>.getValue().get();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 426,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 427,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> <span class=\"sym-9 sym\">NoSuchElementException</span>();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 0
- },
- {
- "line": 428,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 429,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 430,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 431,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-155 sym\">remove</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 432,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> UnsupportedOperationException(<span class=\"s\">\"Removing an item is not supported\"</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "34cce8e330192c56a159a856ebd8072d38299087",
- "scmDate": "2014-02-24T14:21:50+0100",
- "utLineHits": 0
- },
- {
- "line": 433,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 434,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 435,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 436,
- "code": " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-156 sym\">EntryIterable</span>&lt;T&gt; <span class=\"k\">implements</span> Iterable&lt;<span class=\"sym-177 sym\">Entry</span>&lt;T&gt;&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 437,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-162 sym\">EntryIterator</span>&lt;T&gt; <span class=\"sym-157 sym\">it</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 438,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 439,
- "code": " <span class=\"k\">private </span><span class=\"sym-158 sym\">EntryIterable</span>(<span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-159 sym\">exchange</span>, <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-160 sym\">keyFilter</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 440,
- "code": " <span class=\"sym-157 sym\">it</span> = <span class=\"k\">new</span> <span class=\"sym-162 sym\">EntryIterator</span>&lt;T&gt;(<span class=\"sym-159 sym\">exchange</span>, <span class=\"sym-160 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 441,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 442,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 443,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 444,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-8 sym\">Iterator</span>&lt;<span class=\"sym-177 sym\">Entry</span>&lt;T&gt;&gt; <span class=\"sym-161 sym\">iterator</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 445,
- "code": " <span class=\"k\">return</span> <span class=\"sym-157 sym\">it</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 446,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 447,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 448,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 449,
- "code": " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-162 sym\">EntryIterator</span>&lt;T&gt; <span class=\"k\">implements</span> <span class=\"sym-8 sym\">Iterator</span>&lt;<span class=\"sym-177 sym\">Entry</span>&lt;T&gt;&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 450,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-163 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 451,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-164 sym\">keyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 452,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 453,
- "code": " <span class=\"k\">private </span><span class=\"sym-165 sym\">EntryIterator</span>(<span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-166 sym\">exchange</span>, <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-167 sym\">keyFilter</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 454,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-163 sym\">exchange</span> = <span class=\"sym-166 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 455,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-164 sym\">keyFilter</span> = <span class=\"sym-167 sym\">keyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 456,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 457,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 458,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 459,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-168 sym\">hasNext</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 460,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 461,
- "code": " <span class=\"k\">return</span> <span class=\"sym-163 sym\">exchange</span>.hasNext(<span class=\"sym-164 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 462,
- "code": " } <span class=\"k\">catch </span>(<span class=\"sym-5 sym\">PersistitException</span> <span class=\"sym-169 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 0,
- "duplicated": true
- },
- {
- "line": 463,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"sym-169 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 0,
- "duplicated": true
- },
- {
- "line": 464,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 465,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 466,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 467,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "duplicated": true
- },
- {
- "line": 468,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 469,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-177 sym\">Entry</span>&lt;T&gt; <span class=\"sym-170 sym\">next</span>() {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 470,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 471,
- "code": " <span class=\"sym-163 sym\">exchange</span>.next(<span class=\"sym-164 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 472,
- "code": " } <span class=\"k\">catch </span>(<span class=\"sym-5 sym\">PersistitException</span> <span class=\"sym-171 sym\">e</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 0
- },
- {
- "line": 473,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"sym-171 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 0
- },
- {
- "line": 474,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 475,
- "code": " <span class=\"k\">if </span>(<span class=\"sym-163 sym\">exchange</span>.getValue().isDefined()) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 1
- },
- {
- "line": 476,
- "code": " T <span class=\"sym-172 sym\">value</span> = (T) <span class=\"sym-163 sym\">exchange</span>.getValue().get();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 477,
- "code": " <span class=\"sym-3 sym\">Key</span> <span class=\"sym-173 sym\">key</span> = <span class=\"sym-163 sym\">exchange</span>.getKey();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 478,
- "code": " Object[] <span class=\"sym-174 sym\">array</span> = <span class=\"k\">new</span> Object[<span class=\"sym-173 sym\">key</span>.getDepth()];",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 479,
- "code": " <span class=\"k\">for</span> (<span class=\"k\">int </span><span class=\"sym-175 sym\">i</span> = <span class=\"c\">0</span>; <span class=\"sym-175 sym\">i</span> &lt; <span class=\"sym-173 sym\">key</span>.getDepth(); <span class=\"sym-175 sym\">i</span>++) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 480,
- "code": " <span class=\"sym-174 sym\">array</span>[<span class=\"sym-175 sym\">i</span>] = <span class=\"sym-173 sym\">key</span>.indexTo(<span class=\"sym-175 sym\">i</span> - <span class=\"sym-173 sym\">key</span>.getDepth()).decode();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 481,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 482,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-177 sym\">Entry</span>&lt;T&gt;(<span class=\"sym-174 sym\">array</span>, <span class=\"sym-172 sym\">value</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 483,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 484,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> <span class=\"sym-9 sym\">NoSuchElementException</span>();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 0
- },
- {
- "line": 485,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 486,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 487,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 488,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-176 sym\">remove</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 489,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> UnsupportedOperationException(<span class=\"s\">\"Removing an item is not supported\"</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "34cce8e330192c56a159a856ebd8072d38299087",
- "scmDate": "2014-02-24T14:21:50+0100",
- "utLineHits": 0
- },
- {
- "line": 490,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 491,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 492,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 493,
- "code": " <span class=\"k\">public </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-177 sym\">Entry</span>&lt;V&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 494,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span>Object[] <span class=\"sym-178 sym\">key</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 495,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span>V <span class=\"sym-179 sym\">value</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 496,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 497,
- "code": " <span class=\"sym-180 sym\">Entry</span>(Object[] <span class=\"sym-181 sym\">key</span>, V <span class=\"sym-182 sym\">value</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 498,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-178 sym\">key</span> = <span class=\"sym-181 sym\">key</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 499,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-179 sym\">value</span> = <span class=\"sym-182 sym\">value</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 500,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 501,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 502,
- "code": " <span class=\"k\">public </span>Object[] <span class=\"sym-183 sym\">key</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 503,
- "code": " <span class=\"k\">return</span> <span class=\"sym-178 sym\">key</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 504,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 505,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 506,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 507,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-184 sym\">value</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 508,
- "code": " <span class=\"k\">return</span> <span class=\"sym-179 sym\">value</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 509,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 510,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 511,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 512,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>String <span class=\"sym-185 sym\">toString</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 513,
- "code": " <span class=\"k\">return</span> <span class=\"sym-6 sym\">ToStringBuilder</span>.reflectionToString(<span class=\"k\">this</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 0
- },
- {
- "line": 514,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 515,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 516,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "43fc31f75a2de06b23faefb0d2bbf1dd97290232",
- "scmDate": "2014-05-05T16:43:19+0200"
- },
- {
- "line": 517,
- "code": "}",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 518,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- }
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-duplications/app.json b/server/sonar-web/src/test/json/source-viewer-duplications/app.json
deleted file mode 100644
index 7fad540b881..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-duplications/app.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "uuid": "uuid",
- "key": "sample:sample",
- "path": "sample/path",
- "name": "Sample",
- "longName": "Sample",
- "q": "FIL",
- "subProject": "sample:subproject",
- "subProjectName": "Sample Sub-Project",
- "project": "sample:project",
- "projectName": "Sample Project",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "20",
- "duplicationDensity": "25%"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-duplications/duplications-removed.json b/server/sonar-web/src/test/json/source-viewer-duplications/duplications-removed.json
deleted file mode 100644
index 172dd3a90ea..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-duplications/duplications-removed.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "duplications": [
- {
- "blocks": [
- {
- "from": 11,
- "size": 5,
- "_ref": "1"
- },
- {
- "from": 12,
- "size": 5
- }
- ]
- }
- ],
- "files": {
- "1": {
- "uuid": "uuid",
- "key": "sample:sample",
- "name": "Sample",
- "longName": "Sample",
- "q": "FIL",
- "subProject": "sample:subproject",
- "subProjectName": "Sample Sub-Project",
- "project": "sample:project",
- "projectName": "Sample Project"
- }
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-duplications/duplications.json b/server/sonar-web/src/test/json/source-viewer-duplications/duplications.json
deleted file mode 100644
index 8b16733fbf6..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-duplications/duplications.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "duplications": [
- {
- "blocks": [
- {
- "from": 11,
- "size": 5,
- "_ref": "1"
- },
- {
- "from": 12,
- "size": 5,
- "_ref": "2"
- }
- ]
- }
- ],
- "files": {
- "2": {
- "uuid": "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbbb",
- "key": "duplicated:duplicated",
- "name": "Duplicated",
- "q": "FIL",
- "subProject": "duplicated:subproject",
- "subProjectName": "Duplicated Sub-Project",
- "project": "duplicated:project",
- "projectName": "Duplicated Project"
- },
- "1": {
- "uuid": "uuid",
- "key": "sample:sample",
- "name": "Sample",
- "longName": "Sample",
- "q": "FIL",
- "subProject": "sample:subproject",
- "subProjectName": "Sample Sub-Project",
- "project": "sample:project",
- "projectName": "Sample Project"
- }
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-duplications/issues.json b/server/sonar-web/src/test/json/source-viewer-duplications/issues.json
deleted file mode 100644
index 40edd884b11..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-duplications/issues.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "total": 0,
- "p": 1,
- "ps": 100,
- "issues": [],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 100,
- "total": 0,
- "fTotal": "0",
- "pages": 1
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-duplications/lines.json b/server/sonar-web/src/test/json/source-viewer-duplications/lines.json
deleted file mode 100644
index 5fc7b0cb4de..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-duplications/lines.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{"sources": [
- { "line": 1, "code": "line 1" },
- { "line": 2, "code": "line 2" },
- { "line": 3, "code": "line 3" },
- { "line": 4, "code": "line 4" },
- { "line": 5, "code": "line 5" },
- { "line": 6, "code": "line 6" },
- { "line": 7, "code": "line 7" },
- { "line": 8, "code": "line 8" },
- { "line": 9, "code": "line 9" },
- { "line": 10, "code": "line 10" },
- { "line": 11, "code": "line 11", "duplicated": true },
- { "line": 12, "code": "line 12", "duplicated": true },
- { "line": 13, "code": "line 13", "duplicated": true },
- { "line": 14, "code": "line 14", "duplicated": true },
- { "line": 15, "code": "line 15", "duplicated": true },
- { "line": 16, "code": "line 16" },
- { "line": 17, "code": "line 17" },
- { "line": 18, "code": "line 18" },
- { "line": 19, "code": "line 19" },
- { "line": 20, "code": "line 20" }
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-issues/app.json b/server/sonar-web/src/test/json/source-viewer-issues/app.json
deleted file mode 100644
index 2e32ef03a07..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-issues/app.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "uuid": "uuid",
- "key": "sample:sample",
- "path": "sample/path",
- "name": "Sample",
- "longName": "Sample",
- "q": "FIL",
- "subProject": "sample:subproject",
- "subProjectName": "Sample Sub-Project",
- "project": "sample:project",
- "projectName": "Sample Project",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "20",
- "issues": "17"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-issues/issues.json b/server/sonar-web/src/test/json/source-viewer-issues/issues.json
deleted file mode 100644
index 6cde7102b98..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-issues/issues.json
+++ /dev/null
@@ -1,272 +0,0 @@
-{
- "total": 6,
- "p": 1,
- "ps": 100,
- "projects": [
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- }
- ],
- "components": [
- {
- "uuid": "83379565-7af3-4047-8d1a-ed42b10309b0",
- "key": "org.codehaus.sonar:sonar-batch",
- "id": 1624,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Batch",
- "longName": "SonarQube :: Batch",
- "path": "sonar-batch",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- },
- {
- "uuid": "uuid",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "id": 19983,
- "enabled": true,
- "qualifier": "FIL",
- "name": "Cache.java",
- "longName": "src/main/java/org/sonar/batch/index/Cache.java",
- "path": "src/main/java/org/sonar/batch/index/Cache.java",
- "projectId": 2865,
- "subProjectId": 1624
- }
- ],
- "issues": [
- {
- "key": "20002ec7-b647-44da-bdf5-4d9fbf4b7c58",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "2 duplicated blocks of code.",
- "debt": "2h",
- "creationDate": "2014-05-01T23:38:31+0200",
- "updateDate": "2014-07-01T17:48:47+0200",
- "fUpdateAge": "5 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "e4de6481-7bfb-460a-8b3c-24459f9561d3",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 2,
- "author": "Simon Brandhof",
- "creationDate": "2013-08-09T16:04:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "59fc17f7-c977-4cb6-8f04-fbe88e4b9186",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1192",
- "status": "CONFIRMED",
- "severity": "MINOR",
- "message": "Define a constant instead of duplicating this literal \"Fail to get keys from cache \" 3 times.",
- "line": 2,
- "debt": "10min",
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2014-02-20T07:48:16+0100",
- "updateDate": "2014-02-24T16:57:34+0100",
- "fUpdateAge": "9 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "71a26f48-a90d-4a76-a745-4f6e6e8b1773",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 12,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "01461208-6c1e-4cdf-9f27-b7afa78e76ec",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 14,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "75419c88-0e3c-4311-aa47-fe5731e67558",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 15,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- }
- ],
- "rules": [
- {
- "key": "common-java:DuplicatedBlocks",
- "name": "Duplicated blocks",
- "lang": "java",
- "desc": "<p>An issue is created on a file as soon as there is a block of duplicated code on this file. It gives the number of blocks in the file.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1192",
- "name": "String literals should not be duplicated",
- "lang": "java",
- "desc": "<p>\n Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.\n On the other hand, constants can be referenced from many places, but only need to be updated in a single place.\n</p>\n\n<h2>Non Compliant Code Example</h2>\n\n<pre>\npublic void run() {\n prepare(\"action1\"); // Non-Compliant - \"action1\" is duplicated 3 times\n execute(\"action1\");\n release(\"action1\");\n}\n\n@SuppressWarning(\"all\") // Compliant - annotations are excluded\nprivate void method1() { /* ... */ }\n@SuppressWarning(\"all\")\nprivate void method2() { /* ... */ }\n\npublic String method3(String a) {\n System.out.println(\"'\" + a + \"'\"); // Compliant - literal \"'\" has less than 5 characters and is excluded\n return \"\"; // Compliant - literal \"\" has less than 5 characters and is excluded\n}\n</pre>\n\n<h2>Compliant Code Example</h2>\n\n<pre>\nprivate static final String ACTION_1 = \"action1\"; // Compliant\n\npublic void run() {\n prepare(ACTION_1); // Compliant\n execute(ACTION_1);\n release(ACTION_1);\n}\n</pre>\n\n<h2>Exceptions</h2>\n<p>To prevent generating some false-positives, literals having less than 5 characters are excluded.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1135",
- "name": "TODO tags should be handled",
- "lang": "java",
- "desc": "<p>\n<code>TODO</code> tags are commonly used to mark places where some more code is required, but which the developer wants to implement later.\nSometimes the developer will not have the time or will simply forget to get back to that tag.\nThis rule is meant to track those tags, and ensure that they do not go unnoticed.\n</p>\n\n<p>The following code illustrates this rule:</p>\n\n<pre>\nvoid doSomething() {\n // TODO\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- }
- ],
- "users": [
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- }
- ],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 100,
- "total": 6,
- "fTotal": "6",
- "pages": 1
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-issues/lines.json b/server/sonar-web/src/test/json/source-viewer-issues/lines.json
deleted file mode 100644
index 7c753b29125..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-issues/lines.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{"sources": [
- { "line": 1, "code": "line 1" },
- { "line": 2, "code": "line 2" },
- { "line": 3, "code": "line 3" },
- { "line": 4, "code": "line 4" },
- { "line": 5, "code": "line 5" },
- { "line": 6, "code": "line 6" },
- { "line": 7, "code": "line 7" },
- { "line": 8, "code": "line 8" },
- { "line": 9, "code": "line 9" },
- { "line": 10, "code": "line 10" },
- { "line": 11, "code": "line 11" },
- { "line": 12, "code": "line 12" },
- { "line": 13, "code": "line 13" },
- { "line": 14, "code": "line 14" },
- { "line": 15, "code": "line 15" },
- { "line": 16, "code": "line 16" }
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-issues/set-severity.json b/server/sonar-web/src/test/json/source-viewer-issues/set-severity.json
deleted file mode 100644
index 878d21d92f0..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-issues/set-severity.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "issue": {
- "key": "59fc17f7-c977-4cb6-8f04-fbe88e4b9186",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1192",
- "status": "CONFIRMED",
- "severity": "CRITICAL",
- "message": "Define a constant instead of duplicating this literal \"Fail to get keys from cache \" 3 times.",
- "line": 2,
- "debt": "10min",
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2014-02-20T07:48:16+0100",
- "updateDate": "2014-02-24T16:57:34+0100",
- "fUpdateAge": "9 months",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "unconfirm",
- "resolve",
- "falsepositive"
- ]
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-scm/app.json b/server/sonar-web/src/test/json/source-viewer-scm/app.json
deleted file mode 100644
index 7fad540b881..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-scm/app.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "uuid": "uuid",
- "key": "sample:sample",
- "path": "sample/path",
- "name": "Sample",
- "longName": "Sample",
- "q": "FIL",
- "subProject": "sample:subproject",
- "subProjectName": "Sample Sub-Project",
- "project": "sample:project",
- "projectName": "Sample Project",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "20",
- "duplicationDensity": "25%"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-scm/issues.json b/server/sonar-web/src/test/json/source-viewer-scm/issues.json
deleted file mode 100644
index 40edd884b11..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-scm/issues.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "total": 0,
- "p": 1,
- "ps": 100,
- "issues": [],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 100,
- "total": 0,
- "fTotal": "0",
- "pages": 1
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-scm/lines.json b/server/sonar-web/src/test/json/source-viewer-scm/lines.json
deleted file mode 100644
index c934ddd0e0a..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-scm/lines.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "sources": [
- {
- "line": 1,
- "code": "line 1",
- "scmAuthor": "sample-author",
- "scmDate": "2015-01-01T00:00:00+0000",
- "scmRevision": "samplerevision"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-should-not-show-source-if-no-permission/api-components-app.json b/server/sonar-web/src/test/json/source-viewer-should-not-show-source-if-no-permission/api-components-app.json
deleted file mode 100644
index db4620fbc23..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-should-not-show-source-if-no-permission/api-components-app.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "uuid": "12345",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Simplest.java",
- "path": "src/main/java/foo/Simplest.java",
- "name": "Simplest.java",
- "longName": "src/main/java/foo/Simplest.java",
- "q": "FIL",
- "project": "test:fake-project-for-tests",
- "projectName": "Fake Project for Tests",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "8",
- "coverage": "75.0%",
- "debt": "44min",
- "sqaleRating": "C",
- "debtRatio": "18.3%",
- "issues": "5"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-should-not-show-source-if-no-permission/api-issues-search.json b/server/sonar-web/src/test/json/source-viewer-should-not-show-source-if-no-permission/api-issues-search.json
deleted file mode 100644
index 73d6a9fcf3d..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-should-not-show-source-if-no-permission/api-issues-search.json
+++ /dev/null
@@ -1,234 +0,0 @@
-{
- "total": 5,
- "p": 1,
- "ps": 100,
- "projects": [
- {
- "uuid": "e07e9bed-f45d-4538-a5e8-77031c1ecae7",
- "key": "test:fake-project-for-tests",
- "id": 36125,
- "qualifier": "TRK",
- "name": "Fake Project for Tests",
- "longName": "Fake Project for Tests"
- }
- ],
- "components": [
- {
- "uuid": "b4248001-df0c-436a-8acd-a152809b8a23",
- "key": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "id": 36129,
- "enabled": true,
- "qualifier": "FIL",
- "name": "Simplest.java",
- "longName": "src/main/java/foo/Simplest.java",
- "path": "src/main/java/foo/Simplest.java",
- "projectId": 36125,
- "subProjectId": 36125
- },
- {
- "uuid": "e07e9bed-f45d-4538-a5e8-77031c1ecae7",
- "key": "test:fake-project-for-tests",
- "id": 36125,
- "enabled": true,
- "qualifier": "TRK",
- "name": "Fake Project for Tests",
- "longName": "Fake Project for Tests"
- }
- ],
- "issues": [
- {
- "key": "91b13078-6f69-4b51-ab0f-8fd0bc391532",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:S00105",
- "status": "OPEN",
- "severity": "MINOR",
- "message": "Replace all tab characters in this file by sequences of white-spaces.",
- "debt": "2min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "c18ae6fa-fac7-46b5-bd71-feef7906b05a",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:S1118",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Add a private constructor to hide the implicit public one.",
- "line": 6,
- "debt": "30min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "816282ec-0ca9-4d03-b8bc-22b515496fe4",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:IndentationCheck",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Make this line start at column 3.",
- "line": 8,
- "debt": "1min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "0229497b-a613-48f3-83ed-2b98983e5e60",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:IndentationCheck",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Make this line start at column 5.",
- "line": 10,
- "debt": "1min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "896ccfe0-bb85-4155-be1f-1aaece716539",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:S106",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Replace this usage of System.out or System.err by a logger.",
- "line": 12,
- "debt": "10min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- }
- ],
- "rules": [
- {
- "key": "squid:IndentationCheck",
- "name": "Source code should be correctly indented",
- "lang": "java",
- "desc": "<p>\nProper indentation is a simple and effective way to improve the code's readability.\nConsistent indentation among developers also reduces the differences that are committed to source control systems, making code reviews easier.\n</p>\n\n<p>The following code illustrates this rule with an indentation level of 2:</p>\n\n<pre>\nclass Foo {\n public int a; // Compliant\npublic int b; // Non-Compliant\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1118",
- "name": "Utility classes should not have a public constructor",
- "lang": "java",
- "desc": "<p>\nUtility classes, which are a collection of static members, are not meant to be instantiated.\nThey should therefore not have public constructors.\n</p>\n\n<p>\nJava adds an implicit public constructor to every class which does not define at least one explicitly.\nHence, at least one non-public constructor should be defined.\n</p>\n\n<p>The following code:</p>\n\n<pre>\nclass StringUtils { // Non-Compliant\n\n public static String concatenate(String s1, String s2) {\n return s1 + s2;\n }\n\n}\n</pre>\n\n<p>should be refactored into:</p>\n\n<pre>\nclass StringUtils { // Compliant\n\n private StringUtils() {\n }\n\n public static String concatenate(String s1, String s2) {\n return s1 + s2;\n }\n\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S00105",
- "name": "Tabulation characters should not be used",
- "lang": "java",
- "desc": "<p>\nDevelopers should not need to configure the tab width of their text editors in order to be able to read source code.\nSo the use of tabulation character must be banned.\n</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S106",
- "name": "System.out and System.err should not be used as loggers",
- "lang": "java",
- "desc": "<p>Two important requirements must be fulfilled when logging messages:</p>\n\n<ul>\n <li>The user must be able to easily retrieve the logs.</li>\n <li>The format of all messages must be uniform to enable users to easily browse them.</li>\n</ul>\n\n<p>\nIf a program directly writes to the standard output, there is absolutely no way to comply with these requirements.\nThat's why defining and using a dedicated logger is highly recommended.\n</p>\n\n<p>\nThe following code snippet illustrates this rule:\n</p>\n\n<pre>\nSystem.out.println(\"My Message\"); // Non-Compliant\n\nlogger.log(\"My Message\"); // Compliant\n</pre>",
- "status": "READY",
- "langName": "Java"
- }
- ],
- "users": [
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- }
- ],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 100,
- "total": 5,
- "fTotal": "5",
- "pages": 1
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-components-app.json b/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-components-app.json
deleted file mode 100644
index 5af670f2d91..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-components-app.json
+++ /dev/null
@@ -1,21 +0,0 @@
-{
- "uuid": "12345",
- "key": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "path": "src/main/java/foo/Simplest.java",
- "name": "Simplest.java",
- "longName": "src/main/java/foo/Simplest.java",
- "q": "FIL",
- "project": "test:fake-project-for-tests",
- "projectName": "Fake Project for Tests",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "8",
- "coverage": "75.0%",
- "debt": "44min",
- "sqaleRating": "C",
- "debtRatio": "18.3%",
- "issues": "5"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-issues-search.json b/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-issues-search.json
deleted file mode 100644
index 73d6a9fcf3d..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-issues-search.json
+++ /dev/null
@@ -1,234 +0,0 @@
-{
- "total": 5,
- "p": 1,
- "ps": 100,
- "projects": [
- {
- "uuid": "e07e9bed-f45d-4538-a5e8-77031c1ecae7",
- "key": "test:fake-project-for-tests",
- "id": 36125,
- "qualifier": "TRK",
- "name": "Fake Project for Tests",
- "longName": "Fake Project for Tests"
- }
- ],
- "components": [
- {
- "uuid": "b4248001-df0c-436a-8acd-a152809b8a23",
- "key": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "id": 36129,
- "enabled": true,
- "qualifier": "FIL",
- "name": "Simplest.java",
- "longName": "src/main/java/foo/Simplest.java",
- "path": "src/main/java/foo/Simplest.java",
- "projectId": 36125,
- "subProjectId": 36125
- },
- {
- "uuid": "e07e9bed-f45d-4538-a5e8-77031c1ecae7",
- "key": "test:fake-project-for-tests",
- "id": 36125,
- "enabled": true,
- "qualifier": "TRK",
- "name": "Fake Project for Tests",
- "longName": "Fake Project for Tests"
- }
- ],
- "issues": [
- {
- "key": "91b13078-6f69-4b51-ab0f-8fd0bc391532",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:S00105",
- "status": "OPEN",
- "severity": "MINOR",
- "message": "Replace all tab characters in this file by sequences of white-spaces.",
- "debt": "2min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "c18ae6fa-fac7-46b5-bd71-feef7906b05a",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:S1118",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Add a private constructor to hide the implicit public one.",
- "line": 6,
- "debt": "30min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "816282ec-0ca9-4d03-b8bc-22b515496fe4",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:IndentationCheck",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Make this line start at column 3.",
- "line": 8,
- "debt": "1min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "0229497b-a613-48f3-83ed-2b98983e5e60",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:IndentationCheck",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Make this line start at column 5.",
- "line": 10,
- "debt": "1min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- },
- {
- "key": "896ccfe0-bb85-4155-be1f-1aaece716539",
- "component": "test:fake-project-for-tests:src/main/java/foo/Simplest.java",
- "componentId": 36129,
- "project": "test:fake-project-for-tests",
- "rule": "squid:S106",
- "status": "OPEN",
- "severity": "MAJOR",
- "message": "Replace this usage of System.out or System.err by a logger.",
- "line": 12,
- "debt": "10min",
- "creationDate": "2014-12-09T10:47:33+0100",
- "updateDate": "2014-12-09T10:47:33+0100",
- "fUpdateAge": "3 hours",
- "actions": [
- "comment",
- "assign",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive"
- ]
- }
- ],
- "rules": [
- {
- "key": "squid:IndentationCheck",
- "name": "Source code should be correctly indented",
- "lang": "java",
- "desc": "<p>\nProper indentation is a simple and effective way to improve the code's readability.\nConsistent indentation among developers also reduces the differences that are committed to source control systems, making code reviews easier.\n</p>\n\n<p>The following code illustrates this rule with an indentation level of 2:</p>\n\n<pre>\nclass Foo {\n public int a; // Compliant\npublic int b; // Non-Compliant\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1118",
- "name": "Utility classes should not have a public constructor",
- "lang": "java",
- "desc": "<p>\nUtility classes, which are a collection of static members, are not meant to be instantiated.\nThey should therefore not have public constructors.\n</p>\n\n<p>\nJava adds an implicit public constructor to every class which does not define at least one explicitly.\nHence, at least one non-public constructor should be defined.\n</p>\n\n<p>The following code:</p>\n\n<pre>\nclass StringUtils { // Non-Compliant\n\n public static String concatenate(String s1, String s2) {\n return s1 + s2;\n }\n\n}\n</pre>\n\n<p>should be refactored into:</p>\n\n<pre>\nclass StringUtils { // Compliant\n\n private StringUtils() {\n }\n\n public static String concatenate(String s1, String s2) {\n return s1 + s2;\n }\n\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S00105",
- "name": "Tabulation characters should not be used",
- "lang": "java",
- "desc": "<p>\nDevelopers should not need to configure the tab width of their text editors in order to be able to read source code.\nSo the use of tabulation character must be banned.\n</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S106",
- "name": "System.out and System.err should not be used as loggers",
- "lang": "java",
- "desc": "<p>Two important requirements must be fulfilled when logging messages:</p>\n\n<ul>\n <li>The user must be able to easily retrieve the logs.</li>\n <li>The format of all messages must be uniform to enable users to easily browse them.</li>\n</ul>\n\n<p>\nIf a program directly writes to the standard output, there is absolutely no way to comply with these requirements.\nThat's why defining and using a dedicated logger is highly recommended.\n</p>\n\n<p>\nThe following code snippet illustrates this rule:\n</p>\n\n<pre>\nSystem.out.println(\"My Message\"); // Non-Compliant\n\nlogger.log(\"My Message\"); // Compliant\n</pre>",
- "status": "READY",
- "langName": "Java"
- }
- ],
- "users": [
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- }
- ],
- "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
- ],
- "maxResultsReached": false,
- "paging": {
- "pageIndex": 1,
- "pageSize": 100,
- "total": 5,
- "fTotal": "5",
- "pages": 1
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-sources-lines.json b/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-sources-lines.json
deleted file mode 100644
index b095d82408f..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-should-open-in-new-window/api-sources-lines.json
+++ /dev/null
@@ -1,130 +0,0 @@
-{
- "sources": [
- {
- "line": 1,
- "code": "<span class=\"k\">package </span>foo;",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- },
- {
- "line": 2,
- "code": "",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- },
- {
- "line": 3,
- "code": "<span class=\"cppd\">/**</span>",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "37acee5ff6e67cdb501c08a656fbabf21160b052",
- "scmDate": "2013-09-19T15:37:05+0200"
- },
- {
- "line": 4,
- "code": "<span class=\"cppd\"> * Simple class</span>",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "37acee5ff6e67cdb501c08a656fbabf21160b052",
- "scmDate": "2013-09-19T15:37:05+0200"
- },
- {
- "line": 5,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "37acee5ff6e67cdb501c08a656fbabf21160b052",
- "scmDate": "2013-09-19T15:37:05+0200"
- },
- {
- "line": 6,
- "code": "<span class=\"k\">public </span><span class=\"k\">class </span><span class=\"sym-1 sym\">Simplest</span> {",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- },
- {
- "line": 7,
- "code": "",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- },
- {
- "line": 8,
- "code": " <span class=\"k\">public </span><span class=\"k\">static </span><span class=\"k\">int </span><span class=\"sym-2 sym\">add</span>(<span class=\"k\">int </span><span class=\"sym-3 sym\">a</span>, <span class=\"k\">int </span><span class=\"sym-4 sym\">b</span>) {",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- },
- {
- "line": 9,
- "code": " \t<span class=\"cppd\">// introduce a variable that is not needed - just to get a violation</span>",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "322e4e8b3cb54a39651f563273745e6ee737fb3e",
- "scmDate": "2013-10-15T16:14:22+0200"
- },
- {
- "line": 10,
- "code": " \t<span class=\"k\">int </span><span class=\"sym-5 sym\">result</span> = <span class=\"sym-3 sym\">a</span> + <span class=\"sym-4 sym\">b</span>;",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "322e4e8b3cb54a39651f563273745e6ee737fb3e",
- "scmDate": "2013-10-15T16:14:22+0200"
- },
- {
- "line": 11,
- "code": "",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "44e0c5b4fc18a006a405d3f3d489896245fab3d1",
- "scmDate": "2014-01-09T16:48:59+0100"
- },
- {
- "line": 12,
- "code": " \tSystem.out.println(<span class=\"s\">\"\"</span>);",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "44e0c5b4fc18a006a405d3f3d489896245fab3d1",
- "scmDate": "2014-01-09T16:48:59+0100"
- },
- {
- "line": 13,
- "code": "",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "44e0c5b4fc18a006a405d3f3d489896245fab3d1",
- "scmDate": "2014-01-09T16:48:59+0100"
- },
- {
- "line": 14,
- "code": " <span class=\"k\">return </span><span class=\"sym-5 sym\">result</span>;",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "322e4e8b3cb54a39651f563273745e6ee737fb3e",
- "scmDate": "2013-10-15T16:14:22+0200"
- },
- {
- "line": 15,
- "code": " }",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- },
- {
- "line": 16,
- "code": "",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- },
- {
- "line": 17,
- "code": "}",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- },
- {
- "line": 18,
- "code": "",
- "scmAuthor": "fabrice.bellingard@sonarsource.com",
- "scmRevision": "f467e9befd3ff15bb1dbf634b0e9b45d44110bac",
- "scmDate": "2013-09-16T15:31:49+0200"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/app-not-logged-in.json b/server/sonar-web/src/test/json/source-viewer-spec/app-not-logged-in.json
deleted file mode 100644
index e8b7516ee3c..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/app-not-logged-in.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "uuid": "12345",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "path": "src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "longName": "src/main/java/org/sonar/batch/index/Cache.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canCreateManualIssue": false,
- "measures": {
- "lines": "378",
- "coverage": "74.3%",
- "duplicationDensity": "5.8%",
- "debt": "2h 10min",
- "sqaleRating": "A",
- "debtRatio": "1.1%",
- "issues": "6"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/app-test.json b/server/sonar-web/src/test/json/source-viewer-spec/app-test.json
deleted file mode 100644
index a51b743b4f9..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/app-test.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "uuid": "uuid",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "path": "src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "longName": "src/main/java/org/sonar/batch/index/Cache.java",
- "q": "UTS",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "378",
- "coverage": "74.3%",
- "duplicationDensity": "5.8%",
- "debt": "2h 10min",
- "sqaleRating": "A",
- "debtRatio": "1.1%",
- "issues": "6"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/app.json b/server/sonar-web/src/test/json/source-viewer-spec/app.json
deleted file mode 100644
index 2e4139e4d0e..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/app.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "uuid": "uuid",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "path": "src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "longName": "src/main/java/org/sonar/batch/index/Cache.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "lines": "378",
- "coverage": "74.3%",
- "duplicationDensity": "5.8%",
- "debt": "2h 10min",
- "sqaleRating": "A",
- "debtRatio": "1.1%",
- "issues": "6"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/coverage.json b/server/sonar-web/src/test/json/source-viewer-spec/coverage.json
deleted file mode 100644
index ace41da645e..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/coverage.json
+++ /dev/null
@@ -1,196 +0,0 @@
-{"coverage": [
- [46, true, 32, null, null],
- [47, true, 32, null, null],
- [48, true, 32, null, null],
- [49, true, 32, null, null],
- [52, true, 2, null, null],
- [53, true, 2, null, null],
- [57, true, 18, null, null],
- [58, true, 18, null, null],
- [62, true, 13, null, null],
- [63, true, 13, null, null],
- [67, false, null, null, null],
- [68, false, null, null, null],
- [73, true, 27, null, null],
- [74, true, 27, null, null],
- [75, true, 27, null, null],
- [76, true, 1, null, null],
- [77, true, 1, null, null],
- [85, true, 5, null, null],
- [86, true, 5, null, null],
- [94, true, 10, null, null],
- [95, true, 10, null, null],
- [103, true, 11, null, null],
- [104, true, 11, null, null],
- [112, false, null, null, null],
- [113, false, null, null, null],
- [120, true, 17, null, null],
- [121, true, 17, 2, 2],
- [122, true, 8, null, null],
- [124, true, 13, null, null],
- [125, false, null, null, null],
- [127, false, null, null, null],
- [132, true, 4, null, null],
- [133, true, 4, null, null],
- [137, true, 3, null, null],
- [138, true, 3, null, null],
- [142, true, 5, null, null],
- [143, true, 5, null, null],
- [147, false, null, null, null],
- [148, false, null, null, null],
- [153, true, 7, null, null],
- [154, true, 7, null, null],
- [155, false, null, null, null],
- [157, false, null, null, null],
- [162, true, 3, null, null],
- [163, true, 3, null, null],
- [167, true, 3, null, null],
- [168, true, 3, null, null],
- [172, true, 2, null, null],
- [173, true, 2, null, null],
- [177, false, null, null, null],
- [178, false, null, null, null],
- [183, true, 6, null, null],
- [184, false, null, null, null],
- [186, false, null, null, null],
- [196, true, 5, null, null],
- [197, true, 5, null, null],
- [201, true, 2, null, null],
- [202, true, 2, null, null],
- [206, true, 1, null, null],
- [207, true, 1, null, null],
- [211, false, null, null, null],
- [212, false, null, null, null],
- [217, true, 5, null, null],
- [218, true, 5, null, null],
- [219, true, 5, null, null],
- [220, true, 5, null, null],
- [221, false, null, null, null],
- [222, false, null, null, null],
- [231, true, 4, null, null],
- [232, true, 4, null, null],
- [233, false, null, null, null],
- [234, false, null, null, null],
- [235, true, 4, null, null],
- [236, true, 4, null, null],
- [248, true, 4, null, null],
- [249, true, 4, null, null],
- [250, true, 4, null, null],
- [251, true, 4, null, null],
- [252, true, 4, null, null],
- [253, true, 4, 2, 2],
- [254, true, 2, null, null],
- [256, true, 4, null, null],
- [257, false, null, null, null],
- [258, false, null, null, null],
- [265, true, 1, null, null],
- [266, true, 1, null, null],
- [267, true, 1, null, null],
- [268, true, 1, null, null],
- [269, true, 1, null, null],
- [270, true, 1, null, null],
- [271, true, 1, 2, 2],
- [272, true, 1, null, null],
- [274, true, 1, null, null],
- [275, false, null, null, null],
- [276, false, null, null, null],
- [287, true, 4, null, null],
- [288, true, 4, null, null],
- [289, true, 4, null, null],
- [290, true, 4, null, null],
- [291, true, 4, 2, 2],
- [292, true, 3, null, null],
- [294, true, 4, null, null],
- [295, false, null, null, null],
- [296, false, null, null, null],
- [305, true, 1, null, null],
- [306, true, 1, null, null],
- [307, true, 1, null, null],
- [308, true, 1, null, null],
- [309, true, 1, null, null],
- [310, false, null, null, null],
- [311, false, null, null, null],
- [316, false, null, null, null],
- [324, true, 23, null, null],
- [325, true, 23, null, null],
- [326, true, 23, null, null],
- [327, true, 23, null, null],
- [328, true, 23, null, null],
- [329, false, null, null, null],
- [330, false, null, null, null],
- [339, true, 16, null, null],
- [340, true, 16, null, null],
- [341, true, 16, null, null],
- [342, true, 16, null, null],
- [343, false, null, null, null],
- [344, false, null, null, null],
- [349, true, 9, null, null],
- [350, true, 9, null, null],
- [351, true, 9, null, null],
- [355, true, 3, null, null],
- [356, true, 3, null, null],
- [357, true, 3, null, null],
- [361, true, 7, null, null],
- [362, true, 7, null, null],
- [363, true, 7, null, null],
- [366, true, 20, null, null],
- [367, true, 20, null, null],
- [368, true, 20, null, null],
- [371, true, 18, null, null],
- [372, true, 18, null, null],
- [373, true, 18, null, null],
- [376, false, null, null, null],
- [377, false, null, 2, 0],
- [378, false, null, null, null],
- [380, false, null, null, null],
- [389, true, 26, null, null],
- [390, true, 26, null, null],
- [391, true, 26, null, null],
- [395, true, 26, null, null],
- [403, true, 26, null, null],
- [404, true, 26, null, null],
- [405, true, 26, null, null],
- [406, true, 26, null, null],
- [411, true, 25, null, null],
- [412, false, null, null, null],
- [413, false, null, null, null],
- [421, true, 23, null, null],
- [422, false, null, null, null],
- [423, false, null, null, null],
- [424, true, 23, null, null],
- [425, true, 23, 2, 1],
- [426, true, 23, null, null],
- [428, false, null, null, null],
- [433, false, null, null, null],
- [440, true, 10, null, null],
- [441, true, 10, null, null],
- [442, true, 10, null, null],
- [446, true, 10, null, null],
- [454, true, 10, null, null],
- [455, true, 10, null, null],
- [456, true, 10, null, null],
- [457, true, 10, null, null],
- [462, true, 10, null, null],
- [463, false, null, null, null],
- [464, false, null, null, null],
- [472, true, 9, null, null],
- [473, false, null, null, null],
- [474, false, null, null, null],
- [475, true, 9, null, null],
- [476, true, 9, 2, 1],
- [477, true, 9, null, null],
- [478, true, 9, null, null],
- [479, true, 9, null, null],
- [480, true, 9, 2, 2],
- [481, true, 9, null, null],
- [483, true, 9, null, null],
- [485, false, null, null, null],
- [490, false, null, null, null],
- [498, true, 16, null, null],
- [499, true, 16, null, null],
- [500, true, 16, null, null],
- [501, true, 16, null, null],
- [504, true, 14, null, null],
- [509, true, 14, null, null],
- [514, false, null, null, null]
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/covered-files.json b/server/sonar-web/src/test/json/source-viewer-spec/covered-files.json
deleted file mode 100644
index 210d0804d1e..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/covered-files.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "files": [
- {
- "key": "covered-file1",
- "longName": "src/main/java/com/sonar/CoveredFile1.java",
- "coveredLines": 2
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/cross-project-duplications.json b/server/sonar-web/src/test/json/source-viewer-spec/cross-project-duplications.json
deleted file mode 100644
index cd445d5f5b2..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/cross-project-duplications.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{"duplications": [
- {
- "blocks": [
- {
- "from": 404,
- "size": 15,
- "_ref": "1"
- },
- {
- "from": 455,
- "size": 15,
- "_ref": "2"
- }
- ]
- }
-], "files": {
- "1": {
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "name": "src/main/java/org/sonar/batch/index/Cache.java",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch"
- },
- "2": {
- "key": "org.codehaus.sonar-plugins.javascript:sonar-javascript-plugin:src/main/java/org/sonar/plugins/javascript/core/JavaScript.java",
- "name": "src/main/java/org/sonar/plugins/javascript/core/JavaScript.java",
- "project": "org.codehaus.sonar-plugins.javascript:javascript",
- "projectName": "JavaScript",
- "subProject": "org.codehaus.sonar-plugins.javascript:sonar-javascript-plugin",
- "subProjectName": "JavaScript :: Sonar Plugin"
- }
-}}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/duplications-in-deleted-files.json b/server/sonar-web/src/test/json/source-viewer-spec/duplications-in-deleted-files.json
deleted file mode 100644
index 9de23d1ce7d..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/duplications-in-deleted-files.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{"duplications": [
- {
- "blocks": [
- {
- "from": 404,
- "size": 15,
- "_ref": "1"
- },
- {
- "from": 455,
- "size": 15
- }
- ]
- }
-], "files": {
- "1": {
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "name": "src/main/java/org/sonar/batch/index/Cache.java",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch"
- }
-}}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/duplications.json b/server/sonar-web/src/test/json/source-viewer-spec/duplications.json
deleted file mode 100644
index f77e92bef26..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/duplications.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{"duplications": [
- {
- "blocks": [
- {
- "from": 404,
- "size": 15,
- "_ref": "1"
- },
- {
- "from": 455,
- "size": 15,
- "_ref": "1"
- }
- ]
- }
-], "files": {
- "1": {
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "name": "src/main/java/org/sonar/batch/index/Cache.java",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch"
- }
-}}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/issues-details.json b/server/sonar-web/src/test/json/source-viewer-spec/issues-details.json
deleted file mode 100644
index 201535bd6b7..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/issues-details.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "total": 6,
- "p": 1,
- "ps": 100,
- "issues": [],
- "facets": [
- {
- "property": "severities",
- "values": [
- {
- "val": "INFO",
- "count": 5
- },
- {
- "val": "MINOR",
- "count": 4
- },
- {
- "val": "MAJOR",
- "count": 3
- },
- {
- "val": "CRITICAL",
- "count": 2
- },
- {
- "val": "BLOCKER",
- "count": 1
- }
- ]
- },
- {
- "property": "tags",
- "values": [
- {
- "val": "bug",
- "count": 8
- },
- {
- "val": "sql",
- "count": 7
- }
- ]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/issues-with-precise-location.json b/server/sonar-web/src/test/json/source-viewer-spec/issues-with-precise-location.json
deleted file mode 100644
index 895acb642a9..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/issues-with-precise-location.json
+++ /dev/null
@@ -1,185 +0,0 @@
-{
- "total": 3,
- "p": 1,
- "ps": 500,
- "paging": {
- "pageIndex": 1,
- "pageSize": 500,
- "total": 3
- },
- "issues": [
- {
- "key": "00c52e57-1e71-4079-aee3-19004bc30899",
- "rule": "c:S1764",
- "severity": "CRITICAL",
- "component": "com.sonarsource.samples:multiple-issue-locations:src/main/c/identical-expressions.c",
- "componentId": 1875,
- "project": "com.sonarsource.samples:multiple-issue-locations",
- "subProject": "com.sonarsource.samples:multiple-issue-locations",
- "line": 3,
- "textRange": {
- "startLine": 3,
- "endLine": 3,
- "startOffset": 24,
- "endOffset": 29
- },
- "flows": [
- {
- "locations": [
- {
- "textRange": {
- "startLine": 3,
- "endLine": 3,
- "startOffset": 15,
- "endOffset": 20
- },
- "msg": "Secondary Location #1"
- }
- ]
- }
- ],
- "status": "OPEN",
- "message": "Identical sub-expressions on both sides of operator \"||\"",
- "debt": "2min",
- "author": "",
- "tags": [
- "bug",
- "cert"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "comments": [],
- "creationDate": "2015-08-12T14:10:00+0200",
- "updateDate": "2015-08-12T14:10:00+0200"
- },
- {
- "key": "62f1a1f9-b2d0-4003-a774-81ad8668b7ff",
- "rule": "c:S1764",
- "severity": "CRITICAL",
- "component": "com.sonarsource.samples:multiple-issue-locations:src/main/c/identical-expressions.c",
- "componentId": 1875,
- "project": "com.sonarsource.samples:multiple-issue-locations",
- "subProject": "com.sonarsource.samples:multiple-issue-locations",
- "line": 9,
- "textRange": {
- "startLine": 9,
- "endLine": 9,
- "startOffset": 6,
- "endOffset": 10
- },
- "flows": [
- {
- "locations": [
- {
- "textRange": {
- "startLine": 8,
- "endLine": 8,
- "startOffset": 6,
- "endOffset": 11
- },
- "msg": "Secondary Location #1"
- }
- ]
- }
- ],
- "status": "OPEN",
- "message": "Identical sub-expressions on both sides of operator \"||\"",
- "debt": "2min",
- "author": "",
- "tags": [
- "bug",
- "cert"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "comments": [],
- "creationDate": "2015-08-12T14:10:00+0200",
- "updateDate": "2015-08-12T14:10:00+0200"
- },
- {
- "key": "4ea2b024-fc40-4050-ba36-1083bb09561a",
- "rule": "c:S1764",
- "severity": "CRITICAL",
- "component": "com.sonarsource.samples:multiple-issue-locations:src/main/c/identical-expressions.c",
- "componentId": 1875,
- "project": "com.sonarsource.samples:multiple-issue-locations",
- "subProject": "com.sonarsource.samples:multiple-issue-locations",
- "line": 18,
- "textRange": {
- "startLine": 18,
- "endLine": 19,
- "startOffset": 13,
- "endOffset": 9
- },
- "flows": [
- {
- "locations": [
- {
- "textRange": {
- "startLine": 17,
- "endLine": 18,
- "startOffset": 15,
- "endOffset": 9
- },
- "msg": "Secondary Location #1"
- }
- ]
- }
- ],
- "status": "OPEN",
- "message": "Identical sub-expressions on both sides of operator \"||\"",
- "debt": "2min",
- "author": "",
- "tags": [
- "bug",
- "cert"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "comments": [],
- "creationDate": "2015-08-12T14:10:00+0200",
- "updateDate": "2015-08-12T14:10:00+0200"
- }
- ],
- "components": [],
- "rules": [],
- "users": [],
- "actionPlans": [],
- "languages": []
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/issues.json b/server/sonar-web/src/test/json/source-viewer-spec/issues.json
deleted file mode 100644
index 0b1601191ef..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/issues.json
+++ /dev/null
@@ -1,200 +0,0 @@
-{"total": 6, "p": 1, "ps": 100, "projects": [
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- }
-], "components": [
- {
- "uuid": "83379565-7af3-4047-8d1a-ed42b10309b0",
- "key": "org.codehaus.sonar:sonar-batch",
- "id": 1624,
- "enabled": true,
- "qualifier": "BRC",
- "name": "SonarQube :: Batch",
- "longName": "SonarQube :: Batch",
- "path": "sonar-batch",
- "projectId": 2865,
- "subProjectId": 2865
- },
- {
- "uuid": "69e57151-be0d-4157-adff-c06741d88879",
- "key": "org.codehaus.sonar:sonar",
- "id": 2865,
- "enabled": true,
- "qualifier": "TRK",
- "name": "SonarQube",
- "longName": "SonarQube"
- },
- {
- "uuid": "b9615992-2458-4d54-a22f-b91ee7ba5bc5",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "id": 19983,
- "enabled": true,
- "qualifier": "FIL",
- "name": "Cache.java",
- "longName": "src/main/java/org/sonar/batch/index/Cache.java",
- "path": "src/main/java/org/sonar/batch/index/Cache.java",
- "projectId": 2865,
- "subProjectId": 1624
- }
-], "issues": [
- {
- "key": "20002ec7-b647-44da-bdf5-4d9fbf4b7c58",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "common-java:DuplicatedBlocks",
- "status": "CONFIRMED",
- "severity": "MAJOR",
- "message": "2 duplicated blocks of code.",
- "debt": "2h",
- "creationDate": "2014-05-01T23:38:31+0200",
- "updateDate": "2014-07-01T17:48:47+0200",
- "fUpdateAge": "5 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "71a26f48-a90d-4a76-a745-4f6e6e8b1773",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 125,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "75419c88-0e3c-4311-aa47-fe5731e67558",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 155,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "01461208-6c1e-4cdf-9f27-b7afa78e76ec",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 184,
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2013-10-10T23:51:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "e4de6481-7bfb-460a-8b3c-24459f9561d3",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1135",
- "status": "CONFIRMED",
- "severity": "INFO",
- "message": "Complete the task associated to this TODO comment.",
- "line": 239,
- "author": "Simon Brandhof",
- "creationDate": "2013-08-09T16:04:33+0200",
- "updateDate": "2014-07-29T23:15:18+0200",
- "fUpdateAge": "4 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- },
- {
- "key": "59fc17f7-c977-4cb6-8f04-fbe88e4b9186",
- "component": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "componentId": 19983,
- "project": "org.codehaus.sonar:sonar",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "rule": "squid:S1192",
- "status": "CONFIRMED",
- "severity": "MINOR",
- "message": "Define a constant instead of duplicating this literal \"Fail to get keys from cache \" 3 times.",
- "line": 257,
- "debt": "10min",
- "author": "simon.brandhof@gmail.com",
- "creationDate": "2014-02-20T07:48:16+0100",
- "updateDate": "2014-02-24T16:57:34+0100",
- "fUpdateAge": "9 months",
- "actions": ["comment", "assign", "assign_to_me", "plan", "set_severity"],
- "transitions": ["unconfirm", "resolve", "falsepositive"]
- }
-], "rules": [
- {
- "key": "common-java:DuplicatedBlocks",
- "name": "Duplicated blocks",
- "lang": "java",
- "desc": "<p>An issue is created on a file as soon as there is a block of duplicated code on this file. It gives the number of blocks in the file.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1192",
- "name": "String literals should not be duplicated",
- "lang": "java",
- "desc": "<p>\n Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences.\n On the other hand, constants can be referenced from many places, but only need to be updated in a single place.\n</p>\n\n<h2>Non Compliant Code Example</h2>\n\n<pre>\npublic void run() {\n prepare(\"action1\"); // Non-Compliant - \"action1\" is duplicated 3 times\n execute(\"action1\");\n release(\"action1\");\n}\n\n@SuppressWarning(\"all\") // Compliant - annotations are excluded\nprivate void method1() { /* ... */ }\n@SuppressWarning(\"all\")\nprivate void method2() { /* ... */ }\n\npublic String method3(String a) {\n System.out.println(\"'\" + a + \"'\"); // Compliant - literal \"'\" has less than 5 characters and is excluded\n return \"\"; // Compliant - literal \"\" has less than 5 characters and is excluded\n}\n</pre>\n\n<h2>Compliant Code Example</h2>\n\n<pre>\nprivate static final String ACTION_1 = \"action1\"; // Compliant\n\npublic void run() {\n prepare(ACTION_1); // Compliant\n execute(ACTION_1);\n release(ACTION_1);\n}\n</pre>\n\n<h2>Exceptions</h2>\n<p>To prevent generating some false-positives, literals having less than 5 characters are excluded.</p>",
- "status": "READY",
- "langName": "Java"
- },
- {
- "key": "squid:S1135",
- "name": "TODO tags should be handled",
- "lang": "java",
- "desc": "<p>\n<code>TODO</code> tags are commonly used to mark places where some more code is required, but which the developer wants to implement later.\nSometimes the developer will not have the time or will simply forget to get back to that tag.\nThis rule is meant to track those tags, and ensure that they do not go unnoticed.\n</p>\n\n<p>The following code illustrates this rule:</p>\n\n<pre>\nvoid doSomething() {\n // TODO\n}\n</pre>",
- "status": "READY",
- "langName": "Java"
- }
-], "users": [
- {
- "login": "admin",
- "name": "Admin Admin",
- "active": true,
- "email": "admin@sonarsource.com"
- }
-], "languages": [
- {
- "key": "js",
- "name": "JavaScript"
- },
- {
- "key": "java",
- "name": "Java"
- }
-], "maxResultsReached": false, "paging": {
- "pageIndex": 1,
- "pageSize": 100,
- "total": 6,
- "fTotal": "6",
- "pages": 1
-}}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/lines.json b/server/sonar-web/src/test/json/source-viewer-spec/lines.json
deleted file mode 100644
index 2e50415266c..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/lines.json
+++ /dev/null
@@ -1,3868 +0,0 @@
-{"sources": [
- {
- "line": 1,
- "code": "<span class=\"cppd\">/*</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 2,
- "code": "<span class=\"cppd\"> * SonarQube, open source software quality management tool.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 3,
- "code": "<span class=\"cppd\"> * Copyright (C) 2008-2014 SonarSource</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "57ae3026c36ae3b0b71756d6161124b1ae594c53",
- "scmDate": "2014-03-11T17:52:41+0100"
- },
- {
- "line": 4,
- "code": "<span class=\"cppd\"> * mailto:contact AT sonarsource DOT com</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 5,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 6,
- "code": "<span class=\"cppd\"> * SonarQube is free software; you can redistribute it and/or</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 7,
- "code": "<span class=\"cppd\"> * modify it under the terms of the GNU Lesser General Public</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 8,
- "code": "<span class=\"cppd\"> * License as published by the Free Software Foundation; either</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 9,
- "code": "<span class=\"cppd\"> * version 3 of the License, or (at your option) any later version.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 10,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 11,
- "code": "<span class=\"cppd\"> * SonarQube is distributed in the hope that it will be useful,</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 12,
- "code": "<span class=\"cppd\"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 13,
- "code": "<span class=\"cppd\"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 14,
- "code": "<span class=\"cppd\"> * Lesser General Public License for more details.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 15,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 16,
- "code": "<span class=\"cppd\"> * You should have received a copy of the GNU Lesser General Public License</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 17,
- "code": "<span class=\"cppd\"> * along with this program; if not, write to the Free Software Foundation,</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 18,
- "code": "<span class=\"cppd\"> * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 19,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 20,
- "code": "<span class=\"k\">package</span> org.sonar.batch.index;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 21,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 22,
- "code": "<span class=\"k\">import </span>com.google.common.collect.<span class=\"sym-9999 sym\">Sets</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 23,
- "code": "<span class=\"k\">import </span>com.persistit.<span class=\"sym-2 sym\">Exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 24,
- "code": "<span class=\"k\">import </span>com.persistit.<span class=\"sym-9999 sym\">Key</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 25,
- "code": "<span class=\"k\">import </span>com.persistit.<span class=\"sym-9999 sym\">KeyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 26,
- "code": "<span class=\"k\">import </span>com.persistit.exception.<span class=\"sym-5 sym\">PersistitException</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 27,
- "code": "<span class=\"k\">import </span>org.apache.commons.lang.builder.<span class=\"sym-6 sym\">ToStringBuilder</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 28,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 29,
- "code": "<span class=\"k\">import </span>javax.annotation.<span class=\"sym-7 sym\">CheckForNull</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 30,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 31,
- "code": "<span class=\"k\">import </span>java.util.<span class=\"sym-8 sym\">Iterator</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 32,
- "code": "<span class=\"k\">import </span>java.util.<span class=\"sym-9 sym\">NoSuchElementException</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 33,
- "code": "<span class=\"k\">import </span>java.util.<span class=\"sym-10 sym\">Set</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 34,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 35,
- "code": "<span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 36,
- "code": "<span class=\"cppd\"> * &lt;p&gt;</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 37,
- "code": "<span class=\"cppd\"> * This cache is not thread-safe, due to direct usage of {@link com.persistit.Exchange}</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 38,
- "code": "<span class=\"cppd\"> * &lt;/p&gt;</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 39,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 40,
- "code": "<span class=\"k\">public </span><span class=\"k\">class</span> <span class=\"sym-11 sym\">Cache</span>&lt;V&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 41,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 42,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span>String <span class=\"sym-12 sym\">name</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 43,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-13 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 44,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 45,
- "code": " <span class=\"sym-14 sym\">Cache</span>(String <span class=\"sym-15 sym\">name</span>, <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-16 sym\">exchange</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 46,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-12 sym\">name</span> = <span class=\"sym-15 sym\">name</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 47,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-13 sym\">exchange</span> = <span class=\"sym-16 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 48,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 49,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 50,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-17 sym\">put</span>(Object <span class=\"sym-18 sym\">key</span>, V <span class=\"sym-19 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 51,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-18 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 52,
- "code": " <span class=\"k\">return</span> <span class=\"sym-32 sym\">doPut</span>(<span class=\"sym-19 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 53,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 54,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 55,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-20 sym\">put</span>(Object <span class=\"sym-21 sym\">firstKey</span>, Object <span class=\"sym-22 sym\">secondKey</span>, V <span class=\"sym-23 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 56,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-21 sym\">firstKey</span>, <span class=\"sym-22 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 57,
- "code": " <span class=\"k\">return</span> <span class=\"sym-32 sym\">doPut</span>(<span class=\"sym-23 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 58,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 59,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 60,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-24 sym\">put</span>(Object <span class=\"sym-25 sym\">firstKey</span>, Object <span class=\"sym-26 sym\">secondKey</span>, Object <span class=\"sym-27 sym\">thirdKey</span>, V <span class=\"sym-28 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 61,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-25 sym\">firstKey</span>, <span class=\"sym-26 sym\">secondKey</span>, <span class=\"sym-27 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 62,
- "code": " <span class=\"k\">return</span> <span class=\"sym-32 sym\">doPut</span>(<span class=\"sym-28 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 63,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 64,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 65,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-29 sym\">put</span>(Object[] <span class=\"sym-30 sym\">key</span>, V <span class=\"sym-31 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 66,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-30 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 67,
- "code": " <span class=\"k\">return</span> <span class=\"sym-32 sym\">doPut</span>(<span class=\"sym-31 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 68,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 69,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 70,
- "code": " <span class=\"k\">private </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-32 sym\">doPut</span>(V <span class=\"sym-33 sym\">value</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 71,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 72,
- "code": " <span class=\"sym-13 sym\">exchange</span>.getValue().put(<span class=\"sym-33 sym\">value</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 73,
- "code": " <span class=\"sym-13 sym\">exchange</span>.store();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 74,
- "code": " <span class=\"k\">return</span> <span class=\"k\">this</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 75,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-34 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 76,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to put element in the cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-34 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1
- },
- {
- "line": 77,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 78,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 79,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 80,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 81,
- "code": "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 82,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 83,
- "code": " <span class=\"k\">public </span>V <span class=\"sym-35 sym\">get</span>(Object <span class=\"sym-36 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 84,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-36 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 85,
- "code": " <span class=\"k\">return</span> <span class=\"sym-46 sym\">doGet</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 86,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 87,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 88,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 89,
- "code": "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 90,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 91,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 92,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-37 sym\">get</span>(Object <span class=\"sym-38 sym\">firstKey</span>, Object <span class=\"sym-39 sym\">secondKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 93,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-38 sym\">firstKey</span>, <span class=\"sym-39 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 94,
- "code": " <span class=\"k\">return</span> <span class=\"sym-46 sym\">doGet</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 95,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 96,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 97,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 98,
- "code": "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 99,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 100,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 101,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-40 sym\">get</span>(Object <span class=\"sym-41 sym\">firstKey</span>, Object <span class=\"sym-42 sym\">secondKey</span>, Object <span class=\"sym-43 sym\">thirdKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 102,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-41 sym\">firstKey</span>, <span class=\"sym-42 sym\">secondKey</span>, <span class=\"sym-43 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 103,
- "code": " <span class=\"k\">return</span> <span class=\"sym-46 sym\">doGet</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 104,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 105,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 106,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 107,
- "code": "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 108,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 109,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 110,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-44 sym\">get</span>(Object[] <span class=\"sym-45 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 111,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-45 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 112,
- "code": " <span class=\"k\">return</span> <span class=\"sym-46 sym\">doGet</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 113,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 114,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 115,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 116,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 117,
- "code": "<span class=\"a\"> </span><span class=\"k\">private </span>V <span class=\"sym-46 sym\">doGet</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 118,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 119,
- "code": " <span class=\"sym-13 sym\">exchange</span>.fetch();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 120,
- "code": " <span class=\"k\">if </span>(!<span class=\"sym-13 sym\">exchange</span>.getValue().isDefined()) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 121,
- "code": " <span class=\"k\">return</span> <span class=\"k\">null</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 122,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 123,
- "code": " <span class=\"k\">return</span> (V) <span class=\"sym-13 sym\">exchange</span>.getValue().get();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 124,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-47 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 125,
- "code": " <span class=\"cppd\">// TODO add parameters to message</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 126,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get element from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-47 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0
- },
- {
- "line": 127,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 128,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 129,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 130,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-48 sym\">containsKey</span>(Object <span class=\"sym-49 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 131,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-49 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 132,
- "code": " <span class=\"k\">return</span> <span class=\"sym-59 sym\">doContainsKey</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 133,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 134,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 135,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-50 sym\">containsKey</span>(Object <span class=\"sym-51 sym\">firstKey</span>, Object <span class=\"sym-52 sym\">secondKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 136,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-51 sym\">firstKey</span>, <span class=\"sym-52 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 137,
- "code": " <span class=\"k\">return</span> <span class=\"sym-59 sym\">doContainsKey</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 138,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 139,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 140,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-53 sym\">containsKey</span>(Object <span class=\"sym-54 sym\">firstKey</span>, Object <span class=\"sym-55 sym\">secondKey</span>, Object <span class=\"sym-56 sym\">thirdKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 141,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-54 sym\">firstKey</span>, <span class=\"sym-55 sym\">secondKey</span>, <span class=\"sym-56 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 142,
- "code": " <span class=\"k\">return</span> <span class=\"sym-59 sym\">doContainsKey</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 143,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 144,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 145,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-57 sym\">containsKey</span>(Object[] <span class=\"sym-58 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 146,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-58 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 147,
- "code": " <span class=\"k\">return</span> <span class=\"sym-59 sym\">doContainsKey</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 148,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 149,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 150,
- "code": " <span class=\"k\">private </span><span class=\"k\">boolean </span><span class=\"sym-59 sym\">doContainsKey</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 151,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 152,
- "code": " <span class=\"sym-13 sym\">exchange</span>.fetch();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200",
- "utLineHits": 1
- },
- {
- "line": 153,
- "code": " <span class=\"k\">return</span> <span class=\"sym-13 sym\">exchange</span>.isValueDefined();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200",
- "utLineHits": 1
- },
- {
- "line": 154,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-60 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200",
- "utLineHits": 0
- },
- {
- "line": 155,
- "code": " <span class=\"cppd\">// TODO add parameters to message</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 156,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to check if element is in cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-60 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200",
- "utLineHits": 0
- },
- {
- "line": 157,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 158,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 159,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 160,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-61 sym\">remove</span>(Object <span class=\"sym-62 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 161,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-62 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 162,
- "code": " <span class=\"k\">return</span> <span class=\"sym-72 sym\">doRemove</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 163,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 164,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 165,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-63 sym\">remove</span>(Object <span class=\"sym-64 sym\">firstKey</span>, Object <span class=\"sym-65 sym\">secondKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 166,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-64 sym\">firstKey</span>, <span class=\"sym-65 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 167,
- "code": " <span class=\"k\">return</span> <span class=\"sym-72 sym\">doRemove</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 168,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 169,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 170,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-66 sym\">remove</span>(Object <span class=\"sym-67 sym\">firstKey</span>, Object <span class=\"sym-68 sym\">secondKey</span>, Object <span class=\"sym-69 sym\">thirdKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 171,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-67 sym\">firstKey</span>, <span class=\"sym-68 sym\">secondKey</span>, <span class=\"sym-69 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 172,
- "code": " <span class=\"k\">return</span> <span class=\"sym-72 sym\">doRemove</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 173,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 174,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 175,
- "code": " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-70 sym\">remove</span>(Object[] <span class=\"sym-71 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 176,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-71 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 177,
- "code": " <span class=\"k\">return</span> <span class=\"sym-72 sym\">doRemove</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 178,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 179,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 180,
- "code": " <span class=\"k\">private </span><span class=\"k\">boolean </span><span class=\"sym-72 sym\">doRemove</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 181,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 182,
- "code": " <span class=\"k\">return</span> <span class=\"sym-13 sym\">exchange</span>.remove();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "6f1161efb92298ace498df544e38f6f97216ec36",
- "scmDate": "2013-04-26T15:19:16+0200",
- "utLineHits": 1
- },
- {
- "line": 183,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-73 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 184,
- "code": " <span class=\"cppd\">// TODO add parameters to message</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e108f5de333cf36aff978aa03940590f9caca9fc",
- "scmDate": "2013-10-10T12:18:02+0200"
- },
- {
- "line": 185,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get element from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-73 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0
- },
- {
- "line": 186,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 187,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 188,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 189,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 190,
- "code": "<span class=\"cppd\"> * Removes everything in the specified group.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 191,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 192,
- "code": "<span class=\"cppd\"> * @param group The group name.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 193,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 194,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-74 sym\">clear</span>(Object <span class=\"sym-75 sym\">key</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 195,
- "code": " <span class=\"sym-127 sym\">resetKey</span>(<span class=\"sym-75 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 196,
- "code": " <span class=\"k\">return</span> <span class=\"sym-85 sym\">doClear</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 197,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 198,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 199,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-76 sym\">clear</span>(Object <span class=\"sym-77 sym\">firstKey</span>, Object <span class=\"sym-78 sym\">secondKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 200,
- "code": " <span class=\"sym-129 sym\">resetKey</span>(<span class=\"sym-77 sym\">firstKey</span>, <span class=\"sym-78 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 201,
- "code": " <span class=\"k\">return</span> <span class=\"sym-85 sym\">doClear</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 202,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 203,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 204,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-79 sym\">clear</span>(Object <span class=\"sym-80 sym\">firstKey</span>, Object <span class=\"sym-81 sym\">secondKey</span>, Object <span class=\"sym-82 sym\">thirdKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 205,
- "code": " <span class=\"sym-132 sym\">resetKey</span>(<span class=\"sym-80 sym\">firstKey</span>, <span class=\"sym-81 sym\">secondKey</span>, <span class=\"sym-82 sym\">thirdKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 206,
- "code": " <span class=\"k\">return</span> <span class=\"sym-85 sym\">doClear</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 207,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 208,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 209,
- "code": " <span class=\"k\">public </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-83 sym\">clear</span>(Object[] <span class=\"sym-84 sym\">key</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 210,
- "code": " <span class=\"sym-136 sym\">resetKey</span>(<span class=\"sym-84 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 211,
- "code": " <span class=\"k\">return</span> <span class=\"sym-85 sym\">doClear</span>();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 212,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 213,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 214,
- "code": " <span class=\"k\">private </span><span class=\"sym-11 sym\">Cache</span>&lt;V&gt; <span class=\"sym-85 sym\">doClear</span>() {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 215,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 216,
- "code": " <span class=\"sym-3 sym\">Key</span> <span class=\"sym-86 sym\">to</span> = <span class=\"k\">new</span> <span class=\"sym-3 sym\">Key</span>(<span class=\"sym-13 sym\">exchange</span>.getKey());",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 217,
- "code": " <span class=\"sym-86 sym\">to</span>.append(<span class=\"sym-3 sym\">Key</span>.AFTER);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 218,
- "code": " <span class=\"sym-13 sym\">exchange</span>.removeKeyRange(<span class=\"sym-13 sym\">exchange</span>.getKey(), <span class=\"sym-86 sym\">to</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 219,
- "code": " <span class=\"k\">return</span> <span class=\"k\">this</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 220,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-87 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 221,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to clear values from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-87 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 222,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 223,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 224,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 225,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 226,
- "code": "<span class=\"cppd\"> * Clears the default as well as all group caches.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 227,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 228,
- "code": " <span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-88 sym\">clear</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 229,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 230,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 231,
- "code": " <span class=\"sym-13 sym\">exchange</span>.removeAll();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 232,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-89 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 233,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to clear cache\"</span>, <span class=\"sym-89 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 234,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 235,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 236,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 237,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 238,
- "code": "<span class=\"cppd\"> * Returns the set of cache keys associated with this group.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 239,
- "code": "<span class=\"cppd\"> * TODO implement a lazy-loading equivalent with Iterator/Iterable</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 240,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 241,
- "code": "<span class=\"cppd\"> * @param group The group.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 242,
- "code": "<span class=\"cppd\"> * @return The set of cache keys for this group.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 243,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 244,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"rawtypes\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 245,
- "code": " <span class=\"k\">public </span><span class=\"sym-10 sym\">Set</span> <span class=\"sym-90 sym\">keySet</span>(Object <span class=\"sym-91 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 246,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 247,
- "code": " <span class=\"sym-10 sym\">Set</span>&lt;Object&gt; <span class=\"sym-92 sym\">keys</span> = <span class=\"sym-1 sym\">Sets</span>.newLinkedHashSet();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 248,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 249,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-93 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 250,
- "code": " <span class=\"sym-93 sym\">iteratorExchange</span>.append(<span class=\"sym-91 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 251,
- "code": " <span class=\"sym-93 sym\">iteratorExchange</span>.append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 252,
- "code": " <span class=\"k\">while </span>(<span class=\"sym-93 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 253,
- "code": " <span class=\"sym-92 sym\">keys</span>.add(<span class=\"sym-93 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 254,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 255,
- "code": " <span class=\"k\">return</span> <span class=\"sym-92 sym\">keys</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 256,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-94 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 257,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-94 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0
- },
- {
- "line": 258,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 259,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 260,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 261,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"rawtypes\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 262,
- "code": " <span class=\"k\">public </span><span class=\"sym-10 sym\">Set</span> <span class=\"sym-95 sym\">keySet</span>(Object <span class=\"sym-96 sym\">firstKey</span>, Object <span class=\"sym-97 sym\">secondKey</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 263,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 264,
- "code": " <span class=\"sym-10 sym\">Set</span>&lt;Object&gt; <span class=\"sym-98 sym\">keys</span> = <span class=\"sym-1 sym\">Sets</span>.newLinkedHashSet();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 265,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 266,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-99 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 267,
- "code": " <span class=\"sym-99 sym\">iteratorExchange</span>.append(<span class=\"sym-96 sym\">firstKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 268,
- "code": " <span class=\"sym-99 sym\">iteratorExchange</span>.append(<span class=\"sym-97 sym\">secondKey</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 269,
- "code": " <span class=\"sym-99 sym\">iteratorExchange</span>.append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 270,
- "code": " <span class=\"k\">while </span>(<span class=\"sym-99 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 271,
- "code": " <span class=\"sym-98 sym\">keys</span>.add(<span class=\"sym-99 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 272,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 273,
- "code": " <span class=\"k\">return</span> <span class=\"sym-98 sym\">keys</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 274,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-100 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 275,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-100 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 276,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 277,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 278,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 279,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 280,
- "code": "<span class=\"cppd\"> * Returns the set of keys associated with this cache.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 281,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 282,
- "code": "<span class=\"cppd\"> * @return The set containing the keys for this cache.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 283,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 284,
- "code": " <span class=\"k\">public </span><span class=\"sym-10 sym\">Set</span>&lt;Object&gt; <span class=\"sym-101 sym\">keySet</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 285,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 286,
- "code": " <span class=\"sym-10 sym\">Set</span>&lt;Object&gt; <span class=\"sym-102 sym\">keys</span> = <span class=\"sym-1 sym\">Sets</span>.newLinkedHashSet();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 287,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 288,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-103 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 289,
- "code": " <span class=\"sym-103 sym\">iteratorExchange</span>.append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 290,
- "code": " <span class=\"k\">while </span>(<span class=\"sym-103 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 291,
- "code": " <span class=\"sym-102 sym\">keys</span>.add(<span class=\"sym-103 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 292,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 293,
- "code": " <span class=\"k\">return</span> <span class=\"sym-102 sym\">keys</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 294,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-104 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 295,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-104 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 296,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 297,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 298,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 299,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 300,
- "code": "<span class=\"cppd\"> * Lazy-loading values for given keys</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 301,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 302,
- "code": " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-105 sym\">values</span>(Object <span class=\"sym-106 sym\">firstKey</span>, Object <span class=\"sym-107 sym\">secondKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 303,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 304,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 1
- },
- {
- "line": 305,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-106 sym\">firstKey</span>).append(<span class=\"sym-107 sym\">secondKey</span>).append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 1
- },
- {
- "line": 306,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-108 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 1
- },
- {
- "line": 307,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-109 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-106 sym\">firstKey</span>)).append(<span class=\"sym-4 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-107 sym\">secondKey</span>));",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 308,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-139 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-108 sym\">iteratorExchange</span>, <span class=\"sym-109 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 309,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-110 sym\">e</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 0
- },
- {
- "line": 310,
- "code": " <span class=\"k\">throw</span> <span class=\"sym-111 sym\">failToGetValues</span>(<span class=\"sym-110 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200",
- "utLineHits": 0
- },
- {
- "line": 311,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 312,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200"
- },
- {
- "line": 313,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200"
- },
- {
- "line": 314,
- "code": " <span class=\"k\">private </span>IllegalStateException <span class=\"sym-111 sym\">failToGetValues</span>(Exception <span class=\"sym-112 sym\">e</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200"
- },
- {
- "line": 315,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"s\">\"Fail to get values from cache \" </span>+ <span class=\"sym-12 sym\">name</span>, <span class=\"sym-112 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200",
- "utLineHits": 0
- },
- {
- "line": 316,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 317,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 318,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "171cd79c0b5152461434951ed5d6e5e58849a7b7",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 319,
- "code": "<span class=\"cppd\"> * Lazy-loading values for a given key</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 320,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 321,
- "code": " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-113 sym\">values</span>(Object <span class=\"sym-114 sym\">firstKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 322,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 323,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 324,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-114 sym\">firstKey</span>).append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 325,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-115 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 326,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-116 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-114 sym\">firstKey</span>));",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 327,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-139 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-115 sym\">iteratorExchange</span>, <span class=\"sym-116 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 328,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-117 sym\">e</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200",
- "utLineHits": 0
- },
- {
- "line": 329,
- "code": " <span class=\"k\">throw</span> <span class=\"sym-111 sym\">failToGetValues</span>(<span class=\"sym-117 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200",
- "utLineHits": 0
- },
- {
- "line": 330,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 331,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 332,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 333,
- "code": " <span class=\"cppd\">/**</span>",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "46395126b184c343df5471a147cdb48133f59f6f",
- "scmDate": "2014-04-23T14:41:32+0200"
- },
- {
- "line": 334,
- "code": "<span class=\"cppd\"> * Lazy-loading values</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 335,
- "code": "<span class=\"cppd\"> */</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 336,
- "code": " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-118 sym\">values</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 337,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 338,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear().append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 339,
- "code": " <span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-119 sym\">iteratorExchange</span> = <span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 1
- },
- {
- "line": 340,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-120 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.ALL);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 341,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-139 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-119 sym\">iteratorExchange</span>, <span class=\"sym-120 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 342,
- "code": " } <span class=\"k\">catch </span>(Exception <span class=\"sym-121 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200",
- "utLineHits": 0
- },
- {
- "line": 343,
- "code": " <span class=\"k\">throw</span> <span class=\"sym-111 sym\">failToGetValues</span>(<span class=\"sym-121 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "904b462c56317b1fb5a616534bd58aa9c9097d0b",
- "scmDate": "2014-06-20T14:13:01+0200",
- "utLineHits": 0
- },
- {
- "line": 344,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 345,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 346,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 347,
- "code": " <span class=\"k\">public </span>Iterable&lt;<span class=\"sym-177 sym\">Entry</span>&lt;V&gt;&gt; <span class=\"sym-122 sym\">entries</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 348,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear().to(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 349,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-123 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.ALL);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 350,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-156 sym\">EntryIterable</span>&lt;V&gt;(<span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>), <span class=\"sym-123 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 351,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 352,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 353,
- "code": " <span class=\"k\">public </span>Iterable&lt;<span class=\"sym-177 sym\">Entry</span>&lt;V&gt;&gt; <span class=\"sym-124 sym\">entries</span>(Object <span class=\"sym-125 sym\">firstKey</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 354,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear().append(<span class=\"sym-125 sym\">firstKey</span>).append(<span class=\"sym-3 sym\">Key</span>.BEFORE);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 355,
- "code": " <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-126 sym\">filter</span> = <span class=\"k\">new</span> <span class=\"sym-4 sym\">KeyFilter</span>().append(<span class=\"sym-4 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-125 sym\">firstKey</span>));",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 356,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-156 sym\">EntryIterable</span>&lt;V&gt;(<span class=\"k\">new</span> <span class=\"sym-2 sym\">Exchange</span>(<span class=\"sym-13 sym\">exchange</span>), <span class=\"sym-126 sym\">filter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 357,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 358,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 359,
- "code": " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-127 sym\">resetKey</span>(Object <span class=\"sym-128 sym\">key</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 360,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 361,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-128 sym\">key</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 362,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 363,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 364,
- "code": " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-129 sym\">resetKey</span>(Object <span class=\"sym-130 sym\">first</span>, Object <span class=\"sym-131 sym\">second</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 365,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 366,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-130 sym\">first</span>).append(<span class=\"sym-131 sym\">second</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 367,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 368,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 369,
- "code": " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-132 sym\">resetKey</span>(Object <span class=\"sym-133 sym\">first</span>, Object <span class=\"sym-134 sym\">second</span>, Object <span class=\"sym-135 sym\">third</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 370,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 371,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-133 sym\">first</span>).append(<span class=\"sym-134 sym\">second</span>).append(<span class=\"sym-135 sym\">third</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 372,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 373,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 374,
- "code": " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-136 sym\">resetKey</span>(Object[] <span class=\"sym-137 sym\">keys</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 375,
- "code": " <span class=\"sym-13 sym\">exchange</span>.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 376,
- "code": " <span class=\"k\">for</span> (Object <span class=\"sym-138 sym\">o</span> : <span class=\"sym-137 sym\">keys</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0,
- "utConditions": 2,
- "utCoveredConditions": 0
- },
- {
- "line": 377,
- "code": " <span class=\"sym-13 sym\">exchange</span>.append(<span class=\"sym-138 sym\">o</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 378,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 379,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 0
- },
- {
- "line": 380,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "7b301db8c7e3000ff2a04fce5534e45e7d973a1f",
- "scmDate": "2014-04-25T11:17:09+0200"
- },
- {
- "line": 381,
- "code": " <span class=\"cppd\">//</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 382,
- "code": " <span class=\"cppd\">// LAZY ITERATORS AND ITERABLES</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 383,
- "code": " <span class=\"cppd\">//</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 384,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 385,
- "code": " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-139 sym\">ValueIterable</span>&lt;T&gt; <span class=\"k\">implements</span> Iterable&lt;T&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 386,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-8 sym\">Iterator</span>&lt;T&gt; <span class=\"sym-140 sym\">iterator</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 387,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 388,
- "code": " <span class=\"k\">private </span><span class=\"sym-141 sym\">ValueIterable</span>(<span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-142 sym\">exchange</span>, <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-143 sym\">keyFilter</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 389,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-140 sym\">iterator</span> = <span class=\"k\">new</span> <span class=\"sym-145 sym\">ValueIterator</span>&lt;T&gt;(<span class=\"sym-142 sym\">exchange</span>, <span class=\"sym-143 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 390,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1
- },
- {
- "line": 391,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 392,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 393,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-8 sym\">Iterator</span>&lt;T&gt; <span class=\"sym-144 sym\">iterator</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 394,
- "code": " <span class=\"k\">return</span> <span class=\"sym-140 sym\">iterator</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1
- },
- {
- "line": 395,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 396,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 397,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 398,
- "code": " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-145 sym\">ValueIterator</span>&lt;T&gt; <span class=\"k\">implements</span> <span class=\"sym-8 sym\">Iterator</span>&lt;T&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 399,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-146 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 400,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-147 sym\">keyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 401,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 402,
- "code": " <span class=\"k\">private </span><span class=\"sym-148 sym\">ValueIterator</span>(<span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-149 sym\">exchange</span>, <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-150 sym\">keyFilter</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 403,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-146 sym\">exchange</span> = <span class=\"sym-149 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 404,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-147 sym\">keyFilter</span> = <span class=\"sym-150 sym\">keyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 405,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 406,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 407,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 408,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-151 sym\">hasNext</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 409,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 410,
- "code": " <span class=\"k\">return</span> <span class=\"sym-146 sym\">exchange</span>.hasNext(<span class=\"sym-147 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 411,
- "code": " } <span class=\"k\">catch </span>(<span class=\"sym-5 sym\">PersistitException</span> <span class=\"sym-152 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0,
- "duplicated": true
- },
- {
- "line": 412,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"sym-152 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 0,
- "duplicated": true
- },
- {
- "line": 413,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 414,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 415,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 416,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "duplicated": true
- },
- {
- "line": 417,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "duplicated": true
- },
- {
- "line": 418,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>T <span class=\"sym-153 sym\">next</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 419,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 420,
- "code": " <span class=\"sym-146 sym\">exchange</span>.next(<span class=\"sym-147 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 421,
- "code": " } <span class=\"k\">catch </span>(<span class=\"sym-5 sym\">PersistitException</span> <span class=\"sym-154 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 422,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"sym-154 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 0
- },
- {
- "line": 423,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 424,
- "code": " <span class=\"k\">if </span>(<span class=\"sym-146 sym\">exchange</span>.getValue().isDefined()) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 1
- },
- {
- "line": 425,
- "code": " <span class=\"k\">return</span> (T) <span class=\"sym-146 sym\">exchange</span>.getValue().get();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 426,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 427,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> <span class=\"sym-9 sym\">NoSuchElementException</span>();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 0
- },
- {
- "line": 428,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 429,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 430,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 431,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-155 sym\">remove</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "babb50a4f143c312df1ba45955d3d589ecb2845f",
- "scmDate": "2013-05-29T14:27:38+0200"
- },
- {
- "line": 432,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> UnsupportedOperationException(<span class=\"s\">\"Removing an item is not supported\"</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "34cce8e330192c56a159a856ebd8072d38299087",
- "scmDate": "2014-02-24T14:21:50+0100",
- "utLineHits": 0
- },
- {
- "line": 433,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 434,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 435,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 436,
- "code": " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-156 sym\">EntryIterable</span>&lt;T&gt; <span class=\"k\">implements</span> Iterable&lt;<span class=\"sym-177 sym\">Entry</span>&lt;T&gt;&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 437,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-162 sym\">EntryIterator</span>&lt;T&gt; <span class=\"sym-157 sym\">it</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 438,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 439,
- "code": " <span class=\"k\">private </span><span class=\"sym-158 sym\">EntryIterable</span>(<span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-159 sym\">exchange</span>, <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-160 sym\">keyFilter</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 440,
- "code": " <span class=\"sym-157 sym\">it</span> = <span class=\"k\">new</span> <span class=\"sym-162 sym\">EntryIterator</span>&lt;T&gt;(<span class=\"sym-159 sym\">exchange</span>, <span class=\"sym-160 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 441,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 442,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 443,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 444,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-8 sym\">Iterator</span>&lt;<span class=\"sym-177 sym\">Entry</span>&lt;T&gt;&gt; <span class=\"sym-161 sym\">iterator</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 445,
- "code": " <span class=\"k\">return</span> <span class=\"sym-157 sym\">it</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 446,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 447,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 448,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 449,
- "code": " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-162 sym\">EntryIterator</span>&lt;T&gt; <span class=\"k\">implements</span> <span class=\"sym-8 sym\">Iterator</span>&lt;<span class=\"sym-177 sym\">Entry</span>&lt;T&gt;&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 450,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-163 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 451,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-164 sym\">keyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 452,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 453,
- "code": " <span class=\"k\">private </span><span class=\"sym-165 sym\">EntryIterator</span>(<span class=\"sym-2 sym\">Exchange</span> <span class=\"sym-166 sym\">exchange</span>, <span class=\"sym-4 sym\">KeyFilter</span> <span class=\"sym-167 sym\">keyFilter</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 454,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-163 sym\">exchange</span> = <span class=\"sym-166 sym\">exchange</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 455,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-164 sym\">keyFilter</span> = <span class=\"sym-167 sym\">keyFilter</span>;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 456,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 457,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 458,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 459,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-168 sym\">hasNext</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 460,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 461,
- "code": " <span class=\"k\">return</span> <span class=\"sym-163 sym\">exchange</span>.hasNext(<span class=\"sym-164 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "duplicated": true
- },
- {
- "line": 462,
- "code": " } <span class=\"k\">catch </span>(<span class=\"sym-5 sym\">PersistitException</span> <span class=\"sym-169 sym\">e</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 0,
- "duplicated": true
- },
- {
- "line": 463,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"sym-169 sym\">e</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 0,
- "duplicated": true
- },
- {
- "line": 464,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 465,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 466,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 467,
- "code": " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "duplicated": true
- },
- {
- "line": 468,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "duplicated": true
- },
- {
- "line": 469,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-177 sym\">Entry</span>&lt;T&gt; <span class=\"sym-170 sym\">next</span>() {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 470,
- "code": " <span class=\"k\">try </span>{",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 471,
- "code": " <span class=\"sym-163 sym\">exchange</span>.next(<span class=\"sym-164 sym\">keyFilter</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 472,
- "code": " } <span class=\"k\">catch </span>(<span class=\"sym-5 sym\">PersistitException</span> <span class=\"sym-171 sym\">e</span>) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 0
- },
- {
- "line": 473,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> IllegalStateException(<span class=\"sym-171 sym\">e</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 0
- },
- {
- "line": 474,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 475,
- "code": " <span class=\"k\">if </span>(<span class=\"sym-163 sym\">exchange</span>.getValue().isDefined()) {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 1
- },
- {
- "line": 476,
- "code": " T <span class=\"sym-172 sym\">value</span> = (T) <span class=\"sym-163 sym\">exchange</span>.getValue().get();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 477,
- "code": " <span class=\"sym-3 sym\">Key</span> <span class=\"sym-173 sym\">key</span> = <span class=\"sym-163 sym\">exchange</span>.getKey();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 478,
- "code": " Object[] <span class=\"sym-174 sym\">array</span> = <span class=\"k\">new</span> Object[<span class=\"sym-173 sym\">key</span>.getDepth()];",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 479,
- "code": " <span class=\"k\">for</span> (<span class=\"k\">int </span><span class=\"sym-175 sym\">i</span> = <span class=\"c\">0</span>; <span class=\"sym-175 sym\">i</span> &lt; <span class=\"sym-173 sym\">key</span>.getDepth(); <span class=\"sym-175 sym\">i</span>++) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1,
- "utConditions": 2,
- "utCoveredConditions": 2
- },
- {
- "line": 480,
- "code": " <span class=\"sym-174 sym\">array</span>[<span class=\"sym-175 sym\">i</span>] = <span class=\"sym-173 sym\">key</span>.indexTo(<span class=\"sym-175 sym\">i</span> - <span class=\"sym-173 sym\">key</span>.getDepth()).decode();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 481,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 482,
- "code": " <span class=\"k\">return</span> <span class=\"k\">new</span> <span class=\"sym-177 sym\">Entry</span>&lt;T&gt;(<span class=\"sym-174 sym\">array</span>, <span class=\"sym-172 sym\">value</span>);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 1
- },
- {
- "line": 483,
- "code": " }",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 484,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> <span class=\"sym-9 sym\">NoSuchElementException</span>();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200",
- "utLineHits": 0
- },
- {
- "line": 485,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 486,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 487,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 488,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-176 sym\">remove</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 489,
- "code": " <span class=\"k\">throw</span> <span class=\"k\">new</span> UnsupportedOperationException(<span class=\"s\">\"Removing an item is not supported\"</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "34cce8e330192c56a159a856ebd8072d38299087",
- "scmDate": "2014-02-24T14:21:50+0100",
- "utLineHits": 0
- },
- {
- "line": 490,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 491,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 492,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 493,
- "code": " <span class=\"k\">public </span><span class=\"k\">static </span><span class=\"k\">class</span> <span class=\"sym-177 sym\">Entry</span>&lt;V&gt; {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "6074164392edd3db2dfdfd21d05cd56c19e2b0e6",
- "scmDate": "2014-07-25T16:31:45+0200"
- },
- {
- "line": 494,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span>Object[] <span class=\"sym-178 sym\">key</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 495,
- "code": " <span class=\"k\">private </span><span class=\"k\">final </span>V <span class=\"sym-179 sym\">value</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 496,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 497,
- "code": " <span class=\"sym-180 sym\">Entry</span>(Object[] <span class=\"sym-181 sym\">key</span>, V <span class=\"sym-182 sym\">value</span>) {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100",
- "utLineHits": 1
- },
- {
- "line": 498,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-178 sym\">key</span> = <span class=\"sym-181 sym\">key</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 499,
- "code": " <span class=\"k\">this</span>.<span class=\"sym-179 sym\">value</span> = <span class=\"sym-182 sym\">value</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 500,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 501,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 502,
- "code": " <span class=\"k\">public </span>Object[] <span class=\"sym-183 sym\">key</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 503,
- "code": " <span class=\"k\">return</span> <span class=\"sym-178 sym\">key</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 504,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 505,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 506,
- "code": " <span class=\"a\">@<span class=\"sym-7 sym\">CheckForNull</span></span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 507,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-184 sym\">value</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 508,
- "code": " <span class=\"k\">return</span> <span class=\"sym-179 sym\">value</span>;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 1
- },
- {
- "line": 509,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 510,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 511,
- "code": " <span class=\"a\">@Override</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 512,
- "code": "<span class=\"a\"> </span><span class=\"k\">public </span>String <span class=\"sym-185 sym\">toString</span>() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 513,
- "code": " <span class=\"k\">return</span> <span class=\"sym-6 sym\">ToStringBuilder</span>.reflectionToString(<span class=\"k\">this</span>);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200",
- "utLineHits": 0
- },
- {
- "line": 514,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 515,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 516,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "43fc31f75a2de06b23faefb0d2bbf1dd97290232",
- "scmDate": "2014-05-05T16:43:19+0200"
- },
- {
- "line": 517,
- "code": "}",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 518,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- }
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/measures-test.json b/server/sonar-web/src/test/json/source-viewer-spec/measures-test.json
deleted file mode 100644
index db452767b87..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/measures-test.json
+++ /dev/null
@@ -1,25 +0,0 @@
-[
- {
- "id": 33667,
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "scope": "FIL",
- "qualifier": "FIL",
- "date": "2015-04-22T10:40:40+0200",
- "creationDate": "2014-07-11T23:32:19+0200",
- "lname": "src/main/java/org/sonar/batch/index/Cache.java",
- "lang": "java",
- "msr": [
- {
- "key": "tests",
- "val": 1,
- "frmt_val": "1"
- },
- {
- "key": "test_execution_time",
- "val": 15,
- "frmt_val": "15 ms"
- }
- ]
- }
-]
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/measures.json b/server/sonar-web/src/test/json/source-viewer-spec/measures.json
deleted file mode 100644
index 4b56c113a0d..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/measures.json
+++ /dev/null
@@ -1,136 +0,0 @@
-[
- {
- "id": 33667,
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "scope": "FIL",
- "qualifier": "FIL",
- "date": "2015-04-22T10:40:40+0200",
- "creationDate": "2014-07-11T23:32:19+0200",
- "lname": "src/main/java/org/sonar/batch/index/Cache.java",
- "lang": "java",
- "msr": [
- {
- "key": "lines",
- "val": 92,
- "frmt_val": "92"
- },
- {
- "key": "ncloc",
- "val": 57,
- "frmt_val": "57"
- },
- {
- "key": "classes",
- "val": 0,
- "frmt_val": "0"
- },
- {
- "key": "files",
- "val": 1,
- "frmt_val": "1"
- },
- {
- "key": "functions",
- "val": 12,
- "frmt_val": "12"
- },
- {
- "key": "statements",
- "val": 34,
- "frmt_val": "34"
- },
- {
- "key": "comment_lines",
- "val": 14,
- "frmt_val": "14"
- },
- {
- "key": "comment_lines_density",
- "val": 19.7,
- "frmt_val": "19.7%"
- },
- {
- "key": "complexity",
- "val": 22,
- "frmt_val": "22"
- },
- {
- "key": "function_complexity",
- "val": 4.9,
- "frmt_val": "4.9"
- },
- {
- "key": "file_complexity",
- "val": 22,
- "frmt_val": "22.0"
- },
- {
- "key": "coverage",
- "val": 11.3,
- "frmt_val": "11.3%"
- },
- {
- "key": "lines_to_cover",
- "val": 38,
- "frmt_val": "38"
- },
- {
- "key": "uncovered_lines",
- "val": 32,
- "frmt_val": "32"
- },
- {
- "key": "it_lines_to_cover",
- "val": 37,
- "frmt_val": "37"
- },
- {
- "key": "it_uncovered_lines",
- "val": 31,
- "frmt_val": "31"
- },
- {
- "key": "line_coverage",
- "val": 15.8,
- "frmt_val": "15.8%"
- },
- {
- "key": "uncovered_conditions",
- "val": 15,
- "frmt_val": "15"
- },
- {
- "key": "branch_coverage",
- "val": 0,
- "frmt_val": "0.0%"
- },
- {
- "key": "conditions_to_cover",
- "val": 38,
- "frmt_val": "38"
- },
- {
- "key": "uncovered_conditions",
- "val": 32,
- "frmt_val": "32"
- },
- {
- "key": "it_conditions_to_cover",
- "val": 35,
- "frmt_val": "35"
- },
- {
- "key": "it_uncovered_conditions",
- "val": 30,
- "frmt_val": "30"
- },
- {
- "key": "sqale_rating",
- "val": 1,
- "frmt_val": "A",
- "data": "A"
- }
- ]
- }
-]
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/metrics.json b/server/sonar-web/src/test/json/source-viewer-spec/metrics.json
deleted file mode 100644
index e50c696fe02..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/metrics.json
+++ /dev/null
@@ -1,1469 +0,0 @@
-{
- "metrics": [
- {
- "id": "11",
- "key": "accessors",
- "type": "INT",
- "name": "Accessors",
- "description": "Accessors",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "94",
- "key": "blocker_violations",
- "type": "INT",
- "name": "Blocker issues",
- "description": "Blocker issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "45",
- "key": "conditions_to_cover",
- "type": "INT",
- "name": "Branches to cover",
- "description": "Branches to cover",
- "domain": "Tests",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "63",
- "key": "new_it_conditions_to_cover",
- "type": "INT",
- "name": "Branches to cover by IT on new code",
- "description": "Branches to cover by Integration Tests on new code",
- "domain": "Tests (Integration)",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "46",
- "key": "new_conditions_to_cover",
- "type": "INT",
- "name": "Branches to cover on new code",
- "description": "Branches to cover on new code",
- "domain": "Tests",
- "direction": 0,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "143",
- "key": "burned_budget",
- "type": "FLOAT",
- "name": "Burned budget",
- "domain": "Management",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "144",
- "key": "business_value",
- "type": "FLOAT",
- "name": "Business value",
- "domain": "Management",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": true
- },
- {
- "id": "6",
- "key": "classes",
- "type": "INT",
- "name": "Classes",
- "description": "Classes",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "26",
- "key": "class_complexity_distribution",
- "type": "DISTRIB",
- "name": "Classes distribution /complexity",
- "description": "Classes distribution /complexity",
- "domain": "Complexity",
- "direction": 0,
- "qualitative": true,
- "hidden": true,
- "custom": false
- },
- {
- "id": "19",
- "key": "commented_out_code_lines",
- "type": "INT",
- "name": "Commented-out LOC",
- "description": "Commented lines of code",
- "domain": "Documentation",
- "direction": -1,
- "qualitative": true,
- "hidden": true,
- "custom": false
- },
- {
- "id": "15",
- "key": "comment_lines",
- "type": "INT",
- "name": "Comment lines",
- "description": "Number of comment lines",
- "domain": "Documentation",
- "direction": 1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "137",
- "key": "comment_lines_data",
- "type": "DATA",
- "name": "comment_lines_data",
- "domain": "Documentation",
- "direction": 0,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "16",
- "key": "comment_lines_density",
- "type": "PERCENT",
- "name": "Comments (%)",
- "description": "Comments balanced by ncloc + comment lines",
- "domain": "Documentation",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "20",
- "key": "complexity",
- "type": "INT",
- "name": "Complexity",
- "description": "Cyclomatic complexity",
- "domain": "Complexity",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "23",
- "key": "class_complexity",
- "type": "FLOAT",
- "name": "Complexity /class",
- "description": "Complexity average by class",
- "domain": "Complexity",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "21",
- "key": "file_complexity",
- "type": "FLOAT",
- "name": "Complexity /file",
- "description": "Complexity average by file",
- "domain": "Complexity",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "25",
- "key": "function_complexity",
- "type": "FLOAT",
- "name": "Complexity /function",
- "description": "Complexity average by function",
- "domain": "Complexity",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "22",
- "key": "complexity_in_classes",
- "type": "INT",
- "name": "Complexity in classes",
- "description": "Cyclomatic complexity in classes",
- "domain": "Complexity",
- "direction": -1,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "24",
- "key": "complexity_in_functions",
- "type": "INT",
- "name": "Complexity in functions",
- "description": "Cyclomatic complexity in functions",
- "domain": "Complexity",
- "direction": -1,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "49",
- "key": "branch_coverage",
- "type": "PERCENT",
- "name": "Condition coverage",
- "description": "Condition coverage",
- "domain": "Tests",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "67",
- "key": "new_it_branch_coverage",
- "type": "PERCENT",
- "name": "Condition coverage by IT on new code",
- "description": "Condition coverage by Integration Tests of new/changed code",
- "domain": "Tests (Integration)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "50",
- "key": "new_branch_coverage",
- "type": "PERCENT",
- "name": "Condition coverage on new code",
- "description": "Condition coverage of new/changed code",
- "domain": "Tests",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "51",
- "key": "conditions_by_line",
- "type": "DATA",
- "name": "Conditions by line",
- "domain": "Tests",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "108",
- "key": "confirmed_issues",
- "type": "INT",
- "name": "Confirmed issues",
- "description": "Confirmed issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "36",
- "key": "coverage",
- "type": "PERCENT",
- "name": "Coverage",
- "description": "Coverage by unit tests",
- "domain": "Tests",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "54",
- "key": "new_it_coverage",
- "type": "PERCENT",
- "name": "Coverage by IT on new code",
- "description": "Integration Tests Coverage of new/changed code",
- "domain": "Tests (Integration)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "44",
- "key": "coverage_line_hits_data",
- "type": "DATA",
- "name": "Coverage hits by line",
- "domain": "Tests",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "37",
- "key": "new_coverage",
- "type": "PERCENT",
- "name": "Coverage on new code",
- "description": "Coverage of new/changed code",
- "domain": "Tests",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "52",
- "key": "covered_conditions_by_line",
- "type": "DATA",
- "name": "Covered conditions by line",
- "domain": "Tests",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "95",
- "key": "critical_violations",
- "type": "INT",
- "name": "Critical issues",
- "description": "Critical issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "146",
- "key": "days_since_last_commit",
- "type": "INT",
- "name": "Days since last commit",
- "domain": "SCM",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "8",
- "key": "directories",
- "type": "INT",
- "name": "Directories",
- "description": "Directories",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "88",
- "key": "duplicated_blocks",
- "type": "INT",
- "name": "Duplicated blocks",
- "description": "Duplicated blocks",
- "domain": "Duplication",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "89",
- "key": "duplicated_files",
- "type": "INT",
- "name": "Duplicated files",
- "description": "Duplicated files",
- "domain": "Duplication",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "87",
- "key": "duplicated_lines",
- "type": "INT",
- "name": "Duplicated lines",
- "description": "Duplicated lines",
- "domain": "Duplication",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "90",
- "key": "duplicated_lines_density",
- "type": "PERCENT",
- "name": "Duplicated lines (%)",
- "description": "Duplicated lines balanced by statements",
- "domain": "Duplication",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "91",
- "key": "duplications_data",
- "type": "DATA",
- "name": "Duplications details",
- "description": "Duplications details",
- "domain": "Duplication",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "105",
- "key": "false_positive_issues",
- "type": "INT",
- "name": "False positive issues",
- "description": "False positive issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "7",
- "key": "files",
- "type": "INT",
- "name": "Files",
- "description": "Number of files",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "28",
- "key": "file_complexity_distribution",
- "type": "DISTRIB",
- "name": "Files distribution /complexity",
- "description": "Files distribution /complexity",
- "domain": "Complexity",
- "direction": 0,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "10",
- "key": "functions",
- "type": "INT",
- "name": "Functions",
- "description": "Functions",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "27",
- "key": "function_complexity_distribution",
- "type": "DISTRIB",
- "name": "Functions distribution /complexity",
- "description": "Functions distribution /complexity",
- "domain": "Complexity",
- "direction": 0,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "2",
- "key": "generated_lines",
- "type": "INT",
- "name": "Generated Lines",
- "description": "Number of generated lines",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "5",
- "key": "generated_ncloc",
- "type": "INT",
- "name": "Generated lines of code",
- "description": "Generated non Commenting Lines of Code",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "98",
- "key": "info_violations",
- "type": "INT",
- "name": "Info issues",
- "description": "Info issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "93",
- "key": "violations",
- "type": "INT",
- "name": "Issues",
- "description": "Issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "62",
- "key": "it_conditions_to_cover",
- "type": "INT",
- "name": "IT branches to cover",
- "description": "Integration Tests conditions to cover",
- "domain": "Tests (Integration)",
- "direction": 1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "66",
- "key": "it_branch_coverage",
- "type": "PERCENT",
- "name": "IT condition coverage",
- "description": "IT condition coverage",
- "domain": "Tests (Integration)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "68",
- "key": "it_conditions_by_line",
- "type": "DATA",
- "name": "IT conditions by line",
- "domain": "Tests (Integration)",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "53",
- "key": "it_coverage",
- "type": "PERCENT",
- "name": "IT coverage",
- "description": "Coverage by integration tests",
- "domain": "Tests (Integration)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "61",
- "key": "it_coverage_line_hits_data",
- "type": "DATA",
- "name": "IT coverage hits data",
- "description": "Integration Tests Code coverage line hits data",
- "domain": "Tests (Integration)",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "69",
- "key": "it_covered_conditions_by_line",
- "type": "DATA",
- "name": "IT covered conditions by line",
- "domain": "Tests (Integration)",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "59",
- "key": "it_line_coverage",
- "type": "PERCENT",
- "name": "IT line coverage",
- "description": "IT line coverage",
- "domain": "Tests (Integration)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "55",
- "key": "it_lines_to_cover",
- "type": "INT",
- "name": "IT lines to cover",
- "description": "Lines to cover by Integration Tests",
- "domain": "Tests (Integration)",
- "direction": 1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "64",
- "key": "it_uncovered_conditions",
- "type": "INT",
- "name": "IT uncovered branches",
- "description": "Integration Tests uncovered conditions",
- "domain": "Tests (Integration)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "57",
- "key": "it_uncovered_lines",
- "type": "INT",
- "name": "IT uncovered lines",
- "description": "IT uncovered lines",
- "domain": "Tests (Integration)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "42",
- "key": "line_coverage",
- "type": "PERCENT",
- "name": "Line coverage",
- "description": "Line coverage",
- "domain": "Tests",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "60",
- "key": "new_it_line_coverage",
- "type": "PERCENT",
- "name": "Line coverage by IT on new code",
- "description": "Line Coverage by Integration Tests of added/changed code",
- "domain": "Tests (Integration)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "43",
- "key": "new_line_coverage",
- "type": "PERCENT",
- "name": "Line coverage on new code",
- "description": "Line coverage of added/changed code",
- "domain": "Tests",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "1",
- "key": "lines",
- "type": "INT",
- "name": "Lines",
- "description": "Lines",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "3",
- "key": "ncloc",
- "type": "INT",
- "name": "Lines of code",
- "description": "Non Commenting Lines of Code",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "4",
- "key": "ncloc_language_distribution",
- "type": "DATA",
- "name": "Lines of code per language",
- "description": "Non Commenting Lines of Code Distributed By Language",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "38",
- "key": "lines_to_cover",
- "type": "INT",
- "name": "Lines to cover",
- "description": "Lines to cover",
- "domain": "Tests",
- "direction": 1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "56",
- "key": "new_it_lines_to_cover",
- "type": "INT",
- "name": "Lines to cover by IT on new code",
- "description": "Lines to cover by Integration Tests on new code",
- "domain": "Tests (Integration)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "39",
- "key": "new_lines_to_cover",
- "type": "INT",
- "name": "Lines to cover on new code",
- "description": "Lines to cover on new code",
- "domain": "Tests",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "96",
- "key": "major_violations",
- "type": "INT",
- "name": "Major issues",
- "description": "Major issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "97",
- "key": "minor_violations",
- "type": "INT",
- "name": "Minor issues",
- "description": "Minor issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "136",
- "key": "ncloc_data",
- "type": "DATA",
- "name": "ncloc_data",
- "domain": "Size",
- "direction": 0,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "100",
- "key": "new_blocker_violations",
- "type": "INT",
- "name": "New Blocker issues",
- "description": "New Blocker issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "101",
- "key": "new_critical_violations",
- "type": "INT",
- "name": "New Critical issues",
- "description": "New Critical issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "104",
- "key": "new_info_violations",
- "type": "INT",
- "name": "New Info issues",
- "description": "New Info issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "99",
- "key": "new_violations",
- "type": "INT",
- "name": "New issues",
- "description": "New Issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "102",
- "key": "new_major_violations",
- "type": "INT",
- "name": "New Major issues",
- "description": "New Major issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "103",
- "key": "new_minor_violations",
- "type": "INT",
- "name": "New Minor issues",
- "description": "New Minor issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "106",
- "key": "open_issues",
- "type": "INT",
- "name": "Open issues",
- "description": "Open issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "79",
- "key": "overall_conditions_to_cover",
- "type": "INT",
- "name": "Overall branches to cover",
- "description": "Branches to cover by all tests",
- "domain": "Tests (Overall)",
- "direction": 1,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "80",
- "key": "new_overall_conditions_to_cover",
- "type": "INT",
- "name": "Overall branches to cover on new code",
- "description": "New branches to cover by all tests",
- "domain": "Tests (Overall)",
- "direction": 0,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "83",
- "key": "overall_branch_coverage",
- "type": "PERCENT",
- "name": "Overall condition coverage",
- "description": "Condition coverage by all tests",
- "domain": "Tests (Overall)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "84",
- "key": "new_overall_branch_coverage",
- "type": "PERCENT",
- "name": "Overall condition coverage on new code",
- "description": "Condition coverage of new/changed code by all tests",
- "domain": "Tests (Overall)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "85",
- "key": "overall_conditions_by_line",
- "type": "DATA",
- "name": "Overall conditions by line",
- "description": "Overall conditions by all tests and by line",
- "domain": "Tests (Overall)",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "70",
- "key": "overall_coverage",
- "type": "PERCENT",
- "name": "Overall coverage",
- "description": "Overall test coverage",
- "domain": "Tests (Overall)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "78",
- "key": "overall_coverage_line_hits_data",
- "type": "DATA",
- "name": "Overall coverage hits by line",
- "description": "Coverage hits by all tests and by line",
- "domain": "Tests (Overall)",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "71",
- "key": "new_overall_coverage",
- "type": "PERCENT",
- "name": "Overall coverage on new code",
- "description": "Overall coverage of new/changed code",
- "domain": "Tests (Overall)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "86",
- "key": "overall_covered_conditions_by_line",
- "type": "DATA",
- "name": "Overall covered branches by line",
- "description": "Overall covered branches by all tests and by line",
- "domain": "Tests (Overall)",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "76",
- "key": "overall_line_coverage",
- "type": "PERCENT",
- "name": "Overall line coverage",
- "description": "Line coverage by all tests",
- "domain": "Tests (Overall)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "77",
- "key": "new_overall_line_coverage",
- "type": "PERCENT",
- "name": "Overall line coverage on new code",
- "description": "Line coverage of added/changed code by all tests",
- "domain": "Tests (Overall)",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "72",
- "key": "overall_lines_to_cover",
- "type": "INT",
- "name": "Overall lines to cover",
- "description": "Overall lines to cover by all tests",
- "domain": "Tests (Overall)",
- "direction": 1,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "73",
- "key": "new_overall_lines_to_cover",
- "type": "INT",
- "name": "Overall lines to cover on new code",
- "description": "New lines to cover by all tests",
- "domain": "Tests (Overall)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "81",
- "key": "overall_uncovered_conditions",
- "type": "INT",
- "name": "Overall uncovered branches",
- "description": "Uncovered branches by all tests",
- "domain": "Tests (Overall)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "82",
- "key": "new_overall_uncovered_conditions",
- "type": "INT",
- "name": "Overall uncovered branches on new code",
- "description": "New branches that are not covered by any test",
- "domain": "Tests (Overall)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "74",
- "key": "overall_uncovered_lines",
- "type": "INT",
- "name": "Overall uncovered lines",
- "description": "Uncovered lines by all tests",
- "domain": "Tests (Overall)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "75",
- "key": "new_overall_uncovered_lines",
- "type": "INT",
- "name": "Overall uncovered lines on new code",
- "description": "New lines that are not covered by any tests",
- "domain": "Tests (Overall)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "9",
- "key": "packages",
- "type": "INT",
- "name": "Packages",
- "description": "Packages",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "140",
- "key": "profile",
- "type": "DATA",
- "name": "Profile",
- "description": "Selected quality profile",
- "domain": "General",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "142",
- "key": "quality_profiles",
- "type": "DATA",
- "name": "Profiles",
- "description": "Details of quality profiles used during analysis",
- "domain": "General",
- "direction": 0,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "141",
- "key": "profile_version",
- "type": "INT",
- "name": "Profile version",
- "description": "Selected quality profile version",
- "domain": "General",
- "direction": 0,
- "qualitative": false,
- "hidden": true,
- "custom": false
- },
- {
- "id": "14",
- "key": "projects",
- "type": "INT",
- "name": "Projects",
- "description": "Number of projects",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "13",
- "key": "public_api",
- "type": "INT",
- "name": "Public API",
- "description": "Public API",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "17",
- "key": "public_documented_api_density",
- "type": "PERCENT",
- "name": "Public documented API (%)",
- "description": "Public documented classes and functions balanced by ncloc",
- "domain": "Documentation",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "18",
- "key": "public_undocumented_api",
- "type": "INT",
- "name": "Public undocumented API",
- "description": "Public undocumented classes, functions and variables",
- "domain": "Documentation",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "139",
- "key": "quality_gate_details",
- "type": "DATA",
- "name": "Quality Gate Details",
- "description": "The project detailed status with regard to its quality gate.",
- "domain": "General",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "138",
- "key": "alert_status",
- "type": "LEVEL",
- "name": "Quality Gate Status",
- "description": "The project status with regard to its quality gate.",
- "domain": "General",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "107",
- "key": "reopened_issues",
- "type": "INT",
- "name": "Reopened issues",
- "description": "Reopened issues",
- "domain": "Issues",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "32",
- "key": "skipped_tests",
- "type": "INT",
- "name": "Skipped unit tests",
- "description": "Number of skipped unit tests",
- "domain": "Tests",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "134",
- "key": "development_cost",
- "type": "STRING",
- "name": "SQALE Development Cost",
- "domain": "Technical Debt",
- "direction": -1,
- "qualitative": true,
- "hidden": true,
- "custom": false
- },
- {
- "id": "133",
- "key": "sqale_rating",
- "type": "RATING",
- "name": "SQALE Rating",
- "domain": "Technical Debt",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "135",
- "key": "sqale_debt_ratio",
- "type": "PERCENT",
- "name": "SQALE Technical Debt Ratio",
- "description": "Ratio of the technical debt compared to what it would cost to develop the whole source code from scratch.",
- "domain": "Technical Debt",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "12",
- "key": "statements",
- "type": "INT",
- "name": "Statements",
- "description": "Number of statements",
- "domain": "Size",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "145",
- "key": "team_size",
- "type": "INT",
- "name": "Team size",
- "domain": "Management",
- "direction": 0,
- "qualitative": false,
- "hidden": false,
- "custom": true
- },
- {
- "id": "131",
- "key": "sqale_index",
- "type": "WORK_DUR",
- "name": "Technical Debt",
- "domain": "Technical Debt",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "132",
- "key": "new_technical_debt",
- "type": "WORK_DUR",
- "name": "Technical Debt on new code",
- "description": "Technical Debt of new code",
- "domain": "Technical Debt",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "47",
- "key": "uncovered_conditions",
- "type": "INT",
- "name": "Uncovered branches",
- "description": "Uncovered branches",
- "domain": "Tests",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "65",
- "key": "new_it_uncovered_conditions",
- "type": "INT",
- "name": "Uncovered branches by IT on new code",
- "description": "Uncovered branches by Integration Tests on new code",
- "domain": "Tests (Integration)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "48",
- "key": "new_uncovered_conditions",
- "type": "INT",
- "name": "Uncovered branches on new code",
- "description": "Uncovered branches on new code",
- "domain": "Tests",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "40",
- "key": "uncovered_lines",
- "type": "INT",
- "name": "Uncovered lines",
- "description": "Uncovered lines",
- "domain": "Tests",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "58",
- "key": "new_it_uncovered_lines",
- "type": "INT",
- "name": "Uncovered lines by IT on new code",
- "description": "Uncovered lines by IT on new code",
- "domain": "Tests (Integration)",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "41",
- "key": "new_uncovered_lines",
- "type": "INT",
- "name": "Uncovered lines on new code",
- "description": "Uncovered lines on new code",
- "domain": "Tests",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "31",
- "key": "test_errors",
- "type": "INT",
- "name": "Unit test errors",
- "description": "Number of unit test errors",
- "domain": "Tests",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "33",
- "key": "test_failures",
- "type": "INT",
- "name": "Unit test failures",
- "description": "Number of unit test failures",
- "domain": "Tests",
- "direction": -1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- },
- {
- "id": "29",
- "key": "tests",
- "type": "INT",
- "name": "Unit tests",
- "description": "Number of unit tests",
- "domain": "Tests",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "35",
- "key": "test_data",
- "type": "DATA",
- "name": "Unit tests details",
- "description": "Unit tests details",
- "domain": "Tests",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "30",
- "key": "test_execution_time",
- "type": "MILLISEC",
- "name": "Unit tests duration",
- "description": "Execution duration of unit tests",
- "domain": "Tests",
- "direction": -1,
- "qualitative": false,
- "hidden": false,
- "custom": false
- },
- {
- "id": "34",
- "key": "test_success_density",
- "type": "PERCENT",
- "name": "Unit test success (%)",
- "description": "Density of successful unit tests",
- "domain": "Tests",
- "direction": 1,
- "qualitative": true,
- "hidden": false,
- "custom": false
- }
- ],
- "total": 123,
- "p": 1,
- "ps": 500
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/resources-without-ncloc-data.json b/server/sonar-web/src/test/json/source-viewer-spec/resources-without-ncloc-data.json
deleted file mode 100644
index dfbacdf7b28..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/resources-without-ncloc-data.json
+++ /dev/null
@@ -1,150 +0,0 @@
-[
- {
- "id": 19983,
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "scope": "FIL",
- "qualifier": "FIL",
- "date": "2014-07-21T23:18:51+0200",
- "creationDate": "2013-04-17T04:06:45+0200",
- "lname": "src/main/java/org/sonar/batch/index/Cache.java",
- "lang": "java",
- "msr": [
- {
- "key": "lines",
- "val": 519.0,
- "frmt_val": "519"
- },
- {
- "key": "ncloc",
- "val": 379.0,
- "frmt_val": "379"
- },
- {
- "key": "classes",
- "val": 6.0,
- "frmt_val": "6"
- },
- {
- "key": "functions",
- "val": 56.0,
- "frmt_val": "56"
- },
- {
- "key": "accessors",
- "val": 0.0,
- "frmt_val": "0"
- },
- {
- "key": "statements",
- "val": 174.0,
- "frmt_val": "174"
- },
- {
- "key": "public_api",
- "val": 33.0,
- "frmt_val": "33"
- },
- {
- "key": "comment_lines",
- "val": 23.0,
- "frmt_val": "23"
- },
- {
- "key": "comment_lines_density",
- "val": 5.7,
- "frmt_val": "5.7%"
- },
- {
- "key": "public_documented_api_density",
- "val": 36.4,
- "frmt_val": "36.4%"
- },
- {
- "key": "public_undocumented_api",
- "val": 21.0,
- "frmt_val": "21"
- },
- {
- "key": "complexity",
- "val": 116.0,
- "frmt_val": "116"
- },
- {
- "key": "function_complexity",
- "val": 2.1,
- "frmt_val": "2.1"
- },
- {
- "key": "coverage",
- "val": 74.3,
- "frmt_val": "74.3%"
- },
- {
- "key": "lines_to_cover",
- "val": 194.0,
- "frmt_val": "194"
- },
- {
- "key": "uncovered_lines",
- "val": 50.0,
- "frmt_val": "50"
- },
- {
- "key": "line_coverage",
- "val": 74.2,
- "frmt_val": "74.2%"
- },
- {
- "key": "conditions_to_cover",
- "val": 16.0,
- "frmt_val": "16"
- },
- {
- "key": "uncovered_conditions",
- "val": 4.0,
- "frmt_val": "4"
- },
- {
- "key": "branch_coverage",
- "val": 75.0,
- "frmt_val": "75.0%"
- },
- {
- "key": "duplicated_lines",
- "val": 30.0,
- "frmt_val": "30"
- },
- {
- "key": "duplicated_blocks",
- "val": 2.0,
- "frmt_val": "2"
- },
- {
- "key": "duplicated_files",
- "val": 1.0,
- "frmt_val": "1"
- },
- {
- "key": "duplicated_lines_density",
- "val": 5.8,
- "frmt_val": "5.8%"
- },
- {
- "key": "major_violations",
- "val": 1.0,
- "frmt_val": "1"
- },
- {
- "key": "minor_violations",
- "val": 1.0,
- "frmt_val": "1"
- },
- {
- "key": "info_violations",
- "val": 4.0,
- "frmt_val": "4"
- }
- ]
- }
-]
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/resources.json b/server/sonar-web/src/test/json/source-viewer-spec/resources.json
deleted file mode 100644
index 415718c7cd5..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/resources.json
+++ /dev/null
@@ -1,154 +0,0 @@
-[
- {
- "id": 19983,
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "scope": "FIL",
- "qualifier": "FIL",
- "date": "2014-07-21T23:18:51+0200",
- "creationDate": "2013-04-17T04:06:45+0200",
- "lname": "src/main/java/org/sonar/batch/index/Cache.java",
- "lang": "java",
- "msr": [
- {
- "key": "lines",
- "val": 519.0,
- "frmt_val": "519"
- },
- {
- "key": "ncloc",
- "val": 379.0,
- "frmt_val": "379"
- },
- {
- "key": "classes",
- "val": 6.0,
- "frmt_val": "6"
- },
- {
- "key": "functions",
- "val": 56.0,
- "frmt_val": "56"
- },
- {
- "key": "accessors",
- "val": 0.0,
- "frmt_val": "0"
- },
- {
- "key": "statements",
- "val": 174.0,
- "frmt_val": "174"
- },
- {
- "key": "public_api",
- "val": 33.0,
- "frmt_val": "33"
- },
- {
- "key": "comment_lines",
- "val": 23.0,
- "frmt_val": "23"
- },
- {
- "key": "comment_lines_density",
- "val": 5.7,
- "frmt_val": "5.7%"
- },
- {
- "key": "public_documented_api_density",
- "val": 36.4,
- "frmt_val": "36.4%"
- },
- {
- "key": "public_undocumented_api",
- "val": 21.0,
- "frmt_val": "21"
- },
- {
- "key": "complexity",
- "val": 116.0,
- "frmt_val": "116"
- },
- {
- "key": "function_complexity",
- "val": 2.1,
- "frmt_val": "2.1"
- },
- {
- "key": "coverage",
- "val": 74.3,
- "frmt_val": "74.3%"
- },
- {
- "key": "lines_to_cover",
- "val": 194.0,
- "frmt_val": "194"
- },
- {
- "key": "uncovered_lines",
- "val": 50.0,
- "frmt_val": "50"
- },
- {
- "key": "line_coverage",
- "val": 74.2,
- "frmt_val": "74.2%"
- },
- {
- "key": "conditions_to_cover",
- "val": 16.0,
- "frmt_val": "16"
- },
- {
- "key": "uncovered_conditions",
- "val": 4.0,
- "frmt_val": "4"
- },
- {
- "key": "branch_coverage",
- "val": 75.0,
- "frmt_val": "75.0%"
- },
- {
- "key": "duplicated_lines",
- "val": 30.0,
- "frmt_val": "30"
- },
- {
- "key": "duplicated_blocks",
- "val": 2.0,
- "frmt_val": "2"
- },
- {
- "key": "duplicated_files",
- "val": 1.0,
- "frmt_val": "1"
- },
- {
- "key": "duplicated_lines_density",
- "val": 5.8,
- "frmt_val": "5.8%"
- },
- {
- "key": "major_violations",
- "val": 1.0,
- "frmt_val": "1"
- },
- {
- "key": "minor_violations",
- "val": 1.0,
- "frmt_val": "1"
- },
- {
- "key": "info_violations",
- "val": 4.0,
- "frmt_val": "4"
- },
- {
- "key": "ncloc_data",
- "data": "1=0;2=0;3=0;4=0;5=0;6=0;7=0;8=0;9=0;10=0;11=0;12=0;13=0;14=0;15=0;17=0;16=0;19=0;18=0;21=0;20=1;23=1;22=1;25=1;24=1;27=1;26=1;29=1;28=0;31=1;30=0;34=1;35=0;32=1;33=1;38=0;39=0;36=0;37=0;42=0;43=1;40=0;41=1;46=1;47=1;44=1;45=0;51=1;50=0;49=1;48=1;55=0;54=1;53=1;52=1;59=1;58=1;57=1;56=1;63=1;62=1;61=1;60=0;68=1;69=1;70=0;71=1;64=1;65=0;66=1;67=1;76=1;77=1;78=1;79=1;72=1;73=1;74=1;75=1;85=1;84=1;87=1;86=1;81=0;80=0;83=0;82=0;93=1;92=1;95=1;94=1;89=0;88=0;91=0;90=0;102=1;103=1;100=0;101=1;98=0;99=0;96=1;97=0;110=1;111=1;108=0;109=0;106=0;107=0;104=1;105=1;119=1;118=1;117=1;116=1;115=0;114=1;113=1;112=1;127=1;126=0;125=1;124=1;123=1;122=1;121=1;120=1;137=1;136=1;139=1;138=1;141=1;140=0;143=1;142=1;129=1;128=1;131=1;130=0;133=1;132=1;135=0;134=1;152=1;153=1;154=1;155=1;156=0;157=1;158=1;159=1;144=1;145=0;146=1;147=1;148=1;149=1;150=0;151=1;171=1;170=0;169=1;168=1;175=0;174=1;173=1;172=1;163=1;162=1;161=1;160=0;167=1;166=1;165=0;164=1;186=1;187=1;184=1;185=0;190=0;191=0;188=1;189=0;178=1;179=1;176=1;177=1;182=1;183=1;180=0;181=1;205=1;204=0;207=1;206=1;201=1;200=1;203=1;202=1;197=1;196=1;199=0;198=1;193=0;192=0;195=1;194=0;220=1;221=1;222=1;223=1;216=1;217=1;218=1;219=1;212=1;213=1;214=0;215=1;208=1;209=0;210=1;211=1;239=0;238=0;237=0;236=1;235=1;234=1;233=1;232=1;231=1;230=1;229=1;228=0;227=0;226=0;225=0;224=1;254=1;255=1;252=1;253=1;250=1;251=1;248=1;249=1;246=1;247=1;244=0;245=1;242=0;243=0;240=0;241=0;275=1;274=1;273=1;272=1;279=0;278=1;277=1;276=1;283=0;282=0;281=0;280=0;287=1;286=1;285=1;284=0;258=1;259=1;256=1;257=1;262=1;263=1;260=1;261=0;266=1;267=1;264=1;265=1;270=1;271=1;268=1;269=1;305=1;304=1;307=1;306=1;309=1;308=1;311=1;310=1;313=1;312=1;315=1;314=0;317=1;316=1;319=0;318=0;288=1;289=1;290=1;291=1;292=1;293=1;294=1;295=1;296=1;297=1;298=1;299=0;300=0;301=0;302=0;303=1;343=1;342=1;341=1;340=1;339=1;338=1;337=1;336=0;351=1;350=1;349=1;348=1;347=0;346=1;345=1;344=1;326=1;327=1;324=1;325=1;322=1;323=1;320=0;321=0;334=0;335=0;332=1;333=0;330=1;331=1;328=1;329=1;373=1;372=1;375=1;374=0;369=0;368=1;371=1;370=1;381=0;380=1;383=0;382=0;377=1;376=1;379=1;378=1;356=1;357=1;358=1;359=0;352=1;353=0;354=1;355=1;364=0;365=1;366=1;367=1;360=1;361=1;362=1;363=1;410=1;411=1;408=1;409=1;414=1;415=1;412=1;413=1;402=0;403=1;400=1;401=1;406=1;407=0;404=1;405=1;395=1;394=1;393=1;392=0;399=1;398=0;397=1;396=1;387=1;386=1;385=0;384=0;391=1;390=1;389=1;388=0;440=1;441=1;442=1;443=0;444=1;445=1;446=1;447=1;432=1;433=1;434=1;435=1;436=0;437=1;438=1;439=0;425=1;424=1;427=1;426=1;429=1;428=1;431=1;430=0;417=1;416=0;419=1;418=1;421=1;420=1;423=1;422=1;478=1;479=1;476=1;477=1;474=1;475=1;472=1;473=1;470=1;471=1;468=1;469=1;466=1;467=0;464=1;465=1;463=1;462=1;461=1;460=1;459=1;458=0;457=1;456=1;455=1;454=1;453=0;452=1;451=1;450=1;449=0;448=1;508=1;509=1;510=1;511=0;504=1;505=1;506=0;507=1;500=1;501=1;502=0;503=1;496=1;497=0;498=1;499=1;493=0;492=1;495=1;494=1;489=1;488=1;491=1;490=1;485=1;484=1;487=0;486=1;481=1;480=1;483=1;482=1;516=1;517=0;518=1;512=1;513=1;514=1;515=1"
- }
- ]
- }
-]
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/scm.json b/server/sonar-web/src/test/json/source-viewer-spec/scm.json
deleted file mode 100644
index ff89c9856ca..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/scm.json
+++ /dev/null
@@ -1,184 +0,0 @@
-{"scm": [
- [1, "simon.brandhof@gmail.com", "2013-04-16"],
- [2, "simon.brandhof@gmail.com", "2013-04-21"],
- [3, "simon.brandhof@gmail.com", "2014-03-11"],
- [4, "simon.brandhof@gmail.com", "2013-04-16"],
- [6, "simon.brandhof@gmail.com", "2013-04-21"],
- [7, "simon.brandhof@gmail.com", "2013-04-16"],
- [11, "simon.brandhof@gmail.com", "2013-04-21"],
- [12, "simon.brandhof@gmail.com", "2013-04-16"],
- [16, "simon.brandhof@gmail.com", "2013-04-22"],
- [19, "simon.brandhof@gmail.com", "2013-04-16"],
- [25, "julien.henry@sonarsource.com", "2014-05-01"],
- [26, "simon.brandhof@gmail.com", "2013-04-17"],
- [30, "julien.henry@sonarsource.com", "2014-04-30"],
- [31, "simon.brandhof@gmail.com", "2013-04-16"],
- [32, "simon.brandhof@gmail.com", "2013-04-17"],
- [33, "julien.henry@sonarsource.com", "2014-05-01"],
- [34, "simon.brandhof@gmail.com", "2013-04-16"],
- [37, "simon.brandhof@gmail.com", "2013-04-17"],
- [38, "simon.brandhof@gmail.com", "2013-04-16"],
- [39, "simon.brandhof@gmail.com", "2013-04-17"],
- [40, "simon.brandhof@gmail.com", "2013-04-16"],
- [41, "simon.brandhof@gmail.com", "2014-02-20"],
- [42, "simon.brandhof@gmail.com", "2013-04-16"],
- [51, "julien.henry@sonarsource.com", "2014-05-01"],
- [52, "simon.brandhof@gmail.com", "2014-02-20"],
- [54, "simon.brandhof@gmail.com", "2013-04-16"],
- [56, "julien.henry@sonarsource.com", "2014-05-01"],
- [57, "simon.brandhof@gmail.com", "2014-02-20"],
- [61, "julien.henry@sonarsource.com", "2014-05-01"],
- [62, "simon.brandhof@gmail.com", "2014-02-20"],
- [66, "julien.henry@sonarsource.com", "2014-05-01"],
- [67, "simon.brandhof@gmail.com", "2014-02-20"],
- [71, "julien.henry@sonarsource.com", "2014-05-01"],
- [72, "simon.brandhof@gmail.com", "2013-04-16"],
- [77, "simon.brandhof@gmail.com", "2013-05-29"],
- [78, "simon.brandhof@gmail.com", "2013-04-16"],
- [82, "simon.brandhof@gmail.com", "2014-02-20"],
- [83, "simon.brandhof@gmail.com", "2013-04-16"],
- [84, "simon.brandhof@gmail.com", "2014-02-20"],
- [116, "julien.henry@sonarsource.com", "2014-05-01"],
- [117, "simon.brandhof@gmail.com", "2014-02-20"],
- [119, "simon.brandhof@gmail.com", "2013-04-16"],
- [126, "simon.brandhof@gmail.com", "2013-10-10"],
- [127, "simon.brandhof@gmail.com", "2013-05-29"],
- [128, "simon.brandhof@gmail.com", "2013-04-16"],
- [131, "simon.brandhof@gmail.com", "2014-02-20"],
- [144, "simon.brandhof@gmail.com", "2013-04-16"],
- [146, "simon.brandhof@gmail.com", "2014-02-20"],
- [152, "simon.brandhof@gmail.com", "2013-10-10"],
- [161, "simon.brandhof@gmail.com", "2014-02-20"],
- [182, "simon.brandhof@gmail.com", "2013-04-16"],
- [183, "simon.brandhof@gmail.com", "2013-04-26"],
- [184, "simon.brandhof@gmail.com", "2013-04-16"],
- [185, "simon.brandhof@gmail.com", "2013-10-10"],
- [186, "simon.brandhof@gmail.com", "2013-05-29"],
- [187, "simon.brandhof@gmail.com", "2013-04-16"],
- [195, "julien.henry@sonarsource.com", "2014-05-01"],
- [196, "simon.brandhof@gmail.com", "2014-02-20"],
- [200, "julien.henry@sonarsource.com", "2014-05-01"],
- [201, "simon.brandhof@gmail.com", "2014-02-20"],
- [205, "julien.henry@sonarsource.com", "2014-05-01"],
- [206, "simon.brandhof@gmail.com", "2014-02-20"],
- [210, "julien.henry@sonarsource.com", "2014-05-01"],
- [211, "simon.brandhof@gmail.com", "2014-02-20"],
- [215, "julien.henry@sonarsource.com", "2014-05-01"],
- [216, "simon.brandhof@gmail.com", "2013-04-16"],
- [217, "simon.brandhof@gmail.com", "2014-02-20"],
- [220, "simon.brandhof@gmail.com", "2013-04-16"],
- [222, "simon.brandhof@gmail.com", "2014-02-20"],
- [223, "simon.brandhof@gmail.com", "2013-04-16"],
- [229, "simon.brandhof@gmail.com", "2014-02-20"],
- [230, "simon.brandhof@gmail.com", "2013-04-16"],
- [245, "julien.henry@sonarsource.com", "2014-05-01"],
- [246, "simon.brandhof@gmail.com", "2014-02-20"],
- [247, "simon.brandhof@gmail.com", "2013-04-16"],
- [248, "simon.brandhof@gmail.com", "2014-02-20"],
- [249, "simon.brandhof@gmail.com", "2013-04-16"],
- [251, "simon.brandhof@gmail.com", "2014-02-20"],
- [252, "simon.brandhof@gmail.com", "2013-04-16"],
- [254, "simon.brandhof@gmail.com", "2014-02-20"],
- [255, "simon.brandhof@gmail.com", "2013-04-16"],
- [258, "simon.brandhof@gmail.com", "2013-05-29"],
- [259, "simon.brandhof@gmail.com", "2013-04-16"],
- [262, "julien.henry@sonarsource.com", "2014-05-01"],
- [263, "simon.brandhof@gmail.com", "2014-02-20"],
- [279, "simon.brandhof@gmail.com", "2013-04-16"],
- [285, "simon.brandhof@gmail.com", "2014-02-20"],
- [298, "simon.brandhof@gmail.com", "2013-04-16"],
- [300, "simon.brandhof@gmail.com", "2013-05-29"],
- [301, "julien.henry@sonarsource.com", "2014-04-30"],
- [308, "julien.henry@sonarsource.com", "2014-05-01"],
- [310, "julien.henry@sonarsource.com", "2014-04-30"],
- [311, "julien.henry@sonarsource.com", "2014-06-20"],
- [312, "julien.henry@sonarsource.com", "2014-04-30"],
- [315, "julien.henry@sonarsource.com", "2014-06-20"],
- [319, "julien.henry@sonarsource.com", "2014-04-30"],
- [320, "simon.brandhof@gmail.com", "2014-02-20"],
- [321, "simon.brandhof@gmail.com", "2013-05-29"],
- [322, "julien.henry@sonarsource.com", "2014-05-01"],
- [323, "simon.brandhof@gmail.com", "2013-04-16"],
- [325, "julien.henry@sonarsource.com", "2014-05-01"],
- [326, "simon.brandhof@gmail.com", "2013-04-16"],
- [327, "julien.henry@sonarsource.com", "2014-05-01"],
- [329, "simon.brandhof@gmail.com", "2013-04-16"],
- [330, "julien.henry@sonarsource.com", "2014-06-20"],
- [331, "simon.brandhof@gmail.com", "2013-04-16"],
- [334, "simon.brandhof@gmail.com", "2013-05-29"],
- [337, "simon.brandhof@gmail.com", "2013-04-16"],
- [339, "simon.brandhof@gmail.com", "2014-02-20"],
- [340, "simon.brandhof@gmail.com", "2013-04-16"],
- [341, "julien.henry@sonarsource.com", "2014-05-01"],
- [343, "simon.brandhof@gmail.com", "2013-04-16"],
- [344, "julien.henry@sonarsource.com", "2014-06-20"],
- [345, "simon.brandhof@gmail.com", "2013-04-16"],
- [347, "simon.brandhof@gmail.com", "2013-04-17"],
- [348, "simon.brandhof@gmail.com", "2014-02-20"],
- [350, "julien.henry@sonarsource.com", "2014-05-01"],
- [352, "simon.brandhof@gmail.com", "2013-04-17"],
- [353, "simon.brandhof@gmail.com", "2014-02-20"],
- [354, "julien.henry@sonarsource.com", "2014-05-01"],
- [358, "simon.brandhof@gmail.com", "2013-04-17"],
- [359, "simon.brandhof@gmail.com", "2014-02-20"],
- [363, "simon.brandhof@gmail.com", "2013-04-17"],
- [365, "simon.brandhof@gmail.com", "2014-02-20"],
- [368, "simon.brandhof@gmail.com", "2013-04-17"],
- [370, "simon.brandhof@gmail.com", "2014-02-20"],
- [380, "simon.brandhof@gmail.com", "2013-04-17"],
- [382, "simon.brandhof@gmail.com", "2013-05-29"],
- [389, "julien.henry@sonarsource.com", "2014-05-01"],
- [391, "simon.brandhof@gmail.com", "2013-05-29"],
- [401, "julien.henry@sonarsource.com", "2014-05-01"],
- [402, "simon.brandhof@gmail.com", "2013-05-29"],
- [403, "julien.henry@sonarsource.com", "2014-05-01"],
- [404, "simon.brandhof@gmail.com", "2013-05-29"],
- [405, "julien.henry@sonarsource.com", "2014-05-01"],
- [406, "simon.brandhof@gmail.com", "2013-05-29"],
- [411, "julien.henry@sonarsource.com", "2014-05-01"],
- [412, "simon.brandhof@gmail.com", "2013-05-29"],
- [417, "julien.henry@sonarsource.com", "2014-05-01"],
- [418, "simon.brandhof@gmail.com", "2013-05-29"],
- [420, "simon.brandhof@gmail.com", "2014-02-20"],
- [421, "julien.henry@sonarsource.com", "2014-05-01"],
- [422, "simon.brandhof@gmail.com", "2014-02-20"],
- [425, "simon.brandhof@gmail.com", "2013-05-29"],
- [426, "julien.henry@sonarsource.com", "2014-05-01"],
- [427, "simon.brandhof@gmail.com", "2013-05-29"],
- [428, "julien.henry@sonarsource.com", "2014-05-01"],
- [429, "simon.brandhof@gmail.com", "2013-05-29"],
- [433, "simon.brandhof@gmail.com", "2014-02-24"],
- [434, "simon.brandhof@gmail.com", "2013-05-29"],
- [437, "simon.brandhof@gmail.com", "2013-04-17"],
- [440, "julien.henry@sonarsource.com", "2014-05-01"],
- [442, "simon.brandhof@gmail.com", "2013-04-17"],
- [452, "julien.henry@sonarsource.com", "2014-05-01"],
- [453, "simon.brandhof@gmail.com", "2013-04-17"],
- [454, "julien.henry@sonarsource.com", "2014-05-01"],
- [455, "simon.brandhof@gmail.com", "2013-04-17"],
- [456, "julien.henry@sonarsource.com", "2014-05-01"],
- [457, "simon.brandhof@gmail.com", "2013-04-17"],
- [462, "julien.henry@sonarsource.com", "2014-05-01"],
- [463, "simon.brandhof@gmail.com", "2013-04-17"],
- [468, "julien.henry@sonarsource.com", "2014-05-01"],
- [469, "simon.brandhof@gmail.com", "2013-04-17"],
- [470, "julien.henry@sonarsource.com", "2014-05-01"],
- [475, "simon.brandhof@gmail.com", "2013-04-17"],
- [476, "julien.henry@sonarsource.com", "2014-05-01"],
- [478, "simon.brandhof@gmail.com", "2013-04-17"],
- [479, "simon.brandhof@gmail.com", "2014-02-20"],
- [483, "julien.henry@sonarsource.com", "2014-05-01"],
- [486, "simon.brandhof@gmail.com", "2013-04-17"],
- [490, "simon.brandhof@gmail.com", "2014-02-24"],
- [491, "simon.brandhof@gmail.com", "2013-04-17"],
- [494, "simon.brandhof@gmail.com", "2014-02-20"],
- [497, "simon.brandhof@gmail.com", "2013-04-17"],
- [498, "simon.brandhof@gmail.com", "2014-02-20"],
- [499, "simon.brandhof@gmail.com", "2013-04-17"],
- [503, "simon.brandhof@gmail.com", "2014-02-20"],
- [504, "simon.brandhof@gmail.com", "2013-04-17"],
- [508, "simon.brandhof@gmail.com", "2014-02-20"],
- [509, "simon.brandhof@gmail.com", "2013-04-17"],
- [517, "julien.henry@sonarsource.com", "2014-05-06"],
- [518, "simon.brandhof@gmail.com", "2013-04-16"]
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/several-issues-on-a-line.json b/server/sonar-web/src/test/json/source-viewer-spec/several-issues-on-a-line.json
deleted file mode 100644
index e4230fb77da..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/several-issues-on-a-line.json
+++ /dev/null
@@ -1,143 +0,0 @@
-{
- "total": 3,
- "p": 1,
- "ps": 500,
- "paging": {
- "pageIndex": 1,
- "pageSize": 500,
- "total": 3
- },
- "issues": [
- {
- "key": "00c52e57-1e71-4079-aee3-19004bc30899",
- "rule": "c:S1764",
- "severity": "CRITICAL",
- "component": "com.sonarsource.samples:multiple-issue-locations:src/main/c/identical-expressions.c",
- "componentId": 1875,
- "project": "com.sonarsource.samples:multiple-issue-locations",
- "subProject": "com.sonarsource.samples:multiple-issue-locations",
- "line": 3,
- "textRange": {
- "startLine": 3,
- "endLine": 3,
- "startOffset": 24,
- "endOffset": 29
- },
- "flows": [],
- "status": "OPEN",
- "message": "Identical sub-expressions on both sides of operator \"||\"",
- "debt": "2min",
- "author": "",
- "tags": [
- "bug",
- "cert"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "comments": [],
- "creationDate": "2015-08-12T14:10:00+0200",
- "updateDate": "2015-08-12T14:10:00+0200"
- },
- {
- "key": "62f1a1f9-b2d0-4003-a774-81ad8668b7ff",
- "rule": "c:S1764",
- "severity": "CRITICAL",
- "component": "com.sonarsource.samples:multiple-issue-locations:src/main/c/identical-expressions.c",
- "componentId": 1875,
- "project": "com.sonarsource.samples:multiple-issue-locations",
- "subProject": "com.sonarsource.samples:multiple-issue-locations",
- "line": 3,
- "textRange": {
- "startLine": 9,
- "endLine": 9,
- "startOffset": 6,
- "endOffset": 10
- },
- "flows": [],
- "status": "OPEN",
- "message": "Identical sub-expressions on both sides of operator \"||\"",
- "debt": "2min",
- "author": "",
- "tags": [
- "bug",
- "cert"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "comments": [],
- "creationDate": "2015-08-12T14:10:00+0200",
- "updateDate": "2015-08-12T14:10:00+0200"
- },
- {
- "key": "4ea2b024-fc40-4050-ba36-1083bb09561a",
- "rule": "c:S1764",
- "severity": "CRITICAL",
- "component": "com.sonarsource.samples:multiple-issue-locations:src/main/c/identical-expressions.c",
- "componentId": 1875,
- "project": "com.sonarsource.samples:multiple-issue-locations",
- "subProject": "com.sonarsource.samples:multiple-issue-locations",
- "line": 5,
- "textRange": {
- "startLine": 18,
- "endLine": 19,
- "startOffset": 13,
- "endOffset": 9
- },
- "flows": [],
- "status": "OPEN",
- "message": "Identical sub-expressions on both sides of operator \"||\"",
- "debt": "2min",
- "author": "",
- "tags": [
- "bug",
- "cert"
- ],
- "transitions": [
- "confirm",
- "resolve",
- "falsepositive",
- "wontfix"
- ],
- "actions": [
- "comment",
- "assign",
- "set_tags",
- "assign_to_me",
- "plan",
- "set_severity"
- ],
- "comments": [],
- "creationDate": "2015-08-12T14:10:00+0200",
- "updateDate": "2015-08-12T14:10:00+0200"
- }
- ],
- "components": [],
- "rules": [],
- "users": [],
- "actionPlans": [],
- "languages": []
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/source.json b/server/sonar-web/src/test/json/source-viewer-spec/source.json
deleted file mode 100644
index 1b32224e6a7..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/source.json
+++ /dev/null
@@ -1,521 +0,0 @@
-{"sources": [
- [1, "<span class=\"cppd\">/*</span>"],
- [2, "<span class=\"cppd\"> * SonarQube, open source software quality management tool.</span>"],
- [3, "<span class=\"cppd\"> * Copyright (C) 2008-2014 SonarSource</span>"],
- [4, "<span class=\"cppd\"> * mailto:contact AT sonarsource DOT com</span>"],
- [5, "<span class=\"cppd\"> *</span>"],
- [6, "<span class=\"cppd\"> * SonarQube is free software; you can redistribute it and/or</span>"],
- [7, "<span class=\"cppd\"> * modify it under the terms of the GNU Lesser General Public</span>"],
- [8, "<span class=\"cppd\"> * License as published by the Free Software Foundation; either</span>"],
- [9, "<span class=\"cppd\"> * version 3 of the License, or (at your option) any later version.</span>"],
- [10, "<span class=\"cppd\"> *</span>"],
- [11, "<span class=\"cppd\"> * SonarQube is distributed in the hope that it will be useful,</span>"],
- [12, "<span class=\"cppd\"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>"],
- [13, "<span class=\"cppd\"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>"],
- [14, "<span class=\"cppd\"> * Lesser General Public License for more details.</span>"],
- [15, "<span class=\"cppd\"> *</span>"],
- [16, "<span class=\"cppd\"> * You should have received a copy of the GNU Lesser General Public License</span>"],
- [17, "<span class=\"cppd\"> * along with this program; if not, write to the Free Software Foundation,</span>"],
- [18, "<span class=\"cppd\"> * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.</span>"],
- [19, "<span class=\"cppd\"> */</span>"],
- [20, "<span class=\"k\">package </span>org.sonar.batch.index;"],
- [21, ""],
- [22, "<span class=\"k\">import </span>com.google.common.collect.<span class=\"sym-949 sym\">Sets</span>;"],
- [23, "<span class=\"k\">import </span>com.persistit.<span class=\"sym-976 sym\">Exchange</span>;"],
- [24, "<span class=\"k\">import </span>com.persistit.<span class=\"sym-1007 sym\">Key</span>;"],
- [25, "<span class=\"k\">import </span>com.persistit.<span class=\"sym-1033 sym\">KeyFilter</span>;"],
- [26, "<span class=\"k\">import </span>com.persistit.exception.<span class=\"sym-1075 sym\">PersistitException</span>;"],
- [27, "<span class=\"k\">import </span>org.apache.commons.lang.builder.<span class=\"sym-1134 sym\">ToStringBuilder</span>;"],
- [28, ""],
- [29, "<span class=\"k\">import </span>javax.annotation.<span class=\"sym-1176 sym\">CheckForNull</span>;"],
- [30, ""],
- [31, "<span class=\"k\">import </span>java.io.<span class=\"sym-1206 sym\">Serializable</span>;"],
- [32, "<span class=\"k\">import </span>java.util.<span class=\"sym-1237 sym\">Iterator</span>;"],
- [33, "<span class=\"k\">import </span>java.util.<span class=\"sym-1264 sym\">NoSuchElementException</span>;"],
- [34, "<span class=\"k\">import </span>java.util.<span class=\"sym-1305 sym\">Set</span>;"],
- [35, ""],
- [36, "<span class=\"cppd\">/**</span>"],
- [37, "<span class=\"cppd\"> * &lt;p&gt;</span>"],
- [38, "<span class=\"cppd\"> * This cache is not thread-safe, due to direct usage of {@link com.persistit.Exchange}</span>"],
- [39, "<span class=\"cppd\"> * &lt;/p&gt;</span>"],
- [40, "<span class=\"cppd\"> */</span>"],
- [41, "<span class=\"k\">public </span><span class=\"k\">class </span><span class=\"sym-1435 sym\">Cache</span>&lt;V <span class=\"k\">extends </span>Serializable&gt; {"],
- [42, ""],
- [43, " <span class=\"k\">private </span><span class=\"k\">final </span>String <span class=\"sym-1491 sym\">name</span>;"],
- [44, " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-1522 sym\">exchange</span>;"],
- [45, ""],
- [46, " <span class=\"sym-1535 sym\">Cache</span>(String <span class=\"sym-1548 sym\">name</span>, <span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-1563 sym\">exchange</span>) {"],
- [47, " <span class=\"k\">this</span>.<span class=\"sym-1491 sym\">name</span> = <span class=\"sym-1548 sym\">name</span>;"],
- [48, " <span class=\"k\">this</span>.<span class=\"sym-1522 sym\">exchange</span> = <span class=\"sym-1563 sym\">exchange</span>;"],
- [49, " }"],
- [50, ""],
- [51, " <span class=\"k\">public </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-1650 sym\">put</span>(Object <span class=\"sym-1661 sym\">key</span>, V <span class=\"sym-1668 sym\">value</span>) {"],
- [52, " resetKey(<span class=\"sym-1661 sym\">key</span>);"],
- [53, " <span class=\"k\">return </span><span class=\"sym-2134 sym\">doPut</span>(<span class=\"sym-1668 sym\">value</span>);"],
- [54, " }"],
- [55, ""],
- [56, " <span class=\"k\">public </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-1744 sym\">put</span>(Object <span class=\"sym-1755 sym\">firstKey</span>, Object <span class=\"sym-1772 sym\">secondKey</span>, V <span class=\"sym-1785 sym\">value</span>) {"],
- [57, " resetKey(<span class=\"sym-1755 sym\">firstKey</span>, <span class=\"sym-1772 sym\">secondKey</span>);"],
- [58, " <span class=\"k\">return </span><span class=\"sym-2134 sym\">doPut</span>(<span class=\"sym-1785 sym\">value</span>);"],
- [59, " }"],
- [60, ""],
- [61, " <span class=\"k\">public </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-1877 sym\">put</span>(Object <span class=\"sym-1888 sym\">firstKey</span>, Object <span class=\"sym-1905 sym\">secondKey</span>, Object <span class=\"sym-1923 sym\">thirdKey</span>, V <span class=\"sym-1935 sym\">value</span>) {"],
- [62, " resetKey(<span class=\"sym-1888 sym\">firstKey</span>, <span class=\"sym-1905 sym\">secondKey</span>, <span class=\"sym-1923 sym\">thirdKey</span>);"],
- [63, " <span class=\"k\">return </span><span class=\"sym-2134 sym\">doPut</span>(<span class=\"sym-1935 sym\">value</span>);"],
- [64, " }"],
- [65, ""],
- [66, " <span class=\"k\">public </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-2037 sym\">put</span>(Object[] <span class=\"sym-2050 sym\">key</span>, V <span class=\"sym-2057 sym\">value</span>) {"],
- [67, " resetKey(<span class=\"sym-2050 sym\">key</span>);"],
- [68, " <span class=\"k\">return </span><span class=\"sym-2134 sym\">doPut</span>(<span class=\"sym-2057 sym\">value</span>);"],
- [69, " }"],
- [70, ""],
- [71, " <span class=\"k\">private </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-2134 sym\">doPut</span>(V <span class=\"sym-2142 sym\">value</span>) {"],
- [72, " <span class=\"k\">try </span>{"],
- [73, " <span class=\"sym-1522 sym\">exchange</span>.getValue().put(<span class=\"sym-2142 sym\">value</span>);"],
- [74, " <span class=\"sym-1522 sym\">exchange</span>.store();"],
- [75, " <span class=\"k\">return </span><span class=\"k\">this</span>;"],
- [76, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-2265 sym\">e</span>) {"],
- [77, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to put element in the cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-2265 sym\">e</span>);"],
- [78, " }"],
- [79, " }"],
- [80, ""],
- [81, " <span class=\"cppd\">/**</span>"],
- [82, "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>"],
- [83, "<span class=\"cppd\"> */</span>"],
- [84, " <span class=\"k\">public </span>V <span class=\"sym-2464 sym\">get</span>(Object <span class=\"sym-2475 sym\">key</span>) {"],
- [85, " resetKey(<span class=\"sym-2475 sym\">key</span>);"],
- [86, " <span class=\"k\">return </span><span class=\"sym-3219 sym\">doGet</span>();"],
- [87, " }"],
- [88, ""],
- [89, " <span class=\"cppd\">/**</span>"],
- [90, "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>"],
- [91, "<span class=\"cppd\"> */</span>"],
- [92, " <span class=\"a\">@<span class=\"sym-1176 sym\">CheckForNull</span></span>"],
- [93, "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-2639 sym\">get</span>(Object <span class=\"sym-2650 sym\">firstKey</span>, Object <span class=\"sym-2667 sym\">secondKey</span>) {"],
- [94, " resetKey(<span class=\"sym-2650 sym\">firstKey</span>, <span class=\"sym-2667 sym\">secondKey</span>);"],
- [95, " <span class=\"k\">return </span><span class=\"sym-3219 sym\">doGet</span>();"],
- [96, " }"],
- [97, ""],
- [98, " <span class=\"cppd\">/**</span>"],
- [99, "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>"],
- [100, "<span class=\"cppd\"> */</span>"],
- [101, " <span class=\"a\">@<span class=\"sym-1176 sym\">CheckForNull</span></span>"],
- [102, "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-2853 sym\">get</span>(Object <span class=\"sym-2864 sym\">firstKey</span>, Object <span class=\"sym-2881 sym\">secondKey</span>, Object <span class=\"sym-2899 sym\">thirdKey</span>) {"],
- [103, " resetKey(<span class=\"sym-2864 sym\">firstKey</span>, <span class=\"sym-2881 sym\">secondKey</span>, <span class=\"sym-2899 sym\">thirdKey</span>);"],
- [104, " <span class=\"k\">return </span><span class=\"sym-3219 sym\">doGet</span>();"],
- [105, " }"],
- [106, ""],
- [107, " <span class=\"cppd\">/**</span>"],
- [108, "<span class=\"cppd\"> * Returns the value object associated with keys, or null if not found.</span>"],
- [109, "<span class=\"cppd\"> */</span>"],
- [110, " <span class=\"a\">@<span class=\"sym-1176 sym\">CheckForNull</span></span>"],
- [111, "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-3094 sym\">get</span>(Object[] <span class=\"sym-3107 sym\">key</span>) {"],
- [112, " resetKey(<span class=\"sym-3107 sym\">key</span>);"],
- [113, " <span class=\"k\">return </span><span class=\"sym-3219 sym\">doGet</span>();"],
- [114, " }"],
- [115, ""],
- [116, " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)"],
- [117, " <span class=\"a\">@<span class=\"sym-1176 sym\">CheckForNull</span></span>"],
- [118, "<span class=\"a\"> </span><span class=\"k\">private </span>V <span class=\"sym-3219 sym\">doGet</span>() {"],
- [119, " <span class=\"k\">try </span>{"],
- [120, " <span class=\"sym-1522 sym\">exchange</span>.fetch();"],
- [121, " <span class=\"k\">if </span>(!<span class=\"sym-1522 sym\">exchange</span>.getValue().isDefined()) {"],
- [122, " <span class=\"k\">return </span><span class=\"k\">null</span>;"],
- [123, " }"],
- [124, " <span class=\"k\">return </span>(V) <span class=\"sym-1522 sym\">exchange</span>.getValue().get();"],
- [125, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-3405 sym\">e</span>) {"],
- [126, " <span class=\"cppd\">// TODO add parameters to message</span>"],
- [127, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to get element from cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-3405 sym\">e</span>);"],
- [128, " }"],
- [129, " }"],
- [130, ""],
- [131, " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-3562 sym\">containsKey</span>(Object <span class=\"sym-3581 sym\">key</span>) {"],
- [132, " resetKey(<span class=\"sym-3581 sym\">key</span>);"],
- [133, " <span class=\"k\">return </span><span class=\"sym-4050 sym\">doContainsKey</span>();"],
- [134, " }"],
- [135, ""],
- [136, " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-3657 sym\">containsKey</span>(Object <span class=\"sym-3676 sym\">firstKey</span>, Object <span class=\"sym-3693 sym\">secondKey</span>) {"],
- [137, " resetKey(<span class=\"sym-3676 sym\">firstKey</span>, <span class=\"sym-3693 sym\">secondKey</span>);"],
- [138, " <span class=\"k\">return </span><span class=\"sym-4050 sym\">doContainsKey</span>();"],
- [139, " }"],
- [140, ""],
- [141, " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-3791 sym\">containsKey</span>(Object <span class=\"sym-3810 sym\">firstKey</span>, Object <span class=\"sym-3827 sym\">secondKey</span>, Object <span class=\"sym-3845 sym\">thirdKey</span>) {"],
- [142, " resetKey(<span class=\"sym-3810 sym\">firstKey</span>, <span class=\"sym-3827 sym\">secondKey</span>, <span class=\"sym-3845 sym\">thirdKey</span>);"],
- [143, " <span class=\"k\">return </span><span class=\"sym-4050 sym\">doContainsKey</span>();"],
- [144, " }"],
- [145, ""],
- [146, " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-3952 sym\">containsKey</span>(Object[] <span class=\"sym-3973 sym\">key</span>) {"],
- [147, " resetKey(<span class=\"sym-3973 sym\">key</span>);"],
- [148, " <span class=\"k\">return </span><span class=\"sym-4050 sym\">doContainsKey</span>();"],
- [149, " }"],
- [150, ""],
- [151, " <span class=\"k\">private </span><span class=\"k\">boolean </span><span class=\"sym-4050 sym\">doContainsKey</span>() {"],
- [152, " <span class=\"k\">try </span>{"],
- [153, " <span class=\"sym-1522 sym\">exchange</span>.fetch();"],
- [154, " <span class=\"k\">return </span><span class=\"sym-1522 sym\">exchange</span>.isValueDefined();"],
- [155, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-4165 sym\">e</span>) {"],
- [156, " <span class=\"cppd\">// TODO add parameters to message</span>"],
- [157, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to check if element is in cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-4165 sym\">e</span>);"],
- [158, " }"],
- [159, " }"],
- [160, ""],
- [161, " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-4328 sym\">remove</span>(Object <span class=\"sym-4342 sym\">key</span>) {"],
- [162, " resetKey(<span class=\"sym-4342 sym\">key</span>);"],
- [163, " <span class=\"k\">return </span><span class=\"sym-4776 sym\">doRemove</span>();"],
- [164, " }"],
- [165, ""],
- [166, " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-4413 sym\">remove</span>(Object <span class=\"sym-4427 sym\">firstKey</span>, Object <span class=\"sym-4444 sym\">secondKey</span>) {"],
- [167, " resetKey(<span class=\"sym-4427 sym\">firstKey</span>, <span class=\"sym-4444 sym\">secondKey</span>);"],
- [168, " <span class=\"k\">return </span><span class=\"sym-4776 sym\">doRemove</span>();"],
- [169, " }"],
- [170, ""],
- [171, " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-4537 sym\">remove</span>(Object <span class=\"sym-4551 sym\">firstKey</span>, Object <span class=\"sym-4568 sym\">secondKey</span>, Object <span class=\"sym-4586 sym\">thirdKey</span>) {"],
- [172, " resetKey(<span class=\"sym-4551 sym\">firstKey</span>, <span class=\"sym-4568 sym\">secondKey</span>, <span class=\"sym-4586 sym\">thirdKey</span>);"],
- [173, " <span class=\"k\">return </span><span class=\"sym-4776 sym\">doRemove</span>();"],
- [174, " }"],
- [175, ""],
- [176, " <span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-4688 sym\">remove</span>(Object[] <span class=\"sym-4704 sym\">key</span>) {"],
- [177, " resetKey(<span class=\"sym-4704 sym\">key</span>);"],
- [178, " <span class=\"k\">return </span><span class=\"sym-4776 sym\">doRemove</span>();"],
- [179, " }"],
- [180, ""],
- [181, " <span class=\"k\">private </span><span class=\"k\">boolean </span><span class=\"sym-4776 sym\">doRemove</span>() {"],
- [182, " <span class=\"k\">try </span>{"],
- [183, " <span class=\"k\">return </span><span class=\"sym-1522 sym\">exchange</span>.remove();"],
- [184, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-4854 sym\">e</span>) {"],
- [185, " <span class=\"cppd\">// TODO add parameters to message</span>"],
- [186, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to get element from cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-4854 sym\">e</span>);"],
- [187, " }"],
- [188, " }"],
- [189, ""],
- [190, " <span class=\"cppd\">/**</span>"],
- [191, "<span class=\"cppd\"> * Removes everything in the specified group.</span>"],
- [192, "<span class=\"cppd\"> *</span>"],
- [193, "<span class=\"cppd\"> * @param group The group name.</span>"],
- [194, "<span class=\"cppd\"> */</span>"],
- [195, " <span class=\"k\">public </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-5111 sym\">clear</span>(Object <span class=\"sym-5124 sym\">key</span>) {"],
- [196, " resetKey(<span class=\"sym-5124 sym\">key</span>);"],
- [197, " <span class=\"k\">return </span><span class=\"sym-5555 sym\">doClear</span>();"],
- [198, " }"],
- [199, ""],
- [200, " <span class=\"k\">public </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-5195 sym\">clear</span>(Object <span class=\"sym-5208 sym\">firstKey</span>, Object <span class=\"sym-5225 sym\">secondKey</span>) {"],
- [201, " resetKey(<span class=\"sym-5208 sym\">firstKey</span>, <span class=\"sym-5225 sym\">secondKey</span>);"],
- [202, " <span class=\"k\">return </span><span class=\"sym-5555 sym\">doClear</span>();"],
- [203, " }"],
- [204, ""],
- [205, " <span class=\"k\">public </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-5318 sym\">clear</span>(Object <span class=\"sym-5331 sym\">firstKey</span>, Object <span class=\"sym-5348 sym\">secondKey</span>, Object <span class=\"sym-5366 sym\">thirdKey</span>) {"],
- [206, " resetKey(<span class=\"sym-5331 sym\">firstKey</span>, <span class=\"sym-5348 sym\">secondKey</span>, <span class=\"sym-5366 sym\">thirdKey</span>);"],
- [207, " <span class=\"k\">return </span><span class=\"sym-5555 sym\">doClear</span>();"],
- [208, " }"],
- [209, ""],
- [210, " <span class=\"k\">public </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-5468 sym\">clear</span>(Object[] <span class=\"sym-5483 sym\">key</span>) {"],
- [211, " resetKey(<span class=\"sym-5483 sym\">key</span>);"],
- [212, " <span class=\"k\">return </span><span class=\"sym-5555 sym\">doClear</span>();"],
- [213, " }"],
- [214, ""],
- [215, " <span class=\"k\">private </span><span class=\"sym-1435 sym\">Cache</span>&lt;V&gt; <span class=\"sym-5555 sym\">doClear</span>() {"],
- [216, " <span class=\"k\">try </span>{"],
- [217, " <span class=\"sym-1007 sym\">Key</span> <span class=\"sym-5587 sym\">to</span> = <span class=\"k\">new </span><span class=\"sym-1007 sym\">Key</span>(<span class=\"sym-1522 sym\">exchange</span>.getKey());"],
- [218, " <span class=\"sym-5587 sym\">to</span>.append(<span class=\"sym-1007 sym\">Key</span>.AFTER);"],
- [219, " <span class=\"sym-1522 sym\">exchange</span>.removeKeyRange(<span class=\"sym-1522 sym\">exchange</span>.getKey(), <span class=\"sym-5587 sym\">to</span>);"],
- [220, " <span class=\"k\">return </span><span class=\"k\">this</span>;"],
- [221, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-5744 sym\">e</span>) {"],
- [222, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to clear values from cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-5744 sym\">e</span>);"],
- [223, " }"],
- [224, " }"],
- [225, ""],
- [226, " <span class=\"cppd\">/**</span>"],
- [227, "<span class=\"cppd\"> * Clears the default as well as all group caches.</span>"],
- [228, "<span class=\"cppd\"> */</span>"],
- [229, " <span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-5924 sym\">clear</span>() {"],
- [230, " <span class=\"k\">try </span>{"],
- [231, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [232, " <span class=\"sym-1522 sym\">exchange</span>.removeAll();"],
- [233, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-6019 sym\">e</span>) {"],
- [234, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to clear cache\"</span>, <span class=\"sym-6019 sym\">e</span>);"],
- [235, " }"],
- [236, " }"],
- [237, ""],
- [238, " <span class=\"cppd\">/**</span>"],
- [239, "<span class=\"cppd\"> * Returns the set of cache keys associated with this group.</span>"],
- [240, "<span class=\"cppd\"> * TODO implement a lazy-loading equivalent with Iterator/Iterable</span>"],
- [241, "<span class=\"cppd\"> *</span>"],
- [242, "<span class=\"cppd\"> * @param group The group.</span>"],
- [243, "<span class=\"cppd\"> * @return The set of cache keys for this group.</span>"],
- [244, "<span class=\"cppd\"> */</span>"],
- [245, " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"rawtypes\"</span>)"],
- [246, " <span class=\"k\">public </span><span class=\"sym-1305 sym\">Set</span> <span class=\"sym-6374 sym\">keySet</span>(Object <span class=\"sym-6388 sym\">key</span>) {"],
- [247, " <span class=\"k\">try </span>{"],
- [248, " <span class=\"sym-1305 sym\">Set</span>&lt;Object&gt; <span class=\"sym-6423 sym\">keys</span> = <span class=\"sym-949 sym\">Sets</span>.newLinkedHashSet();"],
- [249, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [250, " <span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-6494 sym\">iteratorExchange</span> = <span class=\"k\">new </span><span class=\"sym-976 sym\">Exchange</span>(<span class=\"sym-1522 sym\">exchange</span>);"],
- [251, " <span class=\"sym-6494 sym\">iteratorExchange</span>.append(<span class=\"sym-6388 sym\">key</span>);"],
- [252, " <span class=\"sym-6494 sym\">iteratorExchange</span>.append(<span class=\"sym-1007 sym\">Key</span>.BEFORE);"],
- [253, " <span class=\"k\">while </span>(<span class=\"sym-6494 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {"],
- [254, " <span class=\"sym-6423 sym\">keys</span>.add(<span class=\"sym-6494 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());"],
- [255, " }"],
- [256, " <span class=\"k\">return </span><span class=\"sym-6423 sym\">keys</span>;"],
- [257, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-6777 sym\">e</span>) {"],
- [258, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-6777 sym\">e</span>);"],
- [259, " }"],
- [260, " }"],
- [261, ""],
- [262, " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"rawtypes\"</span>)"],
- [263, " <span class=\"k\">public </span><span class=\"sym-1305 sym\">Set</span> <span class=\"sym-6919 sym\">keySet</span>(Object <span class=\"sym-6933 sym\">firstKey</span>, Object <span class=\"sym-6950 sym\">secondKey</span>) {"],
- [264, " <span class=\"k\">try </span>{"],
- [265, " <span class=\"sym-1305 sym\">Set</span>&lt;Object&gt; <span class=\"sym-6991 sym\">keys</span> = <span class=\"sym-949 sym\">Sets</span>.newLinkedHashSet();"],
- [266, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [267, " <span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-7062 sym\">iteratorExchange</span> = <span class=\"k\">new </span><span class=\"sym-976 sym\">Exchange</span>(<span class=\"sym-1522 sym\">exchange</span>);"],
- [268, " <span class=\"sym-7062 sym\">iteratorExchange</span>.append(<span class=\"sym-6933 sym\">firstKey</span>);"],
- [269, " <span class=\"sym-7062 sym\">iteratorExchange</span>.append(<span class=\"sym-6950 sym\">secondKey</span>);"],
- [270, " <span class=\"sym-7062 sym\">iteratorExchange</span>.append(<span class=\"sym-1007 sym\">Key</span>.BEFORE);"],
- [271, " <span class=\"k\">while </span>(<span class=\"sym-7062 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {"],
- [272, " <span class=\"sym-6991 sym\">keys</span>.add(<span class=\"sym-7062 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());"],
- [273, " }"],
- [274, " <span class=\"k\">return </span><span class=\"sym-6991 sym\">keys</span>;"],
- [275, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-7392 sym\">e</span>) {"],
- [276, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-7392 sym\">e</span>);"],
- [277, " }"],
- [278, " }"],
- [279, ""],
- [280, " <span class=\"cppd\">/**</span>"],
- [281, "<span class=\"cppd\"> * Returns the set of keys associated with this cache.</span>"],
- [282, "<span class=\"cppd\"> *</span>"],
- [283, "<span class=\"cppd\"> * @return The set containing the keys for this cache.</span>"],
- [284, "<span class=\"cppd\"> */</span>"],
- [285, " <span class=\"k\">public </span><span class=\"sym-1305 sym\">Set</span>&lt;Object&gt; <span class=\"sym-7641 sym\">keySet</span>() {"],
- [286, " <span class=\"k\">try </span>{"],
- [287, " <span class=\"sym-1305 sym\">Set</span>&lt;Object&gt; <span class=\"sym-7680 sym\">keys</span> = <span class=\"sym-949 sym\">Sets</span>.newLinkedHashSet();"],
- [288, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [289, " <span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-7751 sym\">iteratorExchange</span> = <span class=\"k\">new </span><span class=\"sym-976 sym\">Exchange</span>(<span class=\"sym-1522 sym\">exchange</span>);"],
- [290, " <span class=\"sym-7751 sym\">iteratorExchange</span>.append(<span class=\"sym-1007 sym\">Key</span>.BEFORE);"],
- [291, " <span class=\"k\">while </span>(<span class=\"sym-7751 sym\">iteratorExchange</span>.next(<span class=\"k\">false</span>)) {"],
- [292, " <span class=\"sym-7680 sym\">keys</span>.add(<span class=\"sym-7751 sym\">iteratorExchange</span>.getKey().indexTo(-<span class=\"c\">1</span>).decode());"],
- [293, " }"],
- [294, " <span class=\"k\">return </span><span class=\"sym-7680 sym\">keys</span>;"],
- [295, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-7998 sym\">e</span>) {"],
- [296, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to get keys from cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-7998 sym\">e</span>);"],
- [297, " }"],
- [298, " }"],
- [299, ""],
- [300, " <span class=\"cppd\">/**</span>"],
- [301, "<span class=\"cppd\"> * Lazy-loading values for given keys</span>"],
- [302, "<span class=\"cppd\"> */</span>"],
- [303, " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-8168 sym\">values</span>(Object <span class=\"sym-8182 sym\">firstKey</span>, Object <span class=\"sym-8199 sym\">secondKey</span>) {"],
- [304, " <span class=\"k\">try </span>{"],
- [305, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [306, " <span class=\"sym-1522 sym\">exchange</span>.append(<span class=\"sym-8182 sym\">firstKey</span>).append(<span class=\"sym-8199 sym\">secondKey</span>).append(<span class=\"sym-1007 sym\">Key</span>.BEFORE);"],
- [307, " <span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-8331 sym\">iteratorExchange</span> = <span class=\"k\">new </span><span class=\"sym-976 sym\">Exchange</span>(<span class=\"sym-1522 sym\">exchange</span>);"],
- [308, " <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-8390 sym\">filter</span> = <span class=\"k\">new </span><span class=\"sym-1033 sym\">KeyFilter</span>().append(<span class=\"sym-1033 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-8182 sym\">firstKey</span>)).append(<span class=\"sym-1033 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-8199 sym\">secondKey</span>));"],
- [309, " <span class=\"k\">return </span><span class=\"k\">new </span><span class=\"sym-10646 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-8331 sym\">iteratorExchange</span>, <span class=\"sym-8390 sym\">filter</span>);"],
- [310, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-8579 sym\">e</span>) {"],
- [311, " <span class=\"k\">throw </span><span class=\"sym-8659 sym\">failToGetValues</span>(<span class=\"sym-8579 sym\">e</span>);"],
- [312, " }"],
- [313, " }"],
- [314, ""],
- [315, " <span class=\"k\">private </span>IllegalStateException <span class=\"sym-8659 sym\">failToGetValues</span>(Exception <span class=\"sym-8685 sym\">e</span>) {"],
- [316, " <span class=\"k\">return </span><span class=\"k\">new </span>IllegalStateException(<span class=\"s\">\"Fail to get values from cache \" </span>+ <span class=\"sym-1491 sym\">name</span>, <span class=\"sym-8685 sym\">e</span>);"],
- [317, " }"],
- [318, ""],
- [319, " <span class=\"cppd\">/**</span>"],
- [320, "<span class=\"cppd\"> * Lazy-loading values for a given key</span>"],
- [321, "<span class=\"cppd\"> */</span>"],
- [322, " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-8851 sym\">values</span>(Object <span class=\"sym-8865 sym\">firstKey</span>) {"],
- [323, " <span class=\"k\">try </span>{"],
- [324, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [325, " <span class=\"sym-1522 sym\">exchange</span>.append(<span class=\"sym-8865 sym\">firstKey</span>).append(<span class=\"sym-1007 sym\">Key</span>.BEFORE);"],
- [326, " <span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-8978 sym\">iteratorExchange</span> = <span class=\"k\">new </span><span class=\"sym-976 sym\">Exchange</span>(<span class=\"sym-1522 sym\">exchange</span>);"],
- [327, " <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-9037 sym\">filter</span> = <span class=\"k\">new </span><span class=\"sym-1033 sym\">KeyFilter</span>().append(<span class=\"sym-1033 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-8865 sym\">firstKey</span>));"],
- [328, " <span class=\"k\">return </span><span class=\"k\">new </span><span class=\"sym-10646 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-8978 sym\">iteratorExchange</span>, <span class=\"sym-9037 sym\">filter</span>);"],
- [329, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-9186 sym\">e</span>) {"],
- [330, " <span class=\"k\">throw </span><span class=\"sym-8659 sym\">failToGetValues</span>(<span class=\"sym-9186 sym\">e</span>);"],
- [331, " }"],
- [332, " }"],
- [333, ""],
- [334, " <span class=\"cppd\">/**</span>"],
- [335, "<span class=\"cppd\"> * Lazy-loading values</span>"],
- [336, "<span class=\"cppd\"> */</span>"],
- [337, " <span class=\"k\">public </span>Iterable&lt;V&gt; <span class=\"sym-9292 sym\">values</span>() {"],
- [338, " <span class=\"k\">try </span>{"],
- [339, " <span class=\"sym-1522 sym\">exchange</span>.clear().append(<span class=\"sym-1007 sym\">Key</span>.BEFORE);"],
- [340, " <span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-9371 sym\">iteratorExchange</span> = <span class=\"k\">new </span><span class=\"sym-976 sym\">Exchange</span>(<span class=\"sym-1522 sym\">exchange</span>);"],
- [341, " <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-9430 sym\">filter</span> = <span class=\"k\">new </span><span class=\"sym-1033 sym\">KeyFilter</span>().append(<span class=\"sym-1033 sym\">KeyFilter</span>.ALL);"],
- [342, " <span class=\"k\">return </span><span class=\"k\">new </span><span class=\"sym-10646 sym\">ValueIterable</span>&lt;V&gt;(<span class=\"sym-9371 sym\">iteratorExchange</span>, <span class=\"sym-9430 sym\">filter</span>);"],
- [343, " } <span class=\"k\">catch </span>(Exception <span class=\"sym-9562 sym\">e</span>) {"],
- [344, " <span class=\"k\">throw </span><span class=\"sym-8659 sym\">failToGetValues</span>(<span class=\"sym-9562 sym\">e</span>);"],
- [345, " }"],
- [346, " }"],
- [347, ""],
- [348, " <span class=\"k\">public </span>Iterable&lt;<span class=\"sym-13607 sym\">Entry</span>&lt;V&gt;&gt; <span class=\"sym-9638 sym\">entries</span>() {"],
- [349, " <span class=\"sym-1522 sym\">exchange</span>.clear().to(<span class=\"sym-1007 sym\">Key</span>.BEFORE);"],
- [350, " <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-9701 sym\">filter</span> = <span class=\"k\">new </span><span class=\"sym-1033 sym\">KeyFilter</span>().append(<span class=\"sym-1033 sym\">KeyFilter</span>.ALL);"],
- [351, " <span class=\"k\">return </span><span class=\"k\">new </span><span class=\"sym-11992 sym\">EntryIterable</span>&lt;V&gt;(<span class=\"k\">new </span><span class=\"sym-976 sym\">Exchange</span>(<span class=\"sym-1522 sym\">exchange</span>), <span class=\"sym-9701 sym\">filter</span>);"],
- [352, " }"],
- [353, ""],
- [354, " <span class=\"k\">public </span>Iterable&lt;<span class=\"sym-13607 sym\">Entry</span>&lt;V&gt;&gt; <span class=\"sym-9847 sym\">entries</span>(Object <span class=\"sym-9862 sym\">firstKey</span>) {"],
- [355, " <span class=\"sym-1522 sym\">exchange</span>.clear().append(<span class=\"sym-9862 sym\">firstKey</span>).append(<span class=\"sym-1007 sym\">Key</span>.BEFORE);"],
- [356, " <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-9946 sym\">filter</span> = <span class=\"k\">new </span><span class=\"sym-1033 sym\">KeyFilter</span>().append(<span class=\"sym-1033 sym\">KeyFilter</span>.simpleTerm(<span class=\"sym-9862 sym\">firstKey</span>));"],
- [357, " <span class=\"k\">return </span><span class=\"k\">new </span><span class=\"sym-11992 sym\">EntryIterable</span>&lt;V&gt;(<span class=\"k\">new </span><span class=\"sym-976 sym\">Exchange</span>(<span class=\"sym-1522 sym\">exchange</span>), <span class=\"sym-9946 sym\">filter</span>);"],
- [358, " }"],
- [359, ""],
- [360, " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-10096 sym\">resetKey</span>(Object <span class=\"sym-10112 sym\">key</span>) {"],
- [361, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [362, " <span class=\"sym-1522 sym\">exchange</span>.append(<span class=\"sym-10112 sym\">key</span>);"],
- [363, " }"],
- [364, ""],
- [365, " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-10187 sym\">resetKey</span>(Object <span class=\"sym-10203 sym\">first</span>, Object <span class=\"sym-10217 sym\">second</span>) {"],
- [366, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [367, " <span class=\"sym-1522 sym\">exchange</span>.append(<span class=\"sym-10203 sym\">first</span>).append(<span class=\"sym-10217 sym\">second</span>);"],
- [368, " }"],
- [369, ""],
- [370, " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-10312 sym\">resetKey</span>(Object <span class=\"sym-10328 sym\">first</span>, Object <span class=\"sym-10342 sym\">second</span>, Object <span class=\"sym-10357 sym\">third</span>) {"],
- [371, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [372, " <span class=\"sym-1522 sym\">exchange</span>.append(<span class=\"sym-10328 sym\">first</span>).append(<span class=\"sym-10342 sym\">second</span>).append(<span class=\"sym-10357 sym\">third</span>);"],
- [373, " }"],
- [374, ""],
- [375, " <span class=\"k\">private </span><span class=\"k\">void </span><span class=\"sym-10465 sym\">resetKey</span>(Object[] <span class=\"sym-10483 sym\">keys</span>) {"],
- [376, " <span class=\"sym-1522 sym\">exchange</span>.clear();"],
- [377, " <span class=\"k\">for </span>(Object <span class=\"sym-10529 sym\">o</span> : <span class=\"sym-10483 sym\">keys</span>) {"],
- [378, " <span class=\"sym-1522 sym\">exchange</span>.append(<span class=\"sym-10529 sym\">o</span>);"],
- [379, " }"],
- [380, " }"],
- [381, ""],
- [382, " <span class=\"cppd\">//</span>"],
- [383, " <span class=\"cppd\">// LAZY ITERATORS AND ITERABLES</span>"],
- [384, " <span class=\"cppd\">//</span>"],
- [385, ""],
- [386, " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class </span><span class=\"sym-10646 sym\">ValueIterable</span>&lt;T <span class=\"k\">extends </span>Serializable&gt; <span class=\"k\">implements </span>Iterable&lt;T&gt; {"],
- [387, " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-1237 sym\">Iterator</span>&lt;T&gt; <span class=\"sym-10739 sym\">iterator</span>;"],
- [388, ""],
- [389, " <span class=\"k\">private </span><span class=\"sym-10762 sym\">ValueIterable</span>(<span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-10785 sym\">exchange</span>, <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-10805 sym\">keyFilter</span>) {"],
- [390, " <span class=\"k\">this</span>.<span class=\"sym-10739 sym\">iterator</span> = <span class=\"k\">new </span><span class=\"sym-10997 sym\">ValueIterator</span>&lt;T&gt;(<span class=\"sym-10785 sym\">exchange</span>, <span class=\"sym-10805 sym\">keyFilter</span>);"],
- [391, " }"],
- [392, ""],
- [393, " <span class=\"a\">@Override</span>"],
- [394, "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-1237 sym\">Iterator</span>&lt;T&gt; <span class=\"sym-10927 sym\">iterator</span>() {"],
- [395, " <span class=\"k\">return </span><span class=\"sym-10739 sym\">iterator</span>;"],
- [396, " }"],
- [397, " }"],
- [398, ""],
- [399, " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class </span><span class=\"sym-10997 sym\">ValueIterator</span>&lt;T <span class=\"k\">extends </span>Serializable&gt; <span class=\"k\">implements </span><span class=\"sym-1237 sym\">Iterator</span>&lt;T&gt; {"],
- [400, " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-11087 sym\">exchange</span>;"],
- [401, " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-11125 sym\">keyFilter</span>;"],
- [402, ""],
- [403, " <span class=\"k\">private </span><span class=\"sym-11149 sym\">ValueIterator</span>(<span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-11172 sym\">exchange</span>, <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-11192 sym\">keyFilter</span>) {"],
- [404, " <span class=\"k\">this</span>.<span class=\"sym-11087 sym\">exchange</span> = <span class=\"sym-11172 sym\">exchange</span>;"],
- [405, " <span class=\"k\">this</span>.<span class=\"sym-11125 sym\">keyFilter</span> = <span class=\"sym-11192 sym\">keyFilter</span>;"],
- [406, " }"],
- [407, ""],
- [408, " <span class=\"a\">@Override</span>"],
- [409, "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-11311 sym\">hasNext</span>() {"],
- [410, " <span class=\"k\">try </span>{"],
- [411, " <span class=\"k\">return </span><span class=\"sym-11087 sym\">exchange</span>.hasNext(<span class=\"sym-11125 sym\">keyFilter</span>);"],
- [412, " } <span class=\"k\">catch </span>(<span class=\"sym-1075 sym\">PersistitException</span> <span class=\"sym-11413 sym\">e</span>) {"],
- [413, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"sym-11413 sym\">e</span>);"],
- [414, " }"],
- [415, " }"],
- [416, ""],
- [417, " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)"],
- [418, " <span class=\"a\">@Override</span>"],
- [419, "<span class=\"a\"> </span><span class=\"k\">public </span>T <span class=\"sym-11539 sym\">next</span>() {"],
- [420, " <span class=\"k\">try </span>{"],
- [421, " <span class=\"sym-11087 sym\">exchange</span>.next(<span class=\"sym-11125 sym\">keyFilter</span>);"],
- [422, " } <span class=\"k\">catch </span>(<span class=\"sym-1075 sym\">PersistitException</span> <span class=\"sym-11628 sym\">e</span>) {"],
- [423, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"sym-11628 sym\">e</span>);"],
- [424, " }"],
- [425, " <span class=\"k\">if </span>(<span class=\"sym-11087 sym\">exchange</span>.getValue().isDefined()) {"],
- [426, " <span class=\"k\">return </span>(T) <span class=\"sym-11087 sym\">exchange</span>.getValue().get();"],
- [427, " }"],
- [428, " <span class=\"k\">throw </span><span class=\"k\">new </span><span class=\"sym-1264 sym\">NoSuchElementException</span>();"],
- [429, " }"],
- [430, ""],
- [431, " <span class=\"a\">@Override</span>"],
- [432, "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-11863 sym\">remove</span>() {"],
- [433, " <span class=\"k\">throw </span><span class=\"k\">new </span>UnsupportedOperationException(<span class=\"s\">\"Removing an item is not supported\"</span>);"],
- [434, " }"],
- [435, " }"],
- [436, ""],
- [437, " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class </span><span class=\"sym-11992 sym\">EntryIterable</span>&lt;T <span class=\"k\">extends </span>Serializable&gt; <span class=\"k\">implements </span>Iterable&lt;<span class=\"sym-13607 sym\">Entry</span>&lt;T&gt;&gt; {"],
- [438, " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-12339 sym\">EntryIterator</span>&lt;T&gt; <span class=\"sym-12097 sym\">it</span>;"],
- [439, ""],
- [440, " <span class=\"k\">private </span><span class=\"sym-12114 sym\">EntryIterable</span>(<span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-12137 sym\">exchange</span>, <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-12157 sym\">keyFilter</span>) {"],
- [441, " <span class=\"sym-12097 sym\">it</span> = <span class=\"k\">new </span><span class=\"sym-12339 sym\">EntryIterator</span>&lt;T&gt;(<span class=\"sym-12137 sym\">exchange</span>, <span class=\"sym-12157 sym\">keyFilter</span>);"],
- [442, " }"],
- [443, ""],
- [444, " <span class=\"a\">@Override</span>"],
- [445, "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-1237 sym\">Iterator</span>&lt;<span class=\"sym-13607 sym\">Entry</span>&lt;T&gt;&gt; <span class=\"sym-12275 sym\">iterator</span>() {"],
- [446, " <span class=\"k\">return </span><span class=\"sym-12097 sym\">it</span>;"],
- [447, " }"],
- [448, " }"],
- [449, ""],
- [450, " <span class=\"k\">private </span><span class=\"k\">static </span><span class=\"k\">class </span><span class=\"sym-12339 sym\">EntryIterator</span>&lt;T <span class=\"k\">extends </span>Serializable&gt; <span class=\"k\">implements </span><span class=\"sym-1237 sym\">Iterator</span>&lt;<span class=\"sym-13607 sym\">Entry</span>&lt;T&gt;&gt; {"],
- [451, " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-12436 sym\">exchange</span>;"],
- [452, " <span class=\"k\">private </span><span class=\"k\">final </span><span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-12474 sym\">keyFilter</span>;"],
- [453, ""],
- [454, " <span class=\"k\">private </span><span class=\"sym-12498 sym\">EntryIterator</span>(<span class=\"sym-976 sym\">Exchange</span> <span class=\"sym-12521 sym\">exchange</span>, <span class=\"sym-1033 sym\">KeyFilter</span> <span class=\"sym-12541 sym\">keyFilter</span>) {"],
- [455, " <span class=\"k\">this</span>.<span class=\"sym-12436 sym\">exchange</span> = <span class=\"sym-12521 sym\">exchange</span>;"],
- [456, " <span class=\"k\">this</span>.<span class=\"sym-12474 sym\">keyFilter</span> = <span class=\"sym-12541 sym\">keyFilter</span>;"],
- [457, " }"],
- [458, ""],
- [459, " <span class=\"a\">@Override</span>"],
- [460, "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">boolean </span><span class=\"sym-12660 sym\">hasNext</span>() {"],
- [461, " <span class=\"k\">try </span>{"],
- [462, " <span class=\"k\">return </span><span class=\"sym-12436 sym\">exchange</span>.hasNext(<span class=\"sym-12474 sym\">keyFilter</span>);"],
- [463, " } <span class=\"k\">catch </span>(<span class=\"sym-1075 sym\">PersistitException</span> <span class=\"sym-12762 sym\">e</span>) {"],
- [464, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"sym-12762 sym\">e</span>);"],
- [465, " }"],
- [466, " }"],
- [467, ""],
- [468, " <span class=\"a\">@SuppressWarnings</span>(<span class=\"s\">\"unchecked\"</span>)"],
- [469, " <span class=\"a\">@Override</span>"],
- [470, "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"sym-13607 sym\">Entry</span>&lt;T&gt; <span class=\"sym-12895 sym\">next</span>() {"],
- [471, " <span class=\"k\">try </span>{"],
- [472, " <span class=\"sym-12436 sym\">exchange</span>.next(<span class=\"sym-12474 sym\">keyFilter</span>);"],
- [473, " } <span class=\"k\">catch </span>(<span class=\"sym-1075 sym\">PersistitException</span> <span class=\"sym-12984 sym\">e</span>) {"],
- [474, " <span class=\"k\">throw </span><span class=\"k\">new </span>IllegalStateException(<span class=\"sym-12984 sym\">e</span>);"],
- [475, " }"],
- [476, " <span class=\"k\">if </span>(<span class=\"sym-12436 sym\">exchange</span>.getValue().isDefined()) {"],
- [477, " T <span class=\"sym-13096 sym\">value</span> = (T) <span class=\"sym-12436 sym\">exchange</span>.getValue().get();"],
- [478, " <span class=\"sym-1007 sym\">Key</span> <span class=\"sym-13147 sym\">key</span> = <span class=\"sym-12436 sym\">exchange</span>.getKey();"],
- [479, " Object[] <span class=\"sym-13189 sym\">array</span> = <span class=\"k\">new </span>Object[<span class=\"sym-13147 sym\">key</span>.getDepth()];"],
- [480, " <span class=\"k\">for </span>(<span class=\"k\">int </span><span class=\"sym-13242 sym\">i</span> = <span class=\"c\">0</span>; <span class=\"sym-13242 sym\">i</span> &lt; <span class=\"sym-13147 sym\">key</span>.getDepth(); <span class=\"sym-13242 sym\">i</span>++) {"],
- [481, " <span class=\"sym-13189 sym\">array</span>[<span class=\"sym-13242 sym\">i</span>] = <span class=\"sym-13147 sym\">key</span>.indexTo(<span class=\"sym-13242 sym\">i</span> - <span class=\"sym-13147 sym\">key</span>.getDepth()).decode();"],
- [482, " }"],
- [483, " <span class=\"k\">return </span><span class=\"k\">new </span><span class=\"sym-13607 sym\">Entry</span>&lt;T&gt;(<span class=\"sym-13189 sym\">array</span>, <span class=\"sym-13096 sym\">value</span>);"],
- [484, " }"],
- [485, " <span class=\"k\">throw </span><span class=\"k\">new </span><span class=\"sym-1264 sym\">NoSuchElementException</span>();"],
- [486, " }"],
- [487, ""],
- [488, " <span class=\"a\">@Override</span>"],
- [489, "<span class=\"a\"> </span><span class=\"k\">public </span><span class=\"k\">void </span><span class=\"sym-13479 sym\">remove</span>() {"],
- [490, " <span class=\"k\">throw </span><span class=\"k\">new </span>UnsupportedOperationException(<span class=\"s\">\"Removing an item is not supported\"</span>);"],
- [491, " }"],
- [492, " }"],
- [493, ""],
- [494, " <span class=\"k\">public </span><span class=\"k\">static </span><span class=\"k\">class </span><span class=\"sym-13607 sym\">Entry</span>&lt;V <span class=\"k\">extends </span>Serializable&gt; {"],
- [495, " <span class=\"k\">private </span><span class=\"k\">final </span>Object[] <span class=\"sym-13666 sym\">key</span>;"],
- [496, " <span class=\"k\">private </span><span class=\"k\">final </span>V <span class=\"sym-13691 sym\">value</span>;"],
- [497, ""],
- [498, " <span class=\"sym-13703 sym\">Entry</span>(Object[] <span class=\"sym-13718 sym\">key</span>, V <span class=\"sym-13725 sym\">value</span>) {"],
- [499, " <span class=\"k\">this</span>.<span class=\"sym-13666 sym\">key</span> = <span class=\"sym-13718 sym\">key</span>;"],
- [500, " <span class=\"k\">this</span>.<span class=\"sym-13691 sym\">value</span> = <span class=\"sym-13725 sym\">value</span>;"],
- [501, " }"],
- [502, ""],
- [503, " <span class=\"k\">public </span>Object[] <span class=\"sym-13809 sym\">key</span>() {"],
- [504, " <span class=\"k\">return </span><span class=\"sym-13666 sym\">key</span>;"],
- [505, " }"],
- [506, ""],
- [507, " <span class=\"a\">@<span class=\"sym-1176 sym\">CheckForNull</span></span>"],
- [508, "<span class=\"a\"> </span><span class=\"k\">public </span>V <span class=\"sym-13873 sym\">value</span>() {"],
- [509, " <span class=\"k\">return </span><span class=\"sym-13691 sym\">value</span>;"],
- [510, " }"],
- [511, ""],
- [512, " <span class=\"a\">@Override</span>"],
- [513, "<span class=\"a\"> </span><span class=\"k\">public </span>String <span class=\"sym-13942 sym\">toString</span>() {"],
- [514, " <span class=\"k\">return </span><span class=\"sym-1134 sym\">ToStringBuilder</span>.reflectionToString(<span class=\"k\">this</span>);"],
- [515, " }"],
- [516, " }"],
- [517, ""],
- [518, "}"],
- [519, ""]
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/test-cases.json b/server/sonar-web/src/test/json/source-viewer-spec/test-cases.json
deleted file mode 100644
index 233229a803b..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/test-cases.json
+++ /dev/null
@@ -1,235 +0,0 @@
-{"tests": [
- {
- "name": "should_update_existing_issue",
- "status": "OK",
- "durationInMs": 293,
- "_ref": "1"
- },
- {
- "name": "testDistributionMeasure",
- "status": "OK",
- "durationInMs": 148,
- "_ref": "2"
- },
- {
- "name": "one_part_key",
- "status": "OK",
- "durationInMs": 96,
- "_ref": "3"
- },
- {
- "name": "testIssueExclusion",
- "status": "OK",
- "durationInMs": 305,
- "_ref": "4"
- },
- {
- "name": "should_add_measure_with_same_metric",
- "status": "OK",
- "durationInMs": 141,
- "_ref": "5"
- },
- {
- "name": "should_create_cache",
- "status": "OK",
- "durationInMs": 81,
- "_ref": "6"
- },
- {
- "name": "scanProjectWithMixedSourcesAndTests",
- "status": "OK",
- "durationInMs": 239,
- "_ref": "7"
- },
- {
- "name": "remove_versus_clear",
- "status": "OK",
- "durationInMs": 111,
- "_ref": "3"
- },
- {
- "name": "should_persist_component_data",
- "status": "OK",
- "durationInMs": 132,
- "_ref": "8"
- },
- {
- "name": "scanProjectWithSourceDir",
- "status": "OK",
- "durationInMs": 212,
- "_ref": "7"
- },
- {
- "name": "should_add_measure_with_too_big_data_for_persistit",
- "status": "OK",
- "durationInMs": 336,
- "_ref": "5"
- },
- {
- "name": "failForDuplicateInputFile",
- "status": "OK",
- "durationInMs": 127,
- "_ref": "7"
- },
- {
- "name": "should_not_create_cache_twice",
- "status": "OK",
- "durationInMs": 101,
- "_ref": "6"
- },
- {
- "name": "should_get_and_set_data",
- "status": "OK",
- "durationInMs": 190,
- "_ref": "9"
- },
- {
- "name": "should_add_input_file",
- "status": "OK",
- "durationInMs": 122,
- "_ref": "10"
- },
- {
- "name": "scanTempProject",
- "status": "OK",
- "durationInMs": 345,
- "_ref": "4"
- },
- {
- "name": "should_get_measures",
- "status": "OK",
- "durationInMs": 114,
- "_ref": "5"
- },
- {
- "name": "test_key_being_prefix_of_another_key",
- "status": "OK",
- "durationInMs": 94,
- "_ref": "3"
- },
- {
- "name": "should_add_measure_with_big_data",
- "status": "OK",
- "durationInMs": 242,
- "_ref": "5"
- },
- {
- "name": "should_get_all_issues",
- "status": "OK",
- "durationInMs": 104,
- "_ref": "1"
- },
- {
- "name": "should_add_measure",
- "status": "OK",
- "durationInMs": 117,
- "_ref": "5"
- },
- {
- "name": "computeMeasuresOnSampleProject",
- "status": "OK",
- "durationInMs": 315,
- "_ref": "2"
- },
- {
- "name": "test_measure_coder",
- "status": "OK",
- "durationInMs": 110,
- "_ref": "5"
- },
- {
- "name": "should_add_measure_with_too_big_data_for_persistit_pre_patch",
- "status": "OK",
- "durationInMs": 821,
- "_ref": "5"
- },
- {
- "name": "three_parts_key",
- "status": "OK",
- "durationInMs": 122,
- "_ref": "3"
- },
- {
- "name": "two_parts_key",
- "status": "OK",
- "durationInMs": 118,
- "_ref": "3"
- },
- {
- "name": "should_add_new_issue",
- "status": "OK",
- "durationInMs": 95,
- "_ref": "1"
- },
- {
- "name": "empty_cache",
- "status": "OK",
- "durationInMs": 104,
- "_ref": "3"
- },
- {
- "name": "scanProjectWithTestDir",
- "status": "OK",
- "durationInMs": 322,
- "_ref": "7"
- },
- {
- "name": "scanSampleProject",
- "status": "OK",
- "durationInMs": 184,
- "_ref": "4"
- },
- {
- "name": "computeMeasuresOnTempProject",
- "status": "OK",
- "durationInMs": 274,
- "_ref": "2"
- },
- {
- "name": "should_get_and_set_string_data",
- "status": "OK",
- "durationInMs": 95,
- "_ref": "9"
- }
-], "files": {
- "3": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/index/CacheTest.java",
- "longName": "src/test/java/org/sonar/batch/index/CacheTest.java"
- },
- "1": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/issue/IssueCacheTest.java",
- "longName": "src/test/java/org/sonar/batch/issue/IssueCacheTest.java"
- },
- "4": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/mediumtest/issues/IssuesMediumTest.java",
- "longName": "src/test/java/org/sonar/batch/mediumtest/issues/IssuesMediumTest.java"
- },
- "2": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/mediumtest/measures/MeasuresMediumTest.java",
- "longName": "src/test/java/org/sonar/batch/mediumtest/measures/MeasuresMediumTest.java"
- },
- "8": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/index/ComponentDataPersisterTest.java",
- "longName": "src/test/java/org/sonar/batch/index/ComponentDataPersisterTest.java"
- },
- "9": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/index/ComponentDataCacheTest.java",
- "longName": "src/test/java/org/sonar/batch/index/ComponentDataCacheTest.java"
- },
- "10": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/scan/filesystem/InputFileCacheTest.java",
- "longName": "src/test/java/org/sonar/batch/scan/filesystem/InputFileCacheTest.java"
- },
- "7": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/mediumtest/fs/FileSystemMediumTest.java",
- "longName": "src/test/java/org/sonar/batch/mediumtest/fs/FileSystemMediumTest.java"
- },
- "5": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/scan/measure/MeasureCacheTest.java",
- "longName": "src/test/java/org/sonar/batch/scan/measure/MeasureCacheTest.java"
- },
- "6": {
- "key": "org.codehaus.sonar:sonar-batch:src/test/java/org/sonar/batch/index/CachesTest.java",
- "longName": "src/test/java/org/sonar/batch/index/CachesTest.java"
- }
-}}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/tests.json b/server/sonar-web/src/test/json/source-viewer-spec/tests.json
deleted file mode 100644
index 9e36884fc27..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/tests.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "tests": [
- {
- "name": "test1",
- "status": "OK",
- "durationInMs": 15,
- "coveredLines": 2,
- "testUuid": "test-uuid-1"
- },
- {
- "name": "test2",
- "status": "OK",
- "durationInMs": 13,
- "coveredLines": 3,
- "testUuid": "test-uuid-2"
- },
- {
- "name": "test3",
- "status": "FAILURE",
- "durationInMs": 14,
- "coveredLines": 1,
- "testUuid": "test-uuid-3",
- "message": "Failure Message",
- "stacktrace": "Failure Stacktrace"
- },
- {
- "name": "test4",
- "status": "ERROR",
- "durationInMs": 0,
- "coveredLines": 0,
- "testUuid": "test-uuid-4"
- },
- {
- "name": "test5",
- "status": "SKIPPED",
- "testUuid": "test-uuid-5"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/tests/app.json b/server/sonar-web/src/test/json/source-viewer-spec/tests/app.json
deleted file mode 100644
index 873632ffd3b..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/tests/app.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "uuid": "12345",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/CacheTest.java",
- "path": "src/test/java/org/sonar/batch/index/CacheTest.java",
- "name": "CacheTest.java",
- "longName": "src/test/java/org/sonar/batch/index/CacheTest.java",
- "q": "UTS",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": true,
- "canCreateManualIssue": true,
- "measures": {
- "tests": "6"
- }
-}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/tests/lines.json b/server/sonar-web/src/test/json/source-viewer-spec/tests/lines.json
deleted file mode 100644
index becc8c92f69..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/tests/lines.json
+++ /dev/null
@@ -1,1808 +0,0 @@
-{"sources": [
- {
- "line": 1,
- "code": "/*",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 2,
- "code": " * SonarQube, open source software quality management tool.",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 3,
- "code": " * Copyright (C) 2008-2014 SonarSource",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "57ae3026c36ae3b0b71756d6161124b1ae594c53",
- "scmDate": "2014-03-11T17:52:41+0100"
- },
- {
- "line": 4,
- "code": " * mailto:contact AT sonarsource DOT com",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 5,
- "code": " *",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 6,
- "code": " * SonarQube is free software; you can redistribute it and/or",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 7,
- "code": " * modify it under the terms of the GNU Lesser General Public",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 8,
- "code": " * License as published by the Free Software Foundation; either",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 9,
- "code": " * version 3 of the License, or (at your option) any later version.",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 10,
- "code": " *",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 11,
- "code": " * SonarQube is distributed in the hope that it will be useful,",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 12,
- "code": " * but WITHOUT ANY WARRANTY; without even the implied warranty of",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 13,
- "code": " * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 14,
- "code": " * Lesser General Public License for more details.",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 15,
- "code": " *",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 16,
- "code": " * You should have received a copy of the GNU Lesser General Public License",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 17,
- "code": " * along with this program; if not, write to the Free Software Foundation,",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 18,
- "code": " * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "ce63bd4c293fe7a1fa066d73860bbaf4e1f5a608",
- "scmDate": "2013-04-22T09:37:03+0200"
- },
- {
- "line": 19,
- "code": " */",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 20,
- "code": "package org.sonar.batch.index;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 21,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 22,
- "code": "import com.google.common.collect.Iterables;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 23,
- "code": "import org.junit.After;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 24,
- "code": "import org.junit.Before;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 25,
- "code": "import org.junit.Rule;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 26,
- "code": "import org.junit.Test;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 27,
- "code": "import org.junit.rules.TemporaryFolder;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "18a4c15b060d1b56f08826bf6006d08eaf2625ec",
- "scmDate": "2013-10-15T17:14:44+0200"
- },
- {
- "line": 28,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 29,
- "code": "import static org.fest.assertions.Assertions.assertThat;",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 30,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 31,
- "code": "public class CacheTest {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 32,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "18a4c15b060d1b56f08826bf6006d08eaf2625ec",
- "scmDate": "2013-10-15T17:14:44+0200"
- },
- {
- "line": 33,
- "code": " @Rule",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 34,
- "code": " public TemporaryFolder temp = new TemporaryFolder();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 35,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "18a4c15b060d1b56f08826bf6006d08eaf2625ec",
- "scmDate": "2013-10-15T17:14:44+0200"
- },
- {
- "line": 36,
- "code": " Caches caches;",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "18a4c15b060d1b56f08826bf6006d08eaf2625ec",
- "scmDate": "2013-10-15T17:14:44+0200"
- },
- {
- "line": 37,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 38,
- "code": " @Before",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 39,
- "code": " public void start() throws Exception {",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "18a4c15b060d1b56f08826bf6006d08eaf2625ec",
- "scmDate": "2013-10-15T17:14:44+0200"
- },
- {
- "line": 40,
- "code": " caches = CachesTest.createCacheOnTemp(temp);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "18a4c15b060d1b56f08826bf6006d08eaf2625ec",
- "scmDate": "2013-10-15T17:14:44+0200"
- },
- {
- "line": 41,
- "code": " caches.start();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 42,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 43,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 44,
- "code": " @After",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 45,
- "code": " public void stop() {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 46,
- "code": " caches.stop();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 47,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 48,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 49,
- "code": " @Test",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 50,
- "code": " public void one_part_key() throws Exception {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 51,
- "code": " Cache&lt;String&gt; cache = caches.createCache(\"capitals\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 52,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 53,
- "code": " assertThat(cache.get(\"france\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 54,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 55,
- "code": " cache.put(\"france\", \"paris\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 56,
- "code": " cache.put(\"italy\", \"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 57,
- "code": " assertThat(cache.get(\"france\")).isEqualTo(\"paris\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 58,
- "code": " assertThat(cache.keySet()).containsOnly(\"france\", \"italy\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 59,
- "code": " assertThat(cache.keySet(\"france\")).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 60,
- "code": " assertThat(cache.values()).containsOnly(\"paris\", \"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 61,
- "code": " assertThat(cache.containsKey(\"france\")).isTrue();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 62,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 63,
- "code": " Cache.Entry[] entries = Iterables.toArray(cache.entries(), Cache.Entry.class);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "db81d934752174207268c49658963ba98665794b",
- "scmDate": "2014-02-20T07:35:27+0100"
- },
- {
- "line": 64,
- "code": " assertThat(entries).hasSize(2);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 65,
- "code": " assertThat(entries[0].key()[0]).isEqualTo(\"france\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 66,
- "code": " assertThat(entries[0].value()).isEqualTo(\"paris\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 67,
- "code": " assertThat(entries[1].key()[0]).isEqualTo(\"italy\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 68,
- "code": " assertThat(entries[1].value()).isEqualTo(\"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 69,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 70,
- "code": " cache.remove(\"france\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 71,
- "code": " assertThat(cache.get(\"france\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 72,
- "code": " assertThat(cache.get(\"italy\")).isEqualTo(\"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 73,
- "code": " assertThat(cache.keySet()).containsOnly(\"italy\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 74,
- "code": " assertThat(cache.keySet(\"france\")).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 75,
- "code": " assertThat(cache.containsKey(\"france\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 76,
- "code": " assertThat(cache.containsKey(\"italy\")).isTrue();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 77,
- "code": " assertThat(cache.values()).containsOnly(\"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 78,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 79,
- "code": " cache.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 80,
- "code": " assertThat(cache.values()).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 81,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 82,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 83,
- "code": " @Test",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 84,
- "code": " public void test_key_being_prefix_of_another_key() throws Exception {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 85,
- "code": " Cache&lt;String&gt; cache = caches.createCache(\"components\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 86,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 87,
- "code": " cache.put(\"struts-el:org.apache.strutsel.taglib.html.ELButtonTag\", \"the Tag\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 88,
- "code": " cache.put(\"struts-el:org.apache.strutsel.taglib.html.ELButtonTagBeanInfo\", \"the BeanInfo\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 89,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 90,
- "code": " assertThat(cache.get(\"struts-el:org.apache.strutsel.taglib.html.ELButtonTag\")).isEqualTo(\"the Tag\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 91,
- "code": " assertThat(cache.get(\"struts-el:org.apache.strutsel.taglib.html.ELButtonTagBeanInfo\")).isEqualTo(\"the BeanInfo\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 92,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 93,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 94,
- "code": " @Test",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "2a37a23b0ff74cd69a3a4c9053f3a2331b234097",
- "scmDate": "2013-05-31T12:42:59+0200"
- },
- {
- "line": 95,
- "code": " public void two_parts_key() throws Exception {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 96,
- "code": " Cache&lt;String&gt; cache = caches.createCache(\"capitals\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 97,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 98,
- "code": " assertThat(cache.get(\"europe\", \"france\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 99,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 100,
- "code": " cache.put(\"europe\", \"france\", \"paris\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 101,
- "code": " cache.put(\"europe\", \"italy\", \"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 102,
- "code": " cache.put(\"asia\", \"china\", \"pekin\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 103,
- "code": " assertThat(cache.get(\"europe\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 104,
- "code": " assertThat(cache.get(\"europe\", \"france\")).isEqualTo(\"paris\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 105,
- "code": " assertThat(cache.get(\"europe\", \"italy\")).isEqualTo(\"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 106,
- "code": " assertThat(cache.get(\"europe\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 107,
- "code": " assertThat(cache.keySet(\"europe\")).containsOnly(\"france\", \"italy\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 108,
- "code": " assertThat(cache.keySet()).containsOnly(\"europe\", \"asia\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 109,
- "code": " assertThat(cache.containsKey(\"europe\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 110,
- "code": " assertThat(cache.containsKey(\"europe\", \"france\")).isTrue();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 111,
- "code": " assertThat(cache.containsKey(\"europe\", \"spain\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 112,
- "code": " assertThat(cache.values()).containsOnly(\"paris\", \"rome\", \"pekin\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 113,
- "code": " assertThat(cache.values(\"america\")).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 114,
- "code": " assertThat(cache.values(\"europe\")).containsOnly(\"paris\", \"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 115,
- "code": " assertThat(cache.values(\"oceania\")).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 116,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 117,
- "code": " Cache.Entry[] allEntries = Iterables.toArray(cache.entries(), Cache.Entry.class);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "db81d934752174207268c49658963ba98665794b",
- "scmDate": "2014-02-20T07:35:27+0100"
- },
- {
- "line": 118,
- "code": " assertThat(allEntries).hasSize(3);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 119,
- "code": " assertThat(allEntries[0].key()).isEqualTo(new String[] {\"asia\", \"china\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 120,
- "code": " assertThat(allEntries[0].value()).isEqualTo(\"pekin\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 121,
- "code": " assertThat(allEntries[1].key()).isEqualTo(new String[] {\"europe\", \"france\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 122,
- "code": " assertThat(allEntries[1].value()).isEqualTo(\"paris\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 123,
- "code": " assertThat(allEntries[2].key()).isEqualTo(new String[] {\"europe\", \"italy\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 124,
- "code": " assertThat(allEntries[2].value()).isEqualTo(\"rome\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 125,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 126,
- "code": " Cache.Entry[] subEntries = Iterables.toArray(cache.entries(\"europe\"), Cache.Entry.class);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 127,
- "code": " assertThat(subEntries).hasSize(2);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 128,
- "code": " assertThat(subEntries[0].key()).isEqualTo(new String[] {\"europe\", \"france\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 129,
- "code": " assertThat(subEntries[0].value()).isEqualTo(\"paris\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 130,
- "code": " assertThat(subEntries[1].key()).isEqualTo(new String[] {\"europe\", \"italy\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 131,
- "code": " assertThat(subEntries[1].value()).isEqualTo(\"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 132,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 133,
- "code": " cache.remove(\"europe\", \"france\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 134,
- "code": " assertThat(cache.values()).containsOnly(\"rome\", \"pekin\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 135,
- "code": " assertThat(cache.get(\"europe\", \"france\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 136,
- "code": " assertThat(cache.get(\"europe\", \"italy\")).isEqualTo(\"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 137,
- "code": " assertThat(cache.containsKey(\"europe\", \"france\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 138,
- "code": " assertThat(cache.keySet(\"europe\")).containsOnly(\"italy\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 139,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 140,
- "code": " cache.clear(\"america\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 141,
- "code": " assertThat(cache.keySet()).containsOnly(\"europe\", \"asia\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 142,
- "code": " cache.clear();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 143,
- "code": " assertThat(cache.keySet()).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 144,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 145,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 146,
- "code": " @Test",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 147,
- "code": " public void three_parts_key() throws Exception {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 148,
- "code": " Cache&lt;String&gt; cache = caches.createCache(\"places\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 149,
- "code": " assertThat(cache.get(\"europe\", \"france\", \"paris\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 150,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 151,
- "code": " cache.put(\"europe\", \"france\", \"paris\", \"eiffel tower\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 152,
- "code": " cache.put(\"europe\", \"france\", \"annecy\", \"lake\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 153,
- "code": " cache.put(\"europe\", \"france\", \"poitiers\", \"notre dame\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 154,
- "code": " cache.put(\"europe\", \"italy\", \"rome\", \"colosseum\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 155,
- "code": " cache.put(\"europe2\", \"ukrania\", \"kiev\", \"dunno\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 156,
- "code": " cache.put(\"asia\", \"china\", \"pekin\", \"great wall\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 157,
- "code": " cache.put(\"america\", \"us\", \"new york\", \"empire state building\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 158,
- "code": " assertThat(cache.get(\"europe\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 159,
- "code": " assertThat(cache.get(\"europe\", \"france\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 160,
- "code": " assertThat(cache.get(\"europe\", \"france\", \"paris\")).isEqualTo(\"eiffel tower\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 161,
- "code": " assertThat(cache.get(\"europe\", \"france\", \"annecy\")).isEqualTo(\"lake\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 162,
- "code": " assertThat(cache.get(\"europe\", \"italy\", \"rome\")).isEqualTo(\"colosseum\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 163,
- "code": " assertThat(cache.keySet()).containsOnly(\"europe\", \"asia\", \"america\", \"europe2\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 164,
- "code": " assertThat(cache.keySet(\"europe\")).containsOnly(\"france\", \"italy\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 165,
- "code": " assertThat(cache.keySet(\"europe\", \"france\")).containsOnly(\"annecy\", \"paris\", \"poitiers\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 166,
- "code": " assertThat(cache.containsKey(\"europe\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 167,
- "code": " assertThat(cache.containsKey(\"europe\", \"france\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 168,
- "code": " assertThat(cache.containsKey(\"europe\", \"france\", \"annecy\")).isTrue();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 169,
- "code": " assertThat(cache.containsKey(\"europe\", \"france\", \"biarritz\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 170,
- "code": " assertThat(cache.values()).containsOnly(\"eiffel tower\", \"lake\", \"colosseum\", \"notre dame\", \"great wall\", \"empire state building\", \"dunno\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 171,
- "code": " assertThat(cache.values(\"europe\")).containsOnly(\"eiffel tower\", \"lake\", \"colosseum\", \"notre dame\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 172,
- "code": " assertThat(cache.values(\"europe\", \"france\")).containsOnly(\"eiffel tower\", \"lake\", \"notre dame\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 173,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 174,
- "code": " Cache.Entry[] allEntries = Iterables.toArray(cache.entries(), Cache.Entry.class);",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "db81d934752174207268c49658963ba98665794b",
- "scmDate": "2014-02-20T07:35:27+0100"
- },
- {
- "line": 175,
- "code": " assertThat(allEntries).hasSize(7);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 176,
- "code": " assertThat(allEntries[0].key()).isEqualTo(new String[] {\"america\", \"us\", \"new york\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 177,
- "code": " assertThat(allEntries[0].value()).isEqualTo(\"empire state building\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 178,
- "code": " assertThat(allEntries[1].key()).isEqualTo(new String[] {\"asia\", \"china\", \"pekin\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 179,
- "code": " assertThat(allEntries[1].value()).isEqualTo(\"great wall\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 180,
- "code": " assertThat(allEntries[2].key()).isEqualTo(new String[] {\"europe\", \"france\", \"annecy\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 181,
- "code": " assertThat(allEntries[2].value()).isEqualTo(\"lake\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 182,
- "code": " assertThat(allEntries[3].key()).isEqualTo(new String[] {\"europe\", \"france\", \"paris\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 183,
- "code": " assertThat(allEntries[3].value()).isEqualTo(\"eiffel tower\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 184,
- "code": " assertThat(allEntries[4].key()).isEqualTo(new String[] {\"europe\", \"france\", \"poitiers\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 185,
- "code": " assertThat(allEntries[4].value()).isEqualTo(\"notre dame\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 186,
- "code": " assertThat(allEntries[5].key()).isEqualTo(new String[] {\"europe\", \"italy\", \"rome\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 187,
- "code": " assertThat(allEntries[5].value()).isEqualTo(\"colosseum\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 188,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 189,
- "code": " Cache.Entry[] subEntries = Iterables.toArray(cache.entries(\"europe\"), Cache.Entry.class);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 190,
- "code": " assertThat(subEntries).hasSize(4);",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 191,
- "code": " assertThat(subEntries[0].key()).isEqualTo(new String[] {\"europe\", \"france\", \"annecy\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 192,
- "code": " assertThat(subEntries[0].value()).isEqualTo(\"lake\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 193,
- "code": " assertThat(subEntries[1].key()).isEqualTo(new String[] {\"europe\", \"france\", \"paris\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 194,
- "code": " assertThat(subEntries[1].value()).isEqualTo(\"eiffel tower\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 195,
- "code": " assertThat(subEntries[2].key()).isEqualTo(new String[] {\"europe\", \"france\", \"poitiers\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 196,
- "code": " assertThat(subEntries[2].value()).isEqualTo(\"notre dame\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 197,
- "code": " assertThat(subEntries[3].key()).isEqualTo(new String[] {\"europe\", \"italy\", \"rome\"});",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 198,
- "code": " assertThat(subEntries[3].value()).isEqualTo(\"colosseum\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 199,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 200,
- "code": " cache.remove(\"europe\", \"france\", \"annecy\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 201,
- "code": " assertThat(cache.values()).containsOnly(\"eiffel tower\", \"colosseum\", \"notre dame\", \"great wall\", \"empire state building\", \"dunno\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 202,
- "code": " assertThat(cache.values(\"europe\")).containsOnly(\"eiffel tower\", \"colosseum\", \"notre dame\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 203,
- "code": " assertThat(cache.values(\"europe\", \"france\")).containsOnly(\"eiffel tower\", \"notre dame\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 204,
- "code": " assertThat(cache.get(\"europe\", \"france\", \"annecy\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 205,
- "code": " assertThat(cache.get(\"europe\", \"italy\", \"rome\")).isEqualTo(\"colosseum\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 206,
- "code": " assertThat(cache.containsKey(\"europe\", \"france\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 207,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 208,
- "code": " cache.clear(\"europe\", \"italy\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 209,
- "code": " assertThat(cache.values()).containsOnly(\"eiffel tower\", \"notre dame\", \"great wall\", \"empire state building\", \"dunno\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 210,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 211,
- "code": " cache.clear(\"europe\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 212,
- "code": " assertThat(cache.values()).containsOnly(\"great wall\", \"empire state building\", \"dunno\");",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 213,
- "code": "",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 214,
- "code": " cache.clear();",
- "scmAuthor": "julien.henry@sonarsource.com",
- "scmRevision": "cc071cc29e8c4d4592282313a3ca2ec376fd7f71",
- "scmDate": "2014-05-01T00:00:12+0200"
- },
- {
- "line": 215,
- "code": " assertThat(cache.values()).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 216,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 217,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 218,
- "code": " @Test",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 219,
- "code": " public void remove_versus_clear() throws Exception {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 220,
- "code": " Cache&lt;String&gt; cache = caches.createCache(\"capitals\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 221,
- "code": " cache.put(\"europe\", \"france\", \"paris\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 222,
- "code": " cache.put(\"europe\", \"italy\", \"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 223,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 224,
- "code": " // remove(\"europe\") does not remove sub-keys",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 225,
- "code": " cache.remove(\"europe\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 226,
- "code": " assertThat(cache.values()).containsOnly(\"paris\", \"rome\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 227,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 228,
- "code": " // clear(\"europe\") removes sub-keys",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 229,
- "code": " cache.clear(\"europe\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 230,
- "code": " assertThat(cache.values()).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 231,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 232,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 233,
- "code": " @Test",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 234,
- "code": " public void empty_cache() throws Exception {",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 235,
- "code": " Cache&lt;String&gt; cache = caches.createCache(\"empty\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 236,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 237,
- "code": " assertThat(cache.get(\"foo\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 238,
- "code": " assertThat(cache.get(\"foo\", \"bar\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 239,
- "code": " assertThat(cache.get(\"foo\", \"bar\", \"baz\")).isNull();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 240,
- "code": " assertThat(cache.keySet()).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 241,
- "code": " assertThat(cache.keySet(\"foo\")).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 242,
- "code": " assertThat(cache.containsKey(\"foo\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 243,
- "code": " assertThat(cache.containsKey(\"foo\", \"bar\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 244,
- "code": " assertThat(cache.containsKey(\"foo\", \"bar\", \"baz\")).isFalse();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 245,
- "code": " assertThat(cache.values()).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 246,
- "code": " assertThat(cache.values(\"foo\")).isEmpty();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 247,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 248,
- "code": " // do not fail",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 249,
- "code": " cache.remove(\"foo\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 250,
- "code": " cache.remove(\"foo\", \"bar\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 251,
- "code": " cache.remove(\"foo\", \"bar\", \"baz\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 252,
- "code": " cache.clear(\"foo\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 253,
- "code": " cache.clear(\"foo\", \"bar\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 254,
- "code": " cache.clear(\"foo\", \"bar\", \"baz\");",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "e486fe02a0a38d3d9fb70690f7870c77e2265254",
- "scmDate": "2014-02-20T07:23:08+0100"
- },
- {
- "line": 255,
- "code": " cache.clear();",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 256,
- "code": " }",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b5eb47872b34aa9d017dca62abfe49b2fd7af61b",
- "scmDate": "2013-04-17T10:35:23+0200"
- },
- {
- "line": 257,
- "code": "}",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- },
- {
- "line": 258,
- "code": "",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "108dc916996e3075eb21c6ae1bbc7c9a24f09ab0",
- "scmDate": "2013-04-16T13:24:54+0200"
- }
-]}
diff --git a/server/sonar-web/src/test/json/source-viewer-spec/tests/tests.json b/server/sonar-web/src/test/json/source-viewer-spec/tests/tests.json
deleted file mode 100644
index 421cbb391b1..00000000000
--- a/server/sonar-web/src/test/json/source-viewer-spec/tests/tests.json
+++ /dev/null
@@ -1,38 +0,0 @@
-{"tests": [
- {
- "name": "two_parts_key",
- "status": "OK",
- "durationInMs": 324,
- "coveredLines": 0
- },
- {
- "name": "remove_versus_clear",
- "status": "OK",
- "durationInMs": 81,
- "coveredLines": 0
- },
- {
- "name": "three_parts_key",
- "status": "OK",
- "durationInMs": 93,
- "coveredLines": 0
- },
- {
- "name": "test_key_being_prefix_of_another_key",
- "status": "OK",
- "durationInMs": 89,
- "coveredLines": 0
- },
- {
- "name": "one_part_key",
- "status": "OK",
- "durationInMs": 91,
- "coveredLines": 0
- },
- {
- "name": "empty_cache",
- "status": "OK",
- "durationInMs": 88,
- "coveredLines": 0
- }
-]}
diff --git a/server/sonar-web/src/test/json/treemap-spec/treemap-resources.json b/server/sonar-web/src/test/json/treemap-spec/treemap-resources.json
deleted file mode 100644
index bc1c20845fa..00000000000
--- a/server/sonar-web/src/test/json/treemap-spec/treemap-resources.json
+++ /dev/null
@@ -1,616 +0,0 @@
-[
- {
- "id": 258,
- "key": "org.codehaus.sonar:sonar-core",
- "name": "SonarQube :: Core",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Core",
- "version": "4.5-SNAPSHOT",
- "description": "Core components shared to batch and server",
- "msr": [
- {
- "key": "coverage",
- "val": 83.3,
- "frmt_val": "83.3%"
- },
- {
- "key": "ncloc",
- "val": 17854.0,
- "frmt_val": "17,854"
- }
- ]
- },
- {
- "id": 17221,
- "key": "org.codehaus.sonar:sonar-home",
- "name": "SonarQube :: Home",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": "2013-02-08T22:22:38+0600",
- "lname": "SonarQube :: Home",
- "version": "4.5-SNAPSHOT",
- "description": "Access the user home directory that contains cache of files",
- "msr": [
- {
- "key": "coverage",
- "val": 75.1,
- "frmt_val": "75.1%"
- },
- {
- "key": "ncloc",
- "val": 280.0,
- "frmt_val": "280"
- }
- ]
- },
- {
- "id": 2867,
- "key": "org.codehaus.sonar:sonar-batch-maven-compat",
- "name": "SonarQube :: Batch Maven Compat",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Batch Maven Compat",
- "version": "4.5-SNAPSHOT",
- "description": "Compatibility layer, which provides MavenProject for non-Maven environments."
- },
- {
- "id": 2871,
- "key": "org.codehaus.sonar:sonar-maven3-plugin",
- "name": "SonarQube :: Maven3 Plugin",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Maven3 Plugin",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality"
- },
- {
- "id": 2872,
- "key": "org.codehaus.sonar:sonar-server",
- "name": "SonarQube :: Server",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Server",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 87.8,
- "frmt_val": "87.8%"
- },
- {
- "key": "ncloc",
- "val": 35987.0,
- "frmt_val": "35,987"
- }
- ]
- },
- {
- "id": 1227,
- "key": "org.codehaus.sonar:sonar-ws-client",
- "name": "SonarQube :: Web Service Client",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Web Service Client",
- "version": "4.5-SNAPSHOT",
- "description": "Java Client Library for SonarQube Web Services",
- "msr": [
- {
- "key": "coverage",
- "val": 77.2,
- "frmt_val": "77.2%"
- },
- {
- "key": "ncloc",
- "val": 6393.0,
- "frmt_val": "6,393"
- }
- ]
- },
- {
- "id": 1627,
- "key": "org.codehaus.sonar.plugins:sonar-dbcleaner-plugin",
- "name": "SonarQube :: Plugins :: Database Cleaner",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Plugins :: Database Cleaner",
- "version": "4.5-SNAPSHOT",
- "description": "Optimizes database performances by removing old and useless data.",
- "msr": [
- {
- "key": "coverage",
- "val": 80.8,
- "frmt_val": "80.8%"
- },
- {
- "key": "ncloc",
- "val": 397.0,
- "frmt_val": "397"
- }
- ]
- },
- {
- "id": 2881,
- "key": "org.codehaus.sonar.plugins:sonar-design-plugin",
- "name": "SonarQube :: Plugins :: Design",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Plugins :: Design",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 28.4,
- "frmt_val": "28.4%"
- },
- {
- "key": "ncloc",
- "val": 359.0,
- "frmt_val": "359"
- }
- ]
- },
- {
- "id": 2882,
- "key": "org.codehaus.sonar.plugins:sonar-l10n-en-plugin",
- "name": "SonarQube :: Plugins :: English Pack",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Plugins :: English Pack",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 100.0,
- "frmt_val": "100.0%"
- },
- {
- "key": "ncloc",
- "val": 9.0,
- "frmt_val": "9"
- }
- ]
- },
- {
- "id": 25120,
- "key": "org.codehaus.sonar.plugins:sonar-xoo-plugin",
- "name": "SonarQube :: Plugins :: Xoo",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": "2014-01-17T16:38:52+0600",
- "lname": "SonarQube :: Plugins :: Xoo",
- "version": "4.5-SNAPSHOT",
- "description": "Sample of plugin to document and test available APIs",
- "msr": [
- {
- "key": "coverage",
- "val": 50.0,
- "frmt_val": "50.0%"
- },
- {
- "key": "ncloc",
- "val": 86.0,
- "frmt_val": "86"
- }
- ]
- },
- {
- "id": 2866,
- "key": "org.codehaus.sonar:sonar-application",
- "name": "SonarQube :: Application",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Application",
- "version": "4.5-SNAPSHOT",
- "description": "Package the standalone distribution",
- "msr": [
- {
- "key": "coverage",
- "val": 90.2,
- "frmt_val": "90.2%"
- },
- {
- "key": "ncloc",
- "val": 610.0,
- "frmt_val": "610"
- }
- ]
- },
- {
- "id": 33484,
- "key": "org.codehaus.sonar:sonar-process",
- "name": "SonarQube :: Process",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": "2014-07-08T17:17:01+0600",
- "lname": "SonarQube :: Process",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 68.9,
- "frmt_val": "68.9%"
- },
- {
- "key": "ncloc",
- "val": 409.0,
- "frmt_val": "409"
- }
- ]
- },
- {
- "id": 33505,
- "key": "org.codehaus.sonar:sonar-search",
- "name": "SonarQube :: Search",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": "2014-07-09T23:19:46+0600",
- "lname": "SonarQube :: Search",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 24.2,
- "frmt_val": "24.2%"
- },
- {
- "key": "ncloc",
- "val": 226.0,
- "frmt_val": "226"
- }
- ]
- },
- {
- "id": 1624,
- "key": "org.codehaus.sonar:sonar-batch",
- "name": "SonarQube :: Batch",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Batch",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 76.7,
- "frmt_val": "76.7%"
- },
- {
- "key": "ncloc",
- "val": 15301.0,
- "frmt_val": "15,301"
- }
- ]
- },
- {
- "id": 17,
- "key": "org.codehaus.sonar:sonar-check-api",
- "name": "SonarQube :: Check API",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Check API",
- "version": "4.5-SNAPSHOT",
- "description": "Check API",
- "msr": [
- {
- "key": "ncloc",
- "val": 57.0,
- "frmt_val": "57"
- }
- ]
- },
- {
- "id": 18,
- "key": "org.codehaus.sonar:sonar-colorizer",
- "name": "SonarQube :: Code Colorizer",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Code Colorizer",
- "version": "4.5-SNAPSHOT",
- "description": "Code syntax highlighter",
- "msr": [
- {
- "key": "coverage",
- "val": 89.2,
- "frmt_val": "89.2%"
- },
- {
- "key": "ncloc",
- "val": 784.0,
- "frmt_val": "784"
- }
- ]
- },
- {
- "id": 1625,
- "key": "org.codehaus.sonar:sonar-deprecated",
- "name": "SonarQube :: Deprecated",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Deprecated",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 52.0,
- "frmt_val": "52.0%"
- },
- {
- "key": "ncloc",
- "val": 1375.0,
- "frmt_val": "1,375"
- }
- ]
- },
- {
- "id": 20,
- "key": "org.codehaus.sonar:sonar-duplications",
- "name": "SonarQube :: Duplications",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Duplications",
- "version": "4.5-SNAPSHOT",
- "description": "Detect duplicated code",
- "msr": [
- {
- "key": "coverage",
- "val": 85.1,
- "frmt_val": "85.1%"
- },
- {
- "key": "ncloc",
- "val": 2693.0,
- "frmt_val": "2,693"
- }
- ]
- },
- {
- "id": 21,
- "key": "org.codehaus.sonar:sonar-graph",
- "name": "SonarQube :: Graph",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Graph",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 93.0,
- "frmt_val": "93.0%"
- },
- {
- "key": "ncloc",
- "val": 997.0,
- "frmt_val": "997"
- }
- ]
- },
- {
- "id": 1626,
- "key": "org.codehaus.sonar:sonar-java-api",
- "name": "SonarQube :: Java API",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Java API",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 60.9,
- "frmt_val": "60.9%"
- },
- {
- "key": "ncloc",
- "val": 265.0,
- "frmt_val": "265"
- }
- ]
- },
- {
- "id": 2869,
- "key": "org.codehaus.sonar:sonar-markdown",
- "name": "SonarQube :: Markdown",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Markdown",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 95.5,
- "frmt_val": "95.5%"
- },
- {
- "key": "ncloc",
- "val": 340.0,
- "frmt_val": "340"
- }
- ]
- },
- {
- "id": 2870,
- "key": "org.codehaus.sonar:sonar-maven-plugin",
- "name": "SonarQube :: Maven2 Plugin",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Maven2 Plugin",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 16.9,
- "frmt_val": "16.9%"
- },
- {
- "key": "ncloc",
- "val": 122.0,
- "frmt_val": "122"
- }
- ]
- },
- {
- "id": 16,
- "key": "org.codehaus.sonar:sonar-plugin-api",
- "name": "SonarQube :: Plugin API",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Plugin API",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 71.8,
- "frmt_val": "71.8%"
- },
- {
- "key": "ncloc",
- "val": 22421.0,
- "frmt_val": "22,421"
- }
- ]
- },
- {
- "id": 251,
- "key": "org.codehaus.sonar:sonar-testing-harness",
- "name": "SonarQube :: Testing Harness",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Testing Harness",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "ncloc",
- "val": 265.0,
- "frmt_val": "265"
- }
- ]
- },
- {
- "id": 2873,
- "key": "org.codehaus.sonar.plugins:sonar-core-plugin",
- "name": "SonarQube :: Plugins :: Core",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Plugins :: Core",
- "version": "4.5-SNAPSHOT",
- "description": "Open source platform for continuous inspection of code quality",
- "msr": [
- {
- "key": "coverage",
- "val": 86.4,
- "frmt_val": "86.4%"
- },
- {
- "key": "ncloc",
- "val": 4904.0,
- "frmt_val": "4,904"
- }
- ]
- },
- {
- "id": 2879,
- "key": "org.codehaus.sonar.plugins:sonar-cpd-plugin",
- "name": "SonarQube :: Plugins :: CPD",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Plugins :: CPD",
- "version": "4.5-SNAPSHOT",
- "description": "Find duplicated source code within project.",
- "msr": [
- {
- "key": "coverage",
- "val": 42.6,
- "frmt_val": "42.6%"
- },
- {
- "key": "ncloc",
- "val": 722.0,
- "frmt_val": "722"
- }
- ]
- },
- {
- "id": 2883,
- "key": "org.codehaus.sonar.plugins:sonar-email-notifications-plugin",
- "name": "SonarQube :: Plugins :: Email Notifications",
- "scope": "PRJ",
- "qualifier": "BRC",
- "date": "2014-07-09T23:19:45+0600",
- "creationDate": null,
- "lname": "SonarQube :: Plugins :: Email Notifications",
- "version": "4.5-SNAPSHOT",
- "description": "Email Notifications",
- "msr": [
- {
- "key": "coverage",
- "val": 80.6,
- "frmt_val": "80.6%"
- },
- {
- "key": "ncloc",
- "val": 267.0,
- "frmt_val": "267"
- }
- ]
- }
-]
diff --git a/server/sonar-web/src/test/json/treemap-spec/treemap.json b/server/sonar-web/src/test/json/treemap-spec/treemap.json
deleted file mode 100644
index 1125b3a7cf4..00000000000
--- a/server/sonar-web/src/test/json/treemap-spec/treemap.json
+++ /dev/null
@@ -1,496 +0,0 @@
-{"metrics": {
- "coverage": {
- "name": "Coverage",
- "type": "PERCENT",
- "direction": 1,
- "worstValue": 0.0,
- "bestValue": 100.0
- },
- "ncloc": {
- "name": "Lines of code",
- "type": "INT",
- "direction": -1
- }
-}, "components": [
- {
- "key": "org.codehaus.sonar:sonar",
- "name": "SonarQube",
- "longName": "SonarQube",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 80.4,
- "fval": "80.4%"
- },
- "ncloc": {
- "val": 113123.0,
- "fval": "113,123"
- }
- }
- },
- {
- "key": "org.codehaus.sonar:sonar-persistit",
- "name": "sonar-persistit",
- "longName": "sonar-persistit",
- "qualifier": "TRK",
- "measures": {
- "ncloc": {
- "val": 45330.0,
- "fval": "45,330"
- }
- }
- },
- {
- "key": "com.sonarsource.cpp:cpp",
- "name": "SonarSource :: CPP",
- "longName": "SonarSource :: CPP",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 90.4,
- "fval": "90.4%"
- },
- "ncloc": {
- "val": 31250.0,
- "fval": "31,250"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.java:java",
- "name": "SonarQube Java",
- "longName": "SonarQube Java",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 90.1,
- "fval": "90.1%"
- },
- "ncloc": {
- "val": 22588.0,
- "fval": "22,588"
- }
- }
- },
- {
- "key": "com.sonarsource.cobol:cobol",
- "name": "SonarSource :: Cobol",
- "longName": "SonarSource :: Cobol",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 83.5,
- "fval": "83.5%"
- },
- "ncloc": {
- "val": 20879.0,
- "fval": "20,879"
- }
- }
- },
- {
- "key": "com.sonarsource.plsql:plsql",
- "name": "SonarSource :: PL/SQL",
- "longName": "SonarSource :: PL/SQL",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 96.6,
- "fval": "96.6%"
- },
- "ncloc": {
- "val": 12110.0,
- "fval": "12,110"
- }
- }
- },
- {
- "key": "org.codehaus.sonar.sslr:sslr",
- "name": "SonarSource :: Language Recognizer",
- "longName": "SonarSource :: Language Recognizer",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 80.3,
- "fval": "80.3%"
- },
- "ncloc": {
- "val": 8698.0,
- "fval": "8,698"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-ide.eclipse:eclipse-parent",
- "name": "SonarQube Integration for Eclipse (parent)",
- "longName": "SonarQube Integration for Eclipse (parent)",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 17.2,
- "fval": "17.2%"
- },
- "ncloc": {
- "val": 7924.0,
- "fval": "7,924"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.php:parent",
- "name": "PHP",
- "longName": "PHP",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 94.9,
- "fval": "94.9%"
- },
- "ncloc": {
- "val": 7134.0,
- "fval": "7,134"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.javascript:javascript",
- "name": "JavaScript",
- "longName": "JavaScript",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 94.0,
- "fval": "94.0%"
- },
- "ncloc": {
- "val": 6820.0,
- "fval": "6,820"
- }
- }
- },
- {
- "key": "com.maif.sonar:maif-cobol-plugin",
- "name": "MAIF :: Cobol plugin",
- "longName": "MAIF :: Cobol plugin",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 91.6,
- "fval": "91.6%"
- },
- "ncloc": {
- "val": 6684.0,
- "fval": "6,684"
- }
- }
- },
- {
- "key": "com.sonarsource.vbnet:vbnet",
- "name": "SonarSource :: Visual Basic .NET",
- "longName": "SonarSource :: Visual Basic .NET",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 94.3,
- "fval": "94.3%"
- },
- "ncloc": {
- "val": 6416.0,
- "fval": "6,416"
- }
- }
- },
- {
- "key": "com.sonarsource.orchestrator:orchestrator-parent",
- "name": "SonarSource :: Orchestrator :: Parent",
- "longName": "SonarSource :: Orchestrator :: Parent",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 76.1,
- "fval": "76.1%"
- },
- "ncloc": {
- "val": 5815.0,
- "fval": "5,815"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.flex:flex",
- "name": "Flex",
- "longName": "Flex",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 93.1,
- "fval": "93.1%"
- },
- "ncloc": {
- "val": 5401.0,
- "fval": "5,401"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.dotnet.csharp:sonar-csharp-squid",
- "name": "SonarQube C# Plugin",
- "longName": "SonarQube C# Plugin",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 90.3,
- "fval": "90.3%"
- },
- "ncloc": {
- "val": 4930.0,
- "fval": "4,930"
- }
- }
- },
- {
- "key": "com.sonarsource.rpg:rpg",
- "name": "SonarSource :: RPG",
- "longName": "SonarSource :: RPG",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 92.7,
- "fval": "92.7%"
- },
- "ncloc": {
- "val": 4235.0,
- "fval": "4,235"
- }
- }
- },
- {
- "key": "com.sonarsource.plugins.vb:vb",
- "name": "SonarSource :: Visual Basic",
- "longName": "SonarSource :: Visual Basic",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 96.1,
- "fval": "96.1%"
- },
- "ncloc": {
- "val": 4190.0,
- "fval": "4,190"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.erlang:erlang",
- "name": "Erlang",
- "longName": "Erlang",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 88.6,
- "fval": "88.6%"
- },
- "ncloc": {
- "val": 3843.0,
- "fval": "3,843"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins:sonar-web-plugin",
- "name": "SonarQube Web Plugin",
- "longName": "SonarQube Web Plugin",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 94.4,
- "fval": "94.4%"
- },
- "ncloc": {
- "val": 3816.0,
- "fval": "3,816"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.python:python",
- "name": "Python",
- "longName": "Python",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 91.5,
- "fval": "91.5%"
- },
- "ncloc": {
- "val": 3631.0,
- "fval": "3,631"
- }
- }
- },
- {
- "key": "com.sonarsource.abap:abap",
- "name": "SonarSource :: ABAP",
- "longName": "SonarSource :: ABAP",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 95.1,
- "fval": "95.1%"
- },
- "ncloc": {
- "val": 3603.0,
- "fval": "3,603"
- }
- }
- },
- {
- "key": "com.sonarsource.pli:pli",
- "name": "SonarSource :: PL/I",
- "longName": "SonarSource :: PL/I",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 95.7,
- "fval": "95.7%"
- },
- "ncloc": {
- "val": 3387.0,
- "fval": "3,387"
- }
- }
- },
- {
- "key": "org.codehaus.sonar.sslr-squid-bridge:sslr-squid-bridge",
- "name": "SonarSource :: Language Recognizer :: Squid Bridge",
- "longName": "SonarSource :: Language Recognizer :: Squid Bridge",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 85.2,
- "fval": "85.2%"
- },
- "ncloc": {
- "val": 3250.0,
- "fval": "3,250"
- }
- }
- },
- {
- "key": "org.codehaus.sonar:sonar-update-center",
- "name": "Sonar :: Update Center",
- "longName": "Sonar :: Update Center",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 89.0,
- "fval": "89.0%"
- },
- "ncloc": {
- "val": 3192.0,
- "fval": "3,192"
- }
- }
- },
- {
- "key": "com.sonarsource.infra:jobs-creator",
- "name": "Infra Jenkins Job Creator",
- "longName": "Infra Jenkins Job Creator",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 50.6,
- "fval": "50.6%"
- },
- "ncloc": {
- "val": 2757.0,
- "fval": "2,757"
- }
- }
- },
- {
- "key": "com.sonarsource:sonar-dev-cockpit-plugin",
- "name": "SonarSource :: Developer Cockpit",
- "longName": "SonarSource :: Developer Cockpit",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 92.7,
- "fval": "92.7%"
- },
- "ncloc": {
- "val": 2692.0,
- "fval": "2,692"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-ide.intellij:sonar-intellij-plugin",
- "name": "SonarQube Integration for IntelliJ",
- "longName": "SonarQube Integration for IntelliJ",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 0.2,
- "fval": "0.2%"
- },
- "ncloc": {
- "val": 2679.0,
- "fval": "2,679"
- }
- }
- },
- {
- "key": "com.sonarsource.views:sonar-views-plugin",
- "name": "SonarSource :: Views",
- "longName": "SonarSource :: Views",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 94.6,
- "fval": "94.6%"
- },
- "ncloc": {
- "val": 2630.0,
- "fval": "2,630"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.css:css",
- "name": "CSS",
- "longName": "CSS",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 81.9,
- "fval": "81.9%"
- },
- "ncloc": {
- "val": 2485.0,
- "fval": "2,485"
- }
- }
- },
- {
- "key": "org.codehaus.sonar-plugins.xml:xml",
- "name": "XML",
- "longName": "XML",
- "qualifier": "TRK",
- "measures": {
- "coverage": {
- "val": 83.8,
- "fval": "83.8%"
- },
- "ncloc": {
- "val": 2122.0,
- "fval": "2,122"
- }
- }
- }
-], "maxResultsReached": false, "paging": {
- "page": 1,
- "pages": 3,
- "pageSize": 30,
- "total": 73
-}}
diff --git a/server/sonar-web/src/test/json/update-center-spec/available.json b/server/sonar-web/src/test/json/update-center-spec/available.json
deleted file mode 100644
index bda1a3dae08..00000000000
--- a/server/sonar-web/src/test/json/update-center-spec/available.json
+++ /dev/null
@@ -1,68 +0,0 @@
-{
- "plugins": [
- {
- "key": "abap",
- "name": "ABAP",
- "category": "Languages",
- "description": "Enable analysis and reporting on ABAP projects",
- "license": "Commercial",
- "termsAndConditionsUrl": "http://dist.sonarsource.com/SonarSource_Terms_And_Conditions.pdf",
- "organizationName": "SonarSource",
- "organizationUrl": "http://www.sonarsource.com",
- "release": {
- "version": "3.2",
- "date": "2015-03-10",
- "description": "14 new rules, most of them designed to detect potential performance hotspots.",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10054&version=10575"
- },
- "update": {
- "status": "COMPATIBLE",
- "requires": []
- }
- },
- {
- "key": "visualstudio",
- "name": "Analysis Bootstrapper for Visual Studio Projects",
- "category": "Integration",
- "description": "Bootstraps the analysis from Visual Studio solution and project files.",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource",
- "organizationUrl": "http://www.sonarsource.com",
- "release": {
- "version": "1.2",
- "date": "2014-10-23",
- "description": "Support multi-language (JavaScript, CSS) and SonarQube 4.5"
- },
- "update": {
- "status": "COMPATIBLE",
- "requires": []
- }
- },
- {
- "key": "android",
- "name": "Android",
- "category": "Languages",
- "description": "Import Android Lint reports.",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource and Jerome Van Der Linden, Stephane Nicolas, Florian Roncari, Thomas Bores",
- "organizationUrl": "http://www.sonarsource.com",
- "release": {
- "version": "1.1",
- "date": "2015-04-23",
- "description": "This plugin has been renamed \"Android Lint\" to prevent any misunderstanding about its purpose: an Android project can be analysed with the standard SonarQube Java plugin and this plugin just allows to import Android Lint reports if needed. This new version provides a default sqale mapping for the Android Lint rules and the ability to automatically execute lint has been dropped.",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10944&version=11729"
- },
- "update": {
- "status": "COMPATIBLE",
- "requires": [
- {
- "key": "java",
- "name": "Java",
- "description": "SonarQube rule engine."
- }
- ]
- }
- }
- ],
- "updateCenterRefresh": "2015-06-26T09:24:39+0200"
-}
diff --git a/server/sonar-web/src/test/json/update-center-spec/installed.json b/server/sonar-web/src/test/json/update-center-spec/installed.json
deleted file mode 100644
index b1ef6f707bb..00000000000
--- a/server/sonar-web/src/test/json/update-center-spec/installed.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "plugins": [
- {
- "key": "scmgit",
- "name": "Git",
- "description": "Git SCM Provider.",
- "version": "1.0",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource",
- "organizationUrl": "http://www.sonarsource.com",
- "homepageUrl": "http://redirect.sonarsource.com/plugins/scmgit.html",
- "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARSCGIT",
- "implementationBuild": "9ce9d330c313c296fab051317cc5ad4b26319e07"
- },
- {
- "key": "java",
- "name": "Java",
- "description": "SonarQube rule engine.",
- "version": "3.2-SNAPSHOT",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource",
- "organizationUrl": "http://www.sonarsource.com",
- "homepageUrl": "http://redirect.sonarsource.com/plugins/java.html",
- "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARJAVA",
- "implementationBuild": "c5c58e015c8d44b4f46dea7eea353e42ea7059a2"
- },
- {
- "key": "javascript",
- "name": "JavaScript",
- "description": "Enables analysis of JavaScript projects.",
- "version": "2.6",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource and Eriks Nukis",
- "organizationUrl": "http://www.sonarsource.com",
- "homepageUrl": "http://redirect.sonarsource.com/plugins/javascript.html",
- "issueTrackerUrl": "https://jira.codehaus.org/browse/SONARJS",
- "implementationBuild": "6bd2bfe2eb0d5db6760d8f566ca399bcbcf80a5d"
- },
- {
- "key": "php",
- "name": "PHP",
- "description": "Enables analysis of PHP projects.",
- "version": "2.4",
- "license": "GNU LGPL v3",
- "organizationName": "SonarSource and Akram Ben Aissi",
- "organizationUrl": "http://www.sonarsource.com/",
- "homepageUrl": "http://docs.codehaus.org/display/SONAR/PHP+Plugin",
- "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARPHP",
- "implementationBuild": "1b445c1b06da39330051cf943f24e361ee9001f6"
- },
- {
- "key": "python",
- "name": "Python",
- "description": "Enable analysis and reporting on python projects.",
- "version": "1.3",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource and Waleri Enns",
- "homepageUrl": "http://docs.codehaus.org/display/SONAR/Python+Plugin",
- "issueTrackerUrl": "https://jira.codehaus.org/browse/SONARPY",
- "implementationBuild": "2683ee7b41164f809454470c08d3764c53903722"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/update-center-spec/pending.json b/server/sonar-web/src/test/json/update-center-spec/pending.json
deleted file mode 100644
index 5aab8a77595..00000000000
--- a/server/sonar-web/src/test/json/update-center-spec/pending.json
+++ /dev/null
@@ -1,54 +0,0 @@
-{
- "installing": [
- {
- "key": "visualstudio",
- "name": "Analysis Bootstrapper for Visual Studio Projects",
- "description": "Bootstraps the analysis from Visual Studio solution and project files.",
- "version": "1.2",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource",
- "organizationUrl": "http://www.sonarsource.com",
- "homepageUrl": "http://docs.codehaus.org/x/TAA1Dg",
- "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARVS",
- "implementationBuild": "debe8e3820709cb34658d23f4de77d65577d42b1"
- },
- {
- "key": "java",
- "name": "Java",
- "description": "SonarQube rule engine.",
- "version": "3.3",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource",
- "organizationUrl": "http://www.sonarsource.com",
- "homepageUrl": "http://redirect.sonarsource.com/plugins/java.html",
- "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARJAVA",
- "implementationBuild": "8edb61630d99c752a252842633254374c0a3e70d"
- },
- {
- "key": "php",
- "name": "PHP",
- "description": "Enables analysis of PHP projects.",
- "version": "2.6",
- "license": "GNU LGPL v3",
- "organizationName": "SonarSource and Akram Ben Aissi",
- "organizationUrl": "http://www.sonarsource.com/",
- "homepageUrl": "http://redirect.sonarsource.com/plugins/php.html",
- "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARPHP",
- "implementationBuild": "153f397dc6cac76c93eca5df541278447ed85ea4"
- }
- ],
- "removing": [
- {
- "key": "javascript",
- "name": "JavaScript",
- "description": "Enables analysis of JavaScript projects.",
- "version": "2.6",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource and Eriks Nukis",
- "organizationUrl": "http://www.sonarsource.com",
- "homepageUrl": "http://redirect.sonarsource.com/plugins/javascript.html",
- "issueTrackerUrl": "https://jira.codehaus.org/browse/SONARJS",
- "implementationBuild": "6bd2bfe2eb0d5db6760d8f566ca399bcbcf80a5d"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/update-center-spec/system-updates.json b/server/sonar-web/src/test/json/update-center-spec/system-updates.json
deleted file mode 100644
index 290ff5647bf..00000000000
--- a/server/sonar-web/src/test/json/update-center-spec/system-updates.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "upgrades": [
- {
- "version": "5.3",
- "description": "New!",
- "releaseDate": "2015-06-19",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=11625",
- "downloadUrl": "https://downloads.sonarsource.com/sonarqube/sonarqube-5.0.zip",
- "plugins": {
- "requireUpdate": [
- {
- "key": "python",
- "name": "Python",
- "category": "Languages",
- "description": "Enable analysis and reporting on python projects.",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource and Waleri Enns",
- "version": "1.5"
- }
- ],
- "incompatible": []
- }
- }
- ],
- "updateCenterRefresh": "2015-06-26T09:59:51+0200"
-}
diff --git a/server/sonar-web/src/test/json/update-center-spec/updates.json b/server/sonar-web/src/test/json/update-center-spec/updates.json
deleted file mode 100644
index dc040f6d2a7..00000000000
--- a/server/sonar-web/src/test/json/update-center-spec/updates.json
+++ /dev/null
@@ -1,118 +0,0 @@
-{
- "plugins": [
- {
- "key": "scmgit",
- "name": "Git",
- "category": "Integration",
- "description": "Git SCM Provider.",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource",
- "organizationUrl": "http://www.sonarsource.com",
- "updates": [
- {
- "release": {
- "version": "1.1",
- "date": "2015-06-01",
- "description": "Use Git commit date instead of author date",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10964&version=11856"
- },
- "status": "COMPATIBLE",
- "requires": []
- }
- ]
- },
- {
- "key": "java",
- "name": "Java",
- "category": "Languages",
- "description": "SonarQube rule engine.",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource",
- "organizationUrl": "http://www.sonarsource.com",
- "updates": [
- {
- "release": {
- "version": "3.3",
- "date": "2015-05-19",
- "description": "Detection of locks left locked and new rules",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10973&version=11898"
- },
- "status": "COMPATIBLE",
- "requires": []
- }
- ]
- },
- {
- "key": "php",
- "name": "PHP",
- "category": "Languages",
- "description": "Enables analysis of PHP projects.",
- "license": "GNU LGPL v3",
- "organizationName": "SonarSource and Akram Ben Aissi",
- "organizationUrl": "http://www.sonarsource.com/",
- "updates": [
- {
- "release": {
- "version": "2.4.1",
- "date": "2015-02-24",
- "description": "Bug fix release",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10956&version=11824"
- },
- "status": "COMPATIBLE",
- "requires": []
- },
- {
- "release": {
- "version": "2.5",
- "date": "2015-05-19",
- "description": "5 bug detection rules, removal of all known parsing limitations and import of PHPUnit IT coverage report",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10956&version=11825"
- },
- "status": "COMPATIBLE",
- "requires": []
- },
- {
- "release": {
- "version": "2.6",
- "date": "2015-06-05",
- "description": "5 new rules & improvement of existing ones",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10956&version=11826"
- },
- "status": "COMPATIBLE",
- "requires": []
- }
- ]
- },
- {
- "key": "python",
- "name": "Python",
- "category": "Languages",
- "description": "Enable analysis and reporting on python projects.",
- "license": "GNU LGPL 3",
- "organizationName": "SonarSource and Waleri Enns",
- "updates": [
- {
- "release": {
- "version": "1.4",
- "date": "2015-03-24",
- "description": "Provides a SQALE definition to PyLint rules, allows the import of Pylint reports and adds tags to rules.",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10958&version=11835"
- },
- "status": "INCOMPATIBLE",
- "requires": []
- },
- {
- "release": {
- "version": "1.5",
- "date": "2015-04-02",
- "description": "Provides 20 new rules and fixes some parsing issues.",
- "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10958&version=11836"
- },
- "status": "COMPATIBLE",
- "requires": []
- }
- ]
- }
- ],
- "updateCenterRefresh": "2015-06-26T09:27:08+0200"
-}
diff --git a/server/sonar-web/src/test/json/users-spec/error.json b/server/sonar-web/src/test/json/users-spec/error.json
deleted file mode 100644
index dc1b261128c..00000000000
--- a/server/sonar-web/src/test/json/users-spec/error.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "errors": [
- {
- "msg": "Some error message"
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/users-spec/search-big-1.json b/server/sonar-web/src/test/json/users-spec/search-big-1.json
deleted file mode 100644
index 5e3f9811177..00000000000
--- a/server/sonar-web/src/test/json/users-spec/search-big-1.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "total": 3,
- "p": 1,
- "ps": 2,
- "users": [
- {
- "login": "admin",
- "name": "Administrator",
- "email": "admin@example.com",
- "scmAccounts": []
- },
- {
- "login": "smith",
- "name": "Bob",
- "email": "bob@example.com",
- "scmAccounts": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/users-spec/search-big-2.json b/server/sonar-web/src/test/json/users-spec/search-big-2.json
deleted file mode 100644
index 605d9c1d62f..00000000000
--- a/server/sonar-web/src/test/json/users-spec/search-big-2.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "total": 3,
- "p": 2,
- "ps": 2,
- "users": [
- {
- "login": "ryan",
- "name": "John",
- "email": "john@example.com",
- "scmAccounts": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/users-spec/search-created.json b/server/sonar-web/src/test/json/users-spec/search-created.json
deleted file mode 100644
index a4f1282ba5c..00000000000
--- a/server/sonar-web/src/test/json/users-spec/search-created.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "total": 4,
- "p": 1,
- "ps": 50,
- "users": [
- {
- "login": "admin",
- "name": "Administrator",
- "email": "admin@example.com",
- "scmAccounts": []
- },
- {
- "login": "login",
- "name": "name",
- "email": "email@example.com",
- "scmAccounts": [
- "scm1",
- "scm2"
- ]
- },
- {
- "login": "smith",
- "name": "Bob",
- "email": "bob@example.com",
- "scmAccounts": []
- },
- {
- "login": "ryan",
- "name": "John",
- "email": "john@example.com",
- "scmAccounts": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/users-spec/search-filtered.json b/server/sonar-web/src/test/json/users-spec/search-filtered.json
deleted file mode 100644
index ac74e4b63a3..00000000000
--- a/server/sonar-web/src/test/json/users-spec/search-filtered.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "total": 1,
- "p": 1,
- "ps": 50,
- "users": [
- {
- "login": "ryan",
- "name": "John",
- "email": "john@example.com",
- "scmAccounts": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/users-spec/search-updated.json b/server/sonar-web/src/test/json/users-spec/search-updated.json
deleted file mode 100644
index 294f7ed51ce..00000000000
--- a/server/sonar-web/src/test/json/users-spec/search-updated.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "total": 3,
- "p": 1,
- "ps": 50,
- "users": [
- {
- "login": "admin",
- "name": "Administrator",
- "email": "admin@example.com",
- "scmAccounts": []
- },
- {
- "login": "smith",
- "name": "Mike",
- "email": "mike@example.com",
- "scmAccounts": []
- },
- {
- "login": "ryan",
- "name": "John",
- "email": "john@example.com",
- "scmAccounts": []
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/users-spec/search.json b/server/sonar-web/src/test/json/users-spec/search.json
deleted file mode 100644
index 34df33c9b0d..00000000000
--- a/server/sonar-web/src/test/json/users-spec/search.json
+++ /dev/null
@@ -1,26 +0,0 @@
-{
- "total": 3,
- "p": 1,
- "ps": 50,
- "users": [
- {
- "login": "admin",
- "name": "Administrator",
- "email": "admin@example.com",
- "scmAccounts": []
- },
- {
- "login": "smith",
- "name": "Bob",
- "email": "bob@example.com",
- "scmAccounts": ["smith@example.com"]
- },
- {
- "login": "ryan",
- "name": "John",
- "email": "john@example.com",
- "scmAccounts": ["ryan@example.com", "ryan", "john", "another@example.com"],
- "groups": ["one", "two", "three", "four"]
- }
- ]
-}
diff --git a/server/sonar-web/src/test/json/workspace/app.json b/server/sonar-web/src/test/json/workspace/app.json
deleted file mode 100644
index e8b7516ee3c..00000000000
--- a/server/sonar-web/src/test/json/workspace/app.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{
- "uuid": "12345",
- "key": "org.codehaus.sonar:sonar-batch:src/main/java/org/sonar/batch/index/Cache.java",
- "path": "src/main/java/org/sonar/batch/index/Cache.java",
- "name": "Cache.java",
- "longName": "src/main/java/org/sonar/batch/index/Cache.java",
- "q": "FIL",
- "subProject": "org.codehaus.sonar:sonar-batch",
- "subProjectName": "SonarQube :: Batch",
- "project": "org.codehaus.sonar:sonar",
- "projectName": "SonarQube",
- "fav": false,
- "canMarkAsFavourite": false,
- "canCreateManualIssue": false,
- "measures": {
- "lines": "378",
- "coverage": "74.3%",
- "duplicationDensity": "5.8%",
- "debt": "2h 10min",
- "sqaleRating": "A",
- "debtRatio": "1.1%",
- "issues": "6"
- }
-}
diff --git a/server/sonar-web/src/test/json/workspace/issues.json b/server/sonar-web/src/test/json/workspace/issues.json
deleted file mode 100644
index bc18adc855a..00000000000
--- a/server/sonar-web/src/test/json/workspace/issues.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "total": 0,
- "p": 1,
- "ps": 100,
- "issues": [],
- "rules": [],
- "users": [],
- "languages": []
-}
diff --git a/server/sonar-web/src/test/json/workspace/lines.json b/server/sonar-web/src/test/json/workspace/lines.json
deleted file mode 100644
index ff06641ec93..00000000000
--- a/server/sonar-web/src/test/json/workspace/lines.json
+++ /dev/null
@@ -1,72 +0,0 @@
-{"sources": [
- {
- "line": 1,
- "code": "<span class=\"cppd\">/*</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 2,
- "code": "<span class=\"cppd\"> * SonarQube, open source software quality management tool.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 3,
- "code": "<span class=\"cppd\"> * Copyright (C) 2008-2014 SonarSource</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "57ae3026c36ae3b0b71756d6161124b1ae594c53",
- "scmDate": "2014-03-11T17:52:41+0100"
- },
- {
- "line": 4,
- "code": "<span class=\"cppd\"> * mailto:contact AT sonarsource DOT com</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 5,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 6,
- "code": "<span class=\"cppd\"> * SonarQube is free software; you can redistribute it and/or</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "b1436788cfc71b23cc3e3c15400a6c630c914bec",
- "scmDate": "2013-04-21T11:58:14+0200"
- },
- {
- "line": 7,
- "code": "<span class=\"cppd\"> * modify it under the terms of the GNU Lesser General Public</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 8,
- "code": "<span class=\"cppd\"> * License as published by the Free Software Foundation; either</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 9,
- "code": "<span class=\"cppd\"> * version 3 of the License, or (at your option) any later version.</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- },
- {
- "line": 10,
- "code": "<span class=\"cppd\"> *</span>",
- "scmAuthor": "simon.brandhof@gmail.com",
- "scmRevision": "26edff10d133e29e7013f803e7ef0d69ff593aeb",
- "scmDate": "2013-04-16T17:26:34+0200"
- }
-]}
diff --git a/server/sonar-web/src/test/json/workspace/rule.json b/server/sonar-web/src/test/json/workspace/rule.json
deleted file mode 100644
index f4abb0ce469..00000000000
--- a/server/sonar-web/src/test/json/workspace/rule.json
+++ /dev/null
@@ -1,36 +0,0 @@
-{
- "rule": {
- "key": "common-java:InsufficientBranchCoverage",
- "repo": "common-java",
- "name": "Insufficient branch coverage by unit tests",
- "createdAt": "2015-04-13T13:44:07+0200",
- "severity": "MAJOR",
- "status": "READY",
- "internalKey": "InsufficientBranchCoverage",
- "isTemplate": false,
- "tags": [],
- "sysTags": [],
- "lang": "java",
- "langName": "Java",
- "htmlDesc": "<p>An issue is created on a file as soon as the branch coverage on this file is less than the required threshold.It gives the number of branches to be covered in order to reach the required threshold.</p>",
- "defaultDebtChar": "RELIABILITY",
- "defaultDebtSubChar": "UNIT_TESTS",
- "debtChar": "RELIABILITY",
- "debtSubChar": "UNIT_TESTS",
- "debtCharName": "Reliability",
- "debtSubCharName": "Unit tests coverage",
- "defaultDebtRemFnType": "LINEAR",
- "defaultDebtRemFnCoeff": "10min",
- "debtOverloaded": false,
- "debtRemFnType": "LINEAR",
- "debtRemFnCoeff": "10min",
- "params": [
- {
- "key": "minimumBranchCoverageRatio",
- "htmlDesc": "The minimum required branch coverage ratio.",
- "type": "STRING",
- "defaultValue": "65.0"
- }
- ]
- }
-}