private static String sanitize(String s) {
// sanitize issue uuid keys
- s = s.replaceAll("\\w\\w\\w\\w\\w\\w\\w\\w\\-\\w\\w\\w\\w\\-\\w\\w\\w\\w\\-\\w\\w\\w\\w\\-\\w\\w\\w\\w\\w\\w\\w\\w\\w\\w\\w\\w", "abcde");
+ s = s.replaceAll("\"[a-zA-Z_0-9\\-]{20}\"", "<ISSUE_KEY>");
// sanitize sonar version. Note that "-SILVER-SNAPSHOT" is used by Goldeneye jobs
s = s.replaceAll("\\d\\.\\d(.\\d)?(\\-.*)?\\-SNAPSHOT", "<SONAR_VERSION>");
"version": "<SONAR_VERSION>",
"issues": [
{
- "key": "05652201-6f89-4f07-ba03-1df08eae0d55",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 6,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "0746cf8f-0b67-4da8-82fc-36a6717c1f81",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 5,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "0e9c20e2-567b-4c7a-b1e7-b9e5648dbfc5",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 13,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "107fb325-ddda-43c6-9fde-1e7250571ef8",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 1,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "226c71cf-0a86-43af-8281-6df0308eac92",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 3,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "55c9705c-6509-48c6-9773-0437ab60be42",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 4,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "5d653e95-16e2-4ee7-aac5-91ab8c3aebd6",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 12,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "86056a4b-1813-4a10-937f-082e3f810152",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 10,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "906f38ad-ada7-4088-80fe-3fc3b8532ad6",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 2,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "9328fb3c-6fab-489f-a8ad-eb8277dd7bf7",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 9,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "9980ca57-dfc4-431c-9a45-7ee9d397078a",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 11,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "ccf5a264-bbe0-4459-97dc-acc0e323c4bb",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 7,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "ead82961-2724-4d85-b2af-f810206b0ab1",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 8,
"message": "This issue is generated on each line",
],
"users": [ ]
-}
\ No newline at end of file
+}
-{"version":"5.2-SNAPSHOT","issues":[{"key":"02863c43-1063-4f1c-9a5f-90f96a3b73a2","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":4,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"1f7826f2-c615-462b-90ef-a597482a1954","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":11,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"3a55c080-5358-4f38-9764-15f253092db9","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":2,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"4960db5a-0a63-4555-9e54-1555ae59bef6","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":5,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"497c4cb1-51d1-4114-b27d-648160179617","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":1,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"4fac27de-afa9-4eca-beba-c3ca6c562a03","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":15,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"5f772c56-75d0-4c53-b016-d998df46b02c","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":16,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"83767a3b-9819-4450-a512-9313c1b11522","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":13,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"93dc780d-6a6c-4bb1-a6c1-729eb3fe3d1c","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":9,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"a236746f-12d1-4a17-becb-af6fb0b34d76","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":12,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"a4953d8c-3f25-4bb8-8d62-64e9fc73c74c","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":3,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"bd610f56-7977-437e-a6ac-199db4da738b","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":8,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"d997cfbe-d6c7-42a5-bc09-a02374d017f1","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":14,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"e4fa51d5-5c10-4b91-bc46-eaf22e10d8b3","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":6,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"e58db2c5-7055-4d86-b866-74bca942d09e","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":10,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"fb4aaeeb-50e0-4b92-966a-f90c06982070","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","line":7,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"08efacb9-ea82-49aa-b909-3e2535be57bb","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":2,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"0d1425a6-ea1a-4599-b6e4-cb3351a27225","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":12,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"0e9aab93-300b-492c-a28f-e0d3d3e02319","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":8,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"10f34bbd-1d60-4003-83b0-84f6ff723f68","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":17,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"123a65dc-a3d7-4697-8dbc-6c9f8fef7988","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":19,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"177e847b-240d-447e-aa72-490ffe57e748","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":4,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"2d013a53-04c1-4651-8b2a-b0e3cd24bd1a","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":3,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"57f25741-fea5-431b-aed9-d74737ec5f57","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":21,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"5f7a4542-bfc2-4a33-9ce4-2411a145a395","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":6,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"6017ed94-6eae-4ee8-8009-19915b84d831","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":9,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"65490cd1-969b-4ef3-91f8-ad48133f4645","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":18,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"7dd791fc-30b3-43a4-8368-98b7ec3c2c44","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":5,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"88e45274-26e1-43d2-b88c-a4f0de40b340","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":20,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"adc1eb27-4165-43be-96a0-ad8ad4aa5cc6","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":15,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"af3b1b21-afdb-46db-b320-7eb0186c76b4","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":7,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"b9bc99f9-df91-402c-b01c-c79804fdfafa","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":16,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"c3eef6a7-fa0f-4281-b0c4-c3cc62c28ee6","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":13,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"c40a9a79-7c42-4a78-9c0a-941493760d80","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":10,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"d4dfe839-5516-43d3-8708-630b9922c92d","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":1,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"e7c78357-32b7-4a97-9ea6-bd324911c94d","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":14,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"e8ddc175-52f7-4e9b-a73f-6b57b0925bdf","component":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","line":11,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"1b6829f9-d3a7-4224-8dd9-cf7e3db827c5","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":9,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"9540459b-fd9f-48af-9311-a88f62deb244","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":10,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"9a5ed7e3-dd85-484e-999e-0435b2f75253","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":2,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"9bfa3e15-8268-4361-9b59-456746841716","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":1,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"a77e07a5-c572-4953-8f68-7190ada0a72a","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":8,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"bb9ea74c-31da-4f45-9a30-770758d6fb91","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":5,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"bed123b2-6ce1-4f48-bcd6-8449bed843e6","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":7,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"c65358e1-71de-4a41-b666-56f98f5b142b","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":3,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"c8545226-991f-402a-a9ab-ed7366965cbd","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":4,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"d46f8a3b-9dfe-4f46-b073-5247ee2dc7fb","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":6,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"d51307c8-f22e-4a35-9eac-9159472034bd","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":12,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"de0f6728-99cb-4642-9538-dce255680ed5","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","line":11,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"19b42c33-784d-411d-8ba1-f6da0b81a8ec","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":12,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"1f5bacb3-d3e5-4e0e-aa22-07bc906ff171","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":5,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"240fc9e6-4f86-4cba-87b6-0bc658f0bb2a","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":4,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"38a5a22c-28a5-47a9-b803-45533d1981b5","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":1,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"3a8d14db-c977-4945-8723-e568725ca60b","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":8,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"55b33cc6-ee3d-46e3-b5fc-68efe42c7a2e","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":3,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"abaa37b3-7af3-4fd0-bd5a-494406f5fff9","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":10,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"abb9c19c-6780-40b9-aed0-04538b30940f","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":6,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"b7e9fcdd-3035-4947-9b47-053261edd1ef","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":7,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"c378be23-d7d3-4244-bab3-b5bfa5967af1","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":11,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"cf2a2623-675a-4220-ae1c-50296c8c3b2a","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":2,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"},{"key":"fbdfdbc9-31ec-4821-af23-e7e77ffe4f2d","component":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","line":9,"message":"This issue is generated on each line","severity":"MAJOR","rule":"xoo:OneIssuePerLine","status":"OPEN","isNew":false,"creationDate":"2013-05-01T00:00:00+0200"}],"components":[{"key":"com.sonarsource.it.samples:multi-modules-sample"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_a","path":"module_a"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1","path":"module_a1"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2","path":"module_a2"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_b","path":"module_b"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1","path":"module_b1"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2","path":"module_b2"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","path":"src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo","moduleKey":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1","status":"SAME"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","path":"src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo","moduleKey":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2","status":"SAME"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","path":"src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo","moduleKey":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1","status":"SAME"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","path":"src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo","moduleKey":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2","status":"SAME"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1","path":"src/main/xoo/com/sonar/it/samples/modules/a1","moduleKey":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2","path":"src/main/xoo/com/sonar/it/samples/modules/a2","moduleKey":"com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1","path":"src/main/xoo/com/sonar/it/samples/modules/b1","moduleKey":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1"},{"key":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2","path":"src/main/xoo/com/sonar/it/samples/modules/b2","moduleKey":"com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2"}],"rules":[{"key":"xoo:OneIssuePerLine","rule":"OneIssuePerLine","repository":"xoo","name":"One Issue Per Line"}],"users":[]}
\ No newline at end of file
+{
+ "version": "5.2-SNAPSHOT",
+ "issues": [
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 4,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 11,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 2,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 5,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 1,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 15,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 16,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 13,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 9,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 12,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 3,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 8,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 14,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 6,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 10,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "line": 7,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 2,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 12,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 8,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 17,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 19,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 4,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 3,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 21,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 6,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 9,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 18,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 5,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 20,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 15,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 7,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 16,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 13,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 10,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 1,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 14,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "line": 11,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 9,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 10,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 2,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 1,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 8,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 5,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 7,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 3,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 4,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 6,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 12,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "line": 11,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 12,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 5,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 4,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 1,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 8,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 3,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 10,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 6,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 7,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 11,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 2,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ },
+ {
+ "key": "<ISSUE_KEY>",
+ "component": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "line": 9,
+ "message": "This issue is generated on each line",
+ "severity": "MAJOR",
+ "rule": "xoo:OneIssuePerLine",
+ "status": "OPEN",
+ "isNew": false,
+ "creationDate": "2013-05-01T00:00:00+0200"
+ }
+ ],
+ "components": [
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_a",
+ "path": "module_a"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1",
+ "path": "module_a1"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2",
+ "path": "module_a2"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_b",
+ "path": "module_b"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1",
+ "path": "module_b1"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2",
+ "path": "module_b2"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "path": "src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
+ "moduleKey": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1",
+ "status": "SAME"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "path": "src/main/xoo/com/sonar/it/samples/modules/a2/HelloA2.xoo",
+ "moduleKey": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2",
+ "status": "SAME"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "path": "src/main/xoo/com/sonar/it/samples/modules/b1/HelloB1.xoo",
+ "moduleKey": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1",
+ "status": "SAME"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "path": "src/main/xoo/com/sonar/it/samples/modules/b2/HelloB2.xoo",
+ "moduleKey": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2",
+ "status": "SAME"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1",
+ "path": "src/main/xoo/com/sonar/it/samples/modules/a1",
+ "moduleKey": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2:src/main/xoo/com/sonar/it/samples/modules/a2",
+ "path": "src/main/xoo/com/sonar/it/samples/modules/a2",
+ "moduleKey": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a2"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1:src/main/xoo/com/sonar/it/samples/modules/b1",
+ "path": "src/main/xoo/com/sonar/it/samples/modules/b1",
+ "moduleKey": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b1"
+ },
+ {
+ "key": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2:src/main/xoo/com/sonar/it/samples/modules/b2",
+ "path": "src/main/xoo/com/sonar/it/samples/modules/b2",
+ "moduleKey": "com.sonarsource.it.samples:multi-modules-sample:module_b:module_b2"
+ }
+ ],
+ "rules": [
+ {
+ "key": "xoo:OneIssuePerLine",
+ "rule": "OneIssuePerLine",
+ "repository": "xoo",
+ "name": "One Issue Per Line"
+ }
+ ],
+ "users": []
+}
"version": "<SONAR_VERSION>",
"issues": [
{
- "key": "042f73b0-61e5-43df-b3c3-9d5f1e43dffd",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 2,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "0f1f71b3-4949-406b-abe8-3f61ee5df8e2",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 10,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "45518777-ed03-4282-915f-60cc09ff6c5d",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 13,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "501ee82e-898c-4b88-9975-68655607da8f",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 15,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "55799ca7-85f0-4003-a657-361532b9ad9e",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 4,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "57ba7f32-ac32-4d18-b3cc-61042e59b9aa",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 3,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "5885445b-5f76-45da-8ae4-5b31f145cc68",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 12,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "71be8e1c-3d3b-4704-b86f-efb3de0cc17f",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 11,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "81669e04-75ae-4eb6-8a13-90b7ea0adcf0",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 5,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "939c914b-a899-429e-a98a-73cc5ff7d1f7",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 7,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "b3c66ea0-9d80-4159-868f-05d6fcbbc551",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 9,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "c9a17e92-b355-4c19-9b11-24c006a55a4d",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 6,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "dddba55e-44fa-47b8-bcfc-b88f40659e56",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 8,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "e390f328-f59a-4a9a-9421-f5d0e13a3f4e",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 1,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "fdff9685-de6d-4862-adbd-0d6059da5180",
+ "key": "<ISSUE_KEY>",
"component": "sample:mybranch:src/main/xoo/sample/Sample.xoo",
"line": 14,
"message": "This issue is generated on each line",
],
"users": [ ]
-}
\ No newline at end of file
+}
"version": "<SONAR_VERSION>",
"issues": [
{
- "key": "05652201-6f89-4f07-ba03-1df08eae0d55",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 6,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "0746cf8f-0b67-4da8-82fc-36a6717c1f81",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 5,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "0e9c20e2-567b-4c7a-b1e7-b9e5648dbfc5",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 13,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "107fb325-ddda-43c6-9fde-1e7250571ef8",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 1,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "226c71cf-0a86-43af-8281-6df0308eac92",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 3,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "55c9705c-6509-48c6-9773-0437ab60be42",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 4,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "5d653e95-16e2-4ee7-aac5-91ab8c3aebd6",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 12,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "86056a4b-1813-4a10-937f-082e3f810152",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 10,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "906f38ad-ada7-4088-80fe-3fc3b8532ad6",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 2,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "9328fb3c-6fab-489f-a8ad-eb8277dd7bf7",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 9,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "9980ca57-dfc4-431c-9a45-7ee9d397078a",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 11,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "ccf5a264-bbe0-4459-97dc-acc0e323c4bb",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 7,
"message": "This issue is generated on each line",
"creationDate": "2013-05-02T00:00:00+0200"
},
{
- "key": "ead82961-2724-4d85-b2af-f810206b0ab1",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 8,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "ef617afe-b453-46a2-b004-8f7418059ebc",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 14,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "f7d19927-2d2f-453c-aa45-1e315e5bfbe6",
+ "key": "<ISSUE_KEY>",
"component": "sample:src/main/xoo/sample/Sample.xoo",
"line": 15,
"message": "This issue is generated on each line",
],
"users": [ ]
-}
\ No newline at end of file
+}
"version": "<SONAR_VERSION>",
"issues": [
{
- "key": "040a1d39-472b-4cfa-a75d-0547dd21b3c4",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 4,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "0934e722-8456-465d-bb85-adbcd632d3df",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 7,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "3992207a-f3a3-4c3c-a369-28a893e17c60",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 6,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "4b38f729-17f3-4628-b5e1-f6795a6c49c7",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 1,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "50541707-ab11-469d-9ace-b4753ffb84b8",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 8,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "88ddda56-ae14-4121-9dbd-fefc5cc8c86b",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 15,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "a246f099-c97f-4c7e-b1f4-cc3389f3dced",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 14,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "aa2f4b1d-724d-4e2d-85cd-39a86006e2e9",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 10,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "ac908fcc-e533-4229-9a04-3a89d13537e4",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 3,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "c4604a54-5df8-4db7-8670-df6e4932246b",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 2,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "c99f57ec-98e4-464c-8fa5-adbb27a3a81c",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 16,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "d491b9c4-9217-4285-aabd-44d079b1d46a",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 9,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "d4ae59a5-1ece-4735-8142-ac884bdad17a",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 5,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "d832eb5d-5ff1-4095-b9bc-c5b948e74d5f",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 12,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "e4e76304-7920-4a2f-8deb-fe5a7f21d085",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 13,
"message": "This issue is generated on each line",
"creationDate": "2013-05-01T00:00:00+0200"
},
{
- "key": "fb923e8f-c336-49c0-8884-4529ff8af6e4",
+ "key": "<ISSUE_KEY>",
"component": "com.sonarsource.it.samples:multi-modules-sample:module_a:module_a1:src/main/xoo/com/sonar/it/samples/modules/a1/HelloA1.xoo",
"line": 11,
"message": "This issue is generated on each line",
],
"users": [ ]
-}
\ No newline at end of file
+}
import org.slf4j.LoggerFactory;
import org.sonar.api.issue.Issue;
import org.sonar.api.rule.Severity;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.server.es.EsClient;
import org.sonar.server.es.SearchOptions;
import org.sonar.server.es.SearchResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.batch.protocol.Constants;
import org.sonar.batch.protocol.output.BatchReport;
import org.sonar.batch.protocol.output.BatchReportWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.db.DbTester;
import org.sonar.db.protobuf.DbFileSources;
import org.sonar.db.source.FileSourceDao;
package org.sonar.server.activity;
import org.sonar.api.utils.KeyValueFormat;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.db.activity.ActivityDto;
import org.sonar.server.activity.index.ActivityIndexer;
import org.sonar.db.DbClient;
import org.sonar.api.resources.Scopes;
import org.sonar.api.server.ServerSide;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.api.web.UserRole;
import org.sonar.core.component.ComponentKeys;
import org.sonar.core.permission.GlobalPermissions;
import org.apache.commons.io.FileUtils;
import org.sonar.api.config.Settings;
import org.sonar.api.server.ServerSide;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.api.utils.log.Loggers;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
import javax.annotation.Nullable;
import org.sonar.api.issue.Issue;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.core.issue.DefaultIssue;
import org.sonar.core.issue.IssueChangeContext;
import org.sonar.core.issue.IssueUpdater;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.batch.protocol.output.BatchReport;
import org.sonar.core.component.ComponentKeys;
import org.sonar.db.DbClient;
import org.apache.ibatis.session.ResultContext;
import org.apache.ibatis.session.ResultHandler;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.api.utils.log.Logger;
import org.sonar.api.utils.log.Loggers;
import org.sonar.batch.protocol.output.BatchReport;
import javax.annotation.Nullable;
import org.sonar.api.server.ServerSide;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.core.permission.GlobalPermissions;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
import java.util.Date;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.db.permission.PermissionTemplateDto;
class PermissionTemplateDtoBuilder {
import org.sonar.api.utils.internal.TempFolderCleaner;
import org.sonar.core.config.CorePropertyDefinitions;
import org.sonar.core.config.Logback;
+import org.sonar.core.util.UuidFactoryImpl;
import org.sonar.db.DaoModule;
import org.sonar.db.DatabaseChecker;
import org.sonar.db.DefaultDatabase;
ServerSettings.class,
ServerImpl.class,
Logback.class,
+ UuidFactoryImpl.INSTANCE,
EmbeddedDatabaseFactory.class,
DefaultDatabase.class,
DatabaseChecker.class,
import org.junit.experimental.categories.Category;
import org.sonar.api.measures.Metric;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.db.DbClient;
import org.sonar.db.DbTester;
import org.sonar.db.component.ComponentDto;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.db.DbSession;
import org.sonar.db.DbTester;
import org.sonar.db.MyBatis;
import org.sonar.api.resources.Scopes;
import org.sonar.api.rule.Severity;
import org.sonar.api.utils.DateUtils;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.db.component.ComponentDto;
import org.sonar.db.issue.IssueDto;
import org.sonar.db.rule.RuleDto;
import org.sonar.api.server.ws.WebService.Param;
import org.sonar.api.utils.DateUtils;
import org.sonar.api.utils.System2;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.db.DbSession;
import org.sonar.db.DbTester;
import org.sonar.db.qualityprofile.ActiveRuleKey;
import java.util.List;
import org.apache.commons.lang.RandomStringUtils;
import org.apache.commons.lang.math.RandomUtils;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.db.DbSession;
import org.sonar.db.protobuf.DbFileSources;
import org.sonar.db.source.FileSourceDto;
import org.sonar.core.platform.PluginLoader;
import org.sonar.core.platform.PluginRepository;
import org.sonar.core.util.DefaultHttpDownloader;
+import org.sonar.core.util.UuidFactoryImpl;
public class GlobalContainer extends ComponentContainer {
DefaultI18n.class,
Durations.class,
RuleI18nManager.class,
- new GlobalRepositoriesProvider());
+ new GlobalRepositoriesProvider(),
+ UuidFactoryImpl.INSTANCE);
addIfMissing(BatchPluginInstaller.class, PluginInstaller.class);
addIfMissing(DefaultRulesLoader.class, RulesLoader.class);
addIfMissing(DefaultGlobalRepositoriesLoader.class, GlobalRepositoriesLoader.class);
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import org.sonar.api.issue.ActionPlan;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
public class DefaultActionPlan implements ActionPlan {
import org.sonar.api.issue.Issuable.IssueBuilder;
import org.sonar.api.issue.Issue;
import org.sonar.api.rule.RuleKey;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
public class DefaultIssueBuilder implements Issuable.IssueBuilder {
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import org.sonar.api.issue.IssueComment;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
/**
* PLUGINS MUST NOT BE USED THIS CLASS, EXCEPT FOR UNIT TESTING.
import java.util.HashSet;
import java.util.Set;
import java.util.regex.Pattern;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.api.utils.log.Logger;
import org.sonar.api.utils.log.Loggers;
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.core.util;
+
+import com.google.common.annotations.VisibleForTesting;
+import java.net.NetworkInterface;
+import java.net.SocketException;
+import java.security.SecureRandom;
+import java.util.Enumeration;
+import javax.annotation.CheckForNull;
+import javax.annotation.Nullable;
+import org.sonar.api.utils.log.Logger;
+import org.sonar.api.utils.log.Loggers;
+
+/**
+ * Used by {@link UuidFactoryImpl}. Heavily inspired by https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/common/MacAddressProvider.java
+ */
+class MacAddressProvider {
+
+ private static final Logger LOGGER = Loggers.get(MacAddressProvider.class);
+ public static final int BYTE_SIZE = 6;
+
+ private MacAddressProvider() {
+ // only static stuff
+ }
+
+ public static byte[] getSecureMungedAddress() {
+ byte[] address = null;
+ try {
+ address = getMacAddress();
+ } catch (SocketException se) {
+ LOGGER.warn("Unable to get mac address, will use a dummy address", se);
+ // address will be set below
+ }
+
+ if (!isValidAddress(address)) {
+ LOGGER.warn("Unable to get a valid mac address, will use a dummy address");
+ address = constructDummyMulticastAddress();
+ }
+
+ byte[] mungedBytes = new byte[BYTE_SIZE];
+ new SecureRandom().nextBytes(mungedBytes);
+ for (int i = 0; i < BYTE_SIZE; ++i) {
+ mungedBytes[i] ^= address[i];
+ }
+
+ return mungedBytes;
+ }
+
+ private static boolean isValidAddress(@Nullable byte[] address) {
+ if (address == null || address.length != BYTE_SIZE) {
+ return false;
+ }
+ for (byte b : address) {
+ if (b != 0x00) {
+ // If any of the bytes are non zero assume a good address
+ return true;
+ }
+ }
+ return false;
+ }
+
+ @CheckForNull
+ private static byte[] getMacAddress() throws SocketException {
+ Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();
+ if (en != null) {
+ while (en.hasMoreElements()) {
+ NetworkInterface nint = en.nextElement();
+ if (!nint.isLoopback()) {
+ // Pick the first valid non loopback address we find
+ byte[] address = nint.getHardwareAddress();
+ if (isValidAddress(address)) {
+ return address;
+ }
+ }
+ }
+ }
+ // Could not find a mac address
+ return null;
+ }
+
+ @VisibleForTesting
+ static byte[] constructDummyMulticastAddress() {
+ byte[] dummy = new byte[BYTE_SIZE];
+ new SecureRandom().nextBytes(dummy);
+ // Set the broadcast bit to indicate this is not a _real_ mac address
+ dummy[0] |= (byte) 0x01;
+ return dummy;
+ }
+
+}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.core.util;
+
+public interface UuidFactory {
+
+ /**
+ * Create a universally unique identifier. Underlying algorithm, so format and max length,
+ * can vary over SonarQube versions.
+ * <p/>
+ * UUID is a base64 ASCII encoded string and is URL-safe. It does not contain - and + characters
+ * but only letters, digits, dash (-) and underscore (_). Length can vary but does
+ * not exceed 40 characters (arbitrary value).
+ */
+ String create();
+
+}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.core.util;
+
+import java.security.SecureRandom;
+import java.util.concurrent.atomic.AtomicInteger;
+import org.apache.commons.codec.binary.Base64;
+
+/**
+ * Heavily inspired from Elasticsearch {@code TimeBasedUUIDGenerator}, which could be directly
+ * used the day {@code UuidFactoryImpl} is moved outside module sonar-core.
+ * See https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/common/TimeBasedUUIDGenerator.java
+ */
+public enum UuidFactoryImpl implements UuidFactory {
+
+ /**
+ * Should be removed as long {@link Uuids} is not used anymore. {@code UuidFactoryImpl}
+ * should be built by picocontainer through a public constructor.
+ */
+ INSTANCE;
+
+ // We only use bottom 3 bytes for the sequence number. Paranoia: init with random int so that if JVM/OS/machine goes down, clock slips
+ // backwards, and JVM comes back up, we are less likely to be on the same sequenceNumber at the same time:
+ private final AtomicInteger sequenceNumber = new AtomicInteger(new SecureRandom().nextInt());
+
+ // Used to ensure clock moves forward
+ private long lastTimestamp = 0L;
+
+ private final byte[] secureMungedAddress = MacAddressProvider.getSecureMungedAddress();
+
+ @Override
+ public String create() {
+ int sequenceId = sequenceNumber.incrementAndGet() & 0xffffff;
+ long timestamp = System.currentTimeMillis();
+
+ synchronized (this) {
+ // Don't let timestamp go backwards, at least "on our watch" (while this JVM is running). We are still vulnerable if we are
+ // shut down, clock goes backwards, and we restart... for this we randomize the sequenceNumber on init to decrease chance of
+ // collision:
+ timestamp = Math.max(lastTimestamp, timestamp);
+
+ if (sequenceId == 0) {
+ // Always force the clock to increment whenever sequence number is 0, in case we have a long time-slip backwards:
+ timestamp++;
+ }
+
+ lastTimestamp = timestamp;
+ }
+
+ byte[] uuidBytes = new byte[15];
+
+ // Only use lower 6 bytes of the timestamp (this will suffice beyond the year 10000):
+ putLong(uuidBytes, timestamp, 0, 6);
+
+ // MAC address adds 6 bytes:
+ System.arraycopy(secureMungedAddress, 0, uuidBytes, 6, secureMungedAddress.length);
+
+ // Sequence number adds 3 bytes:
+ putLong(uuidBytes, sequenceId, 12, 3);
+
+ return Base64.encodeBase64URLSafeString(uuidBytes);
+ }
+
+ /** Puts the lower numberOfLongBytes from l into the array, starting index pos. */
+ private static void putLong(byte[] array, long l, int pos, int numberOfLongBytes) {
+ for (int i = 0; i < numberOfLongBytes; ++i) {
+ array[pos + numberOfLongBytes - i - 1] = (byte) (l >>> (i * 8));
+ }
+ }
+}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.core.util;
+
+public class Uuids {
+
+ private Uuids() {
+ // only static fields
+ }
+
+ /**
+ * Create a universally unique identifier. It's recommended to use the non-static way
+ * through {@link UuidFactory} which is available in IoC container.
+ * @see UuidFactory#create()
+ */
+ public static String create() {
+ return UuidFactoryImpl.INSTANCE.create();
+ }
+}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.core.util;
+
+import org.junit.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class MacAddressProviderTest {
+
+ @Test
+ public void getSecureMungedAddress() throws Exception {
+ byte[] address = MacAddressProvider.getSecureMungedAddress();
+ assertThat(address).isNotEmpty();
+ assertThat(address).hasSize(6);
+ }
+
+ @Test
+ public void constructDummyMulticastAddress() {
+ byte[] address = MacAddressProvider.constructDummyMulticastAddress();
+ assertThat(address).isNotEmpty();
+ assertThat(address).hasSize(6);
+ }
+}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.core.util;
+
+import org.junit.Test;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class UuidFactoryImplTest {
+
+ UuidFactory underTest = UuidFactoryImpl.INSTANCE;
+
+ @Test
+ public void create_different_uuids() {
+ // this test is not enough to ensure that generated strings are unique,
+ // but it still does a simple and stupid verification
+ assertThat(underTest.create()).isNotEqualTo(underTest.create());
+ }
+
+ @Test
+ public void test_format_of_uuid() throws Exception {
+ String uuid = underTest.create();
+
+ assertThat(uuid.length()).isGreaterThan(10).isLessThan(40);
+
+ // URL-safe: only letters, digits, dash and underscore.
+ assertThat(uuid).matches("^[\\w\\-_]+$");
+ }
+}
--- /dev/null
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+package org.sonar.core.util;
+
+import com.google.common.collect.Sets;
+import org.junit.Test;
+import org.sonar.test.TestUtils;
+
+import java.util.Set;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+public class UuidsTest {
+
+ @Test
+ public void create_unique() {
+ Set<String> all = Sets.newHashSet();
+ for (int i = 0; i < 50; i++) {
+ String uuid = Uuids.create();
+ assertThat(uuid).isNotEmpty();
+ all.add(uuid);
+ }
+ assertThat(all).hasSize(50);
+ }
+
+ @Test
+ public void constructor_is_private() {
+ TestUtils.hasOnlyPrivateConstructors(Uuids.class);
+ }
+}
import java.util.Date;
import org.sonar.api.issue.ActionPlan;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
public class ActionPlanStats extends DefaultActionPlan {
import org.sonar.api.rule.RuleKey;
import org.sonar.api.utils.Duration;
import org.sonar.api.utils.KeyValueFormat;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.core.issue.DefaultIssue;
import org.sonar.db.component.ComponentDto;
import org.sonar.db.protobuf.DbIssues;
import org.apache.ibatis.session.ResultContext;
import org.apache.ibatis.session.ResultHandler;
import org.sonar.api.resources.Scopes;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import org.sonar.api.utils.log.Logger;
import org.sonar.api.utils.log.Loggers;
import org.sonar.core.util.ProgressLogger;
import com.google.common.base.Preconditions;
import org.sonar.api.resources.Qualifiers;
import org.sonar.api.resources.Scopes;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import static org.sonar.db.component.ComponentDto.MODULE_UUID_PATH_SEP;
package org.sonar.db.permission;
import java.util.Date;
-import org.sonar.api.utils.internal.Uuids;
+import org.sonar.core.util.Uuids;
import static org.apache.commons.lang.RandomStringUtils.randomAlphanumeric;
import static org.apache.commons.lang.RandomStringUtils.randomAscii;
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.api.utils.internal;
-
-import java.util.UUID;
-
-/**
- * @since 5.0
- */
-public class Uuids {
-
- private Uuids() {
- // only static fields
- }
-
- /**
- * Create a universally unique identifier. Underlying algorithm can change over SQ versions.
- */
- public static String create() {
- return UUID.randomUUID().toString();
- }
-}
+++ /dev/null
-/*
- * SonarQube, open source software quality management tool.
- * Copyright (C) 2008-2014 SonarSource
- * mailto:contact AT sonarsource DOT com
- *
- * SonarQube is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * SonarQube is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-package org.sonar.api.utils.internal;
-
-import com.google.common.collect.Sets;
-import org.junit.Test;
-import org.sonar.test.TestUtils;
-
-import java.util.Set;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-public class UuidsTest {
-
- @Test
- public void create_unique() {
- Set<String> all = Sets.newHashSet();
- for (int i = 0; i < 50; i++) {
- String uuid = Uuids.create();
- assertThat(uuid).isNotEmpty();
- all.add(uuid);
- }
- assertThat(all).hasSize(50);
- }
-
- @Test
- public void constructor_is_private() {
- TestUtils.hasOnlyPrivateConstructors(Uuids.class);
- }
-}