aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/resources
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-05-20 17:36:55 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-05-20 21:22:56 +0200
commit6af08cecc609d8cfd7e59338398a37cc954828b7 (patch)
treeef3ff1cba93c8e4d84e866897c66981d248fcd39 /sonar-server/src/main/resources
parent4c3a69653fcc9293f62f7382d51303e2e7f55338 (diff)
downloadsonarqube-6af08cecc609d8cfd7e59338398a37cc954828b7.tar.gz
sonarqube-6af08cecc609d8cfd7e59338398a37cc954828b7.zip
SONAR-5007 improve conversion fk of ES doc to WS response
Diffstat (limited to 'sonar-server/src/main/resources')
-rw-r--r--sonar-server/src/main/resources/org/sonar/server/rule2/ws/example-search.json3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-server/src/main/resources/org/sonar/server/rule2/ws/example-search.json b/sonar-server/src/main/resources/org/sonar/server/rule2/ws/example-search.json
index a94500f1ec9..b8c2f661747 100644
--- a/sonar-server/src/main/resources/org/sonar/server/rule2/ws/example-search.json
+++ b/sonar-server/src/main/resources/org/sonar/server/rule2/ws/example-search.json
@@ -3,6 +3,7 @@
"key": "squid:S1067",
"repo": "squid",
"lang": "java",
+ "langName": "Java",
"name": "Expressions should not be too complex",
"htmlDesc": "<p>\nThe complexity of an expression is defined by the number of <code>&&</code>, <code>||</code> and <code>condition ? ifTrue : ifFalse</code> operators it contains.\nA single expression's complexity should not become too high to keep the code readable.\n</p>\n\n<p>The following code, with a maximum complexity of 3:</p>\n\n<pre>\nif (condition1 && condition2 && condition3 && condition4) { /* ... */ } // Non-Compliant\n</pre>\n\n<p>could be refactored into something like:</p>\n\n<pre>\nif (relevantMethodName1() && relevantMethodName2()) { /* ... */ } // Compliant\n\n/* ... */\n\nprivate boolean relevantMethodName1() {\n return condition1 && condition2;\n}\n\nprivate boolean relevantMethodName2() {\n return condition3 && condition4;\n}\n</pre>",
"status": "READY",
@@ -493,4 +494,4 @@
}
]
}
-]} \ No newline at end of file
+]}