9

I need to analyse the shell scripts using the Sonar server.

The files that I have are of extension sh and would need to be analysed. But I don't see any plugin for the sh from the Sonar plugins.

halfer
  • 19,824
  • 17
  • 99
  • 186
Ganapathy
  • 237
  • 2
  • 8
  • 1
    You can download http://www.shellcheck.net/about.html, intall it on your server and run it inside a "Execute Shell Build Step" for the task – higuaro Aug 17 '15 at 04:12
  • thanks, could you give me more detail on how i can configure in my sonar server – Ganapathy Aug 17 '15 at 09:21

1 Answers1

9

Assuming your .sh files are bash scripts or some approximate equivalent then you can't currently configure your SonarQube server to analyze them because there's no plugin that handles such scripting.

Sept 2018 Update

There's now a plugin in the Marketplace to read in i-Code CNES reports. i-Code CNES covers two flavors of Fortran and Shell.

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
  • 6
    any plans on creating such, especially checking the shebang and checking for POSIX sh, GNU bash, and the Korn Shell (AT&T ksh88, ksh93, and mksh) dialects? – mirabilos Aug 09 '16 at 11:48
  • 1
    Not in our plans @dokaspar. Feel free to initiate your own analyzer & ping the [Google Group](https://groups.google.com/forum/?pli=1#!forum/sonarqube) when you have specific development questions. :D – G. Ann - SonarSource Team Sep 25 '17 at 12:55