Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Added sonar.scala.source version property and removed some sonar api … #17

Conversation

ElfoLiNk
Copy link
Contributor

Added sonar.scala.source for #2
Removed some deprecated sonar api usage

val charset = context.fileSystem().encoding.toString
val versionProperty = context.config().get("sonar.scala.source")
val version =
if (context.config().get("sonar.scala.source").isPresent) versionProperty.get() else "2.11.11"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sonar.scala.source might be a little bit confusing given that there is already sonar.sources key in SonarQube.

Since this is related to Scala version, I'd probably name it sonar.scala.version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you default it to the Scala_2_11 constant from Scaliform?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -48,51 +49,53 @@ class ScalaSensorSpec extends FlatSpec with Matchers {
}
"""

private val scala211 = "2.11.11"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the future, we should definitely use ScalaCheck to verify the tests hold for all of the Scala versions supported by this plugin.

@mwz
Copy link
Member

mwz commented Feb 18, 2018

Thanks for removing some of the deprecations, we've got now only ~60 left to do 😄

@mwz mwz merged commit 367661e into sonar-scala:master Feb 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants