codeclimate.json 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "$id": "https://github.com/codeclimate/platform/blob/master/spec/analyzers/SPEC.md#issues",
  4. "type": "array",
  5. "items": {
  6. "type": "object",
  7. "properties": {
  8. "type": {
  9. "type": "string",
  10. "enum": ["issue"]
  11. },
  12. "check_name": {
  13. "type": "string"
  14. },
  15. "description": {
  16. "type": "string"
  17. },
  18. "categories": {
  19. "type": "array",
  20. "uniqueItems": true,
  21. "items": {
  22. "type": "string",
  23. "enum": [
  24. "Bug Risk",
  25. "Clarity",
  26. "Compatibility",
  27. "Complexity",
  28. "Duplication",
  29. "Performance",
  30. "Security",
  31. "Style",
  32. "Unused Code"
  33. ]
  34. }
  35. },
  36. "location": {
  37. "type": "object",
  38. "properties": {
  39. "path": {
  40. "type": "string"
  41. },
  42. "lines": {
  43. "type": "object",
  44. "properties": {
  45. "begin": {
  46. "type": "number"
  47. },
  48. "end": {
  49. "type": "number"
  50. }
  51. },
  52. "required": [
  53. "begin",
  54. "end"
  55. ]
  56. }
  57. },
  58. "required": [
  59. "path",
  60. "lines"
  61. ]
  62. },
  63. "remediation_points": {
  64. "type": "number"
  65. },
  66. "content": {
  67. "type": "object",
  68. "properties": {
  69. "body": {
  70. "type": "string"
  71. }
  72. },
  73. "required": [
  74. "body"
  75. ]
  76. },
  77. "fingerprint": {
  78. "type": "string"
  79. },
  80. "severity": {
  81. "type": "string",
  82. "enum": [
  83. "info",
  84. "minor",
  85. "major",
  86. "critical"
  87. ]
  88. }
  89. }
  90. },
  91. "required": [
  92. "type",
  93. "check_name",
  94. "description",
  95. "categories",
  96. "location"
  97. ]
  98. }