Guest User

Untitled

a guest
Apr 6th, 2016
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.37 KB | None | 0 0
  1. {
  2. "version": "0.4",
  3. "runLogs": [
  4. {
  5. "toolInfo": {
  6. "name": "Microsoft (R) Visual C# Compiler",
  7. "version": "1.2.0",
  8. "fileVersion": "1.2.0.60317"
  9. },
  10. "results": [
  11. {
  12. "ruleId": "S1067",
  13. "kind": "warning",
  14. "locations": [
  15. {
  16. "analysisTarget": [
  17. {
  18. "uri": "file:\/\/\/D:\/TFS\/Agents\/Agent-47\/_work\/4\/s\/UrlNameSetter\/Dev\/******.Tools.UrlNameSetter\/******.Tools.UrlNameSetter\/UrlNameHelper.cs",
  19. "region": {
  20. "startLine": 31,
  21. "startColumn": 13,
  22. "endLine": 31,
  23. "endColumn": 73
  24. }
  25. }
  26. ]
  27. }
  28. ],
  29. "shortMessage": "Reduce the number of conditional operators (4) used in the expression (maximum allowed 3).",
  30. "fullMessage": "The complexity of an expression is defined by the number of \"&&\", \"||\" and \"condition ? ifTrue : ifFalse\" operators it contains. A single expression's complexity should not become too high to keep the code readable.",
  31. "isSuppressedInSource": false,
  32. "properties": {
  33. "severity": "Warning",
  34. "warningLevel": "1",
  35. "defaultSeverity": "Warning",
  36. "title": "Expressions should not be too complex",
  37. "category": "Maintainability",
  38. "helpLink": "http:\/\/vs.sonarlint.org\/rules\/index.html#version=1.10.0&ruleId=S1067",
  39. "isEnabledByDefault": "False"
  40. }
  41. },
  42. {
  43. "ruleId": "S1541",
  44. "kind": "warning",
  45. "locations": [
  46. {
  47. "analysisTarget": [
  48. {
  49. "uri": "file:\/\/\/D:\/TFS\/Agents\/Agent-47\/_work\/4\/s\/UrlNameSetter\/Dev\/******.Tools.UrlNameSetter\/******.Tools.UrlNameSetter\/UrlNameHelper.cs",
  50. "region": {
  51. "startLine": 26,
  52. "startColumn": 28,
  53. "endLine": 26,
  54. "endColumn": 48
  55. }
  56. }
  57. ]
  58. }
  59. ],
  60. "shortMessage": "The Cyclomatic Complexity of this method is 30 which is greater than 10 authorized.",
  61. "fullMessage": "The cyclomatic complexity of a function should not exceed a defined threshold. Complex code can perform poorly and will in any case be difficult to understand and therefore to maintain.",
  62. "isSuppressedInSource": false,
  63. "properties": {
  64. "severity": "Warning",
  65. "warningLevel": "1",
  66. "defaultSeverity": "Warning",
  67. "title": "Methods should not be too complex",
  68. "category": "Maintainability",
  69. "helpLink": "http:\/\/vs.sonarlint.org\/rules\/index.html#version=1.10.0&ruleId=S1541",
  70. "isEnabledByDefault": "False"
  71. }
  72. },
  73. {
  74. "ruleId": "S1226",
  75. "kind": "warning",
  76. "locations": [
  77. {
  78. "analysisTarget": [
  79. {
  80. "uri": "file:\/\/\/D:\/TFS\/Agents\/Agent-47\/_work\/4\/s\/UrlNameSetter\/Dev\/******.Tools.UrlNameSetter\/******.Tools.UrlNameSetter\/UrlNameHelper.cs",
  81. "region": {
  82. "startLine": 132,
  83. "startColumn": 11,
  84. "endLine": 132,
  85. "endColumn": 27
  86. }
  87. }
  88. ]
  89. }
  90. ],
  91. "shortMessage": "Introduce a new variable instead of reusing the parameter \"organisationName\".",
  92. "fullMessage": "While it is technically correct to assign to parameters from within method bodies, it is better to use temporary variables to store intermediate results. This rule will typically detect cases where a constructor parameter is assigned to itself instead of a field of the same name, i.e. when \"this\"\/\"Me\" was forgotten. Allowing parameters to be assigned to also reduces the code readability as developers will not be able to know whether the original parameter or some temporary variable is being accessed without going through the whole method. Moreover, some developers might also expect assignments of method parameters to be visible from callers, which is not the case and can confuse them. All parameters should be treated as read-only.",
  93. "isSuppressedInSource": false,
  94. "properties": {
  95. "severity": "Warning",
  96. "warningLevel": "1",
  97. "defaultSeverity": "Warning",
  98. "title": "Method parameters and caught exceptions should not be reassigned",
  99. "category": "Maintainability",
  100. "helpLink": "http:\/\/vs.sonarlint.org\/rules\/index.html#version=1.10.0&ruleId=S1226",
  101. "isEnabledByDefault": "False"
  102. }
  103. },
  104. {
  105. "ruleId": "S126",
  106. "kind": "warning",
  107. "locations": [
  108. {
  109. "analysisTarget": [
  110. {
  111. "uri": "file:\/\/\/D:\/TFS\/Agents\/Agent-47\/_work\/4\/s\/UrlNameSetter\/Dev\/******.Tools.UrlNameSetter\/******.Tools.UrlNameSetter\/UrlNameHelper.cs",
  112. "region": {
  113. "startLine": 55,
  114. "startColumn": 9,
  115. "endLine": 55,
  116. "endColumn": 16
  117. }
  118. }
  119. ]
  120. }
  121. ],
  122. "shortMessage": "Add the missing \"else\" clause.",
  123. "fullMessage": "The requirement for a final \"else\"statement is defensive programming. The \"else\" statement should either take appropriate action or contain a suitable comment as to why no action is taken. This is consistent with the requirement to have a final \"default\" clause in a \"switch\" statement.",
  124. "isSuppressedInSource": false,
  125. "properties": {
  126. "severity": "Warning",
  127. "warningLevel": "1",
  128. "defaultSeverity": "Warning",
  129. "title": "\"if ... else if\" constructs should end with \"else\" clause",
  130. "category": "Reliability",
  131. "helpLink": "http:\/\/vs.sonarlint.org\/rules\/index.html#version=1.10.0&ruleId=S126",
  132. "isEnabledByDefault": "False"
  133. }
  134. },
  135. {
  136. "ruleId": "S126",
  137. "kind": "warning",
  138. "locations": [
  139. {
  140. "analysisTarget": [
  141. {
  142. "uri": "file:\/\/\/D:\/TFS\/Agents\/Agent-47\/_work\/4\/s\/UrlNameSetter\/Dev\/******.Tools.UrlNameSetter\/******.Tools.UrlNameSetter\/UrlNameHelper.cs",
  143. "region": {
  144. "startLine": 89,
  145. "startColumn": 11,
  146. "endLine": 89,
  147. "endColumn": 18
  148. }
  149. }
  150. ]
  151. }
  152. ],
  153. "shortMessage": "Add the missing \"else\" clause.",
  154. "fullMessage": "The requirement for a final \"else\"statement is defensive programming. The \"else\" statement should either take appropriate action or contain a suitable comment as to why no action is taken. This is consistent with the requirement to have a final \"default\" clause in a \"switch\" statement.",
  155. "isSuppressedInSource": false,
  156. "properties": {
  157. "severity": "Warning",
  158. "warningLevel": "1",
  159. "defaultSeverity": "Warning",
  160. "title": "\"if ... else if\" constructs should end with \"else\" clause",
  161. "category": "Reliability",
  162. "helpLink": "http:\/\/vs.sonarlint.org\/rules\/index.html#version=1.10.0&ruleId=S126",
  163. "isEnabledByDefault": "False"
  164. }
  165. },
  166. {
  167. "ruleId": "S131",
  168. "kind": "warning",
  169. "locations": [
  170. {
  171. "analysisTarget": [
  172. {
  173. "uri": "file:\/\/\/D:\/TFS\/Agents\/Agent-47\/_work\/4\/s\/UrlNameSetter\/Dev\/******.Tools.UrlNameSetter\/******.Tools.UrlNameSetter\/UrlNameHelper.cs",
  174. "region": {
  175. "startLine": 170,
  176. "startColumn": 9,
  177. "endLine": 170,
  178. "endColumn": 15
  179. }
  180. }
  181. ]
  182. }
  183. ],
  184. "shortMessage": "Add a \"default\" clause to this \"switch\" statement.",
  185. "fullMessage": "The requirement for a final \"default\/Case Else\" clause is defensive programming. The clause should either take appropriate action, or contain a suitable comment as to why no action is taken. Even when the \"switch\/Select\" covers all current values of an enumeration, a \"default\/Case Else\" case should still be used because there is no guarantee that the enumeration won't be extended.",
  186. "isSuppressedInSource": false,
  187. "properties": {
  188. "severity": "Warning",
  189. "warningLevel": "1",
  190. "defaultSeverity": "Warning",
  191. "title": "\"switch\/Select\" statements should end with a \"default\/Case Else\" clause",
  192. "category": "Reliability",
  193. "helpLink": "http:\/\/vs.sonarlint.org\/rules\/index.html#version=1.10.0&ruleId=S131",
  194. "isEnabledByDefault": "False"
  195. }
  196. }
  197. ]
  198. }
  199. ]
  200. }
Advertisement
Add Comment
Please, Sign In to add comment