All Projects → gretard → sonar-ps-plugin

gretard / sonar-ps-plugin

Licence: LGPL-3.0 License
Powershell language plugin for SonarQube

Programming Languages

java
68154 projects - #9 most used programming language
powershell
5483 projects

Projects that are alternatives of or similar to sonar-ps-plugin

sonar-gherkin-plugin
SonarQube Cucumber Gherkin Analyzer
Stars: ✭ 33 (+10%)
Mutual labels:  sonarqube-plugin
sonar-groovy
SonarQube plugin for Groovy
Stars: ✭ 42 (+40%)
Mutual labels:  sonarqube-plugin
sonar-scala
A free and open-source SonarQube plugin for static code analysis of Scala projects.
Stars: ✭ 113 (+276.67%)
Mutual labels:  sonarqube-plugin
sonar-css-plugin
SonarQube CSS / SCSS / Less Analyzer
Stars: ✭ 46 (+53.33%)
Mutual labels:  sonarqube-plugin
sonar-coldfusion
SonarQube ColdFusion Analyzer
Stars: ✭ 25 (-16.67%)
Mutual labels:  sonarqube-plugin
sonar-puppet
SonarQube plugin for Puppet code.
Stars: ✭ 27 (-10%)
Mutual labels:  sonarqube-plugin

sonar-ps-plugin

Repository for Powershell language plugin for Sonar.

Description

Currently plug-in supports:

  • Reporting of issues found by PSScriptAnalyzer
  • Cyclomatic and cognitive complexity metrics (since version 0.3.0)
  • Reporting number of lines of code and comment lines metrics (since version 0.3.2)

Dev-Branch: Build Status - develop

Master-Branch: Build Status - master

Donating

You can support this project and others via Paypal

Support via PayPal

Usage

  1. Download and install SonarQube
  2. Download plugin from the releases and copy it to sonarqube's extensions\plugins directory
  3. Start SonarQube and enable rules
  4. Install PSScriptAnalyzer into your build machine where you plan to run sonar scanner

Configuration

Currently there is a possibility to override the following options either on server in the Administration tab or on the project configuration files:

  • sonar.ps.tokenizer.skip - if set to true - skips tokenizer, which might be time consuming, defaults to false
  • sonar.ps.file.suffixes - allows to specify which files should be detected as Powershell files, defaults to .ps1,.psm1,.psd1
  • sonar.ps.executable - allows to specify powershell executable, defaults to powershell.exe (since version 0.3.0)
  • sonar.ps.plugin.skip - if set to true - skips plugin in general, meaning that no sensors are run, defaults to false (since version 0.3.0)
  • sonar.ps.tokenizer.timeout - maximum number of seconds to wait for tokenizer results, defaults to 3600 (since version 0.4.0)
  • sonar.ps.external.rules.skip - list of repo:ruleId comma separated pairs to skip reporting of issues found by rules (since version 0.5.0)

Requirements

Different plugin versions supports the following:

  • 0.5.1 - Sonarqube version 8.9.2+ and PSScriptAnalyzer version 1.20+ rules, Java 11+
  • 0.5.0 - Sonarqube version 6.7.7+ and PSScriptAnalyzer version 1.18.1 rules, Java 8
  • 0.3.0 - Sonarqube version 6.3+ and PSScriptAnalyzer version 1.17.1 rules, Java 8
  • 0.2.2 - Sonarqube 5.6+ version and PSScriptAnalyzer version 1.17.1 rules, Java 8
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].