Is there basic ruleset/quality profile for SonarQube for the Scala language?
I couldn't find any and it's hard to imagine that everyone starts with an empty ruleset.
SonarQube has support for many languages but it doesn't have support for Scala- so this blog will guide through configuring sonar-scala and scoverage plugins to generate code analysis and code coverage reports.
Creating Custom Quality Profile in SonarQube Let's click Quality Profiles tab, go to the Java section, copy Sonar way profile and rename this Custom Quality Profile. You can either assign this profile to an existing project or even declare it as default for all projects.
The Sonar way Quality Profiles are a good starting point as you begin analyzing code, and they start out as the default Quality Profiles for each language. However, we recommend that you Copy this profile (see Copying a profile below) and begin to fine-tune the rules.
I have build a plugin for running Scalastyle on SonarQube. It comes with the default Scalastyle Quality profile and you can create or customise quality profiles.
github.com/emrehan/sonar-scalastyle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With