Closed DocEmmetBrown closed 2 years ago
When outputting json, it is expected to have an array of findings. If nothing is found, outputting an empty array [] instead of an empty json object {} keeps the consistency on the output type, and makes it easier to parse from external tools.
json
[]
{}
Code Climate has analyzed commit 0c7cf373 and detected 0 issues on this pull request.
View more on Code Climate.
When outputting
json
, it is expected to have an array of findings.If nothing is found, outputting an empty array
[]
instead of an empty json object{}
keeps the consistency on the output type, and makes it easier to parse from external tools.