0

Some funcionalities of my software have their complexity on json files, which contain the metadata that is used on them. So, it would be extremelly important that SonarQube analyse this files.

Does anybody know if it is possible?

Thanks, Guilherme

5
  • I don't know SonarQube much, but I know there is an online version; is that what you use or do you run it locally?
    – fge
    Jan 20, 2015 at 23:45
  • I'll explain why I say that; if you can program your own rule, you can use a JSON Schema to check the correctness of your JSON. There are however limits in what it can validate, but you can use this implementation (yes, it's mine) which allows you to develop custom keywords if needed.
    – fge
    Jan 20, 2015 at 23:57
  • Thank you, @fge! I'll try it. Beside checking the correctness and performance, does it check the complexity? Is it possible for a json document? Jan 21, 2015 at 0:19
  • I Would like to collect some metrics to get my software maintainability rank Jan 21, 2015 at 0:20
  • Not sure what you mean by complexity? What would be a criterion?
    – fge
    Jan 21, 2015 at 0:40

2 Answers 2

1

No, there is currently (SQ 5.0) no analyzer for JSON in SonarQube (neither in platform nor in plugins).

2
  • Sounds like we should make a plugin for it(a wrap over JSHint) :) Jan 21, 2015 at 8:36
  • Thanks! I'll look for another way to add theses files in my measure. Jan 21, 2015 at 18:21
1

SonarQube website now claims it has a plugin for JSON files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.