by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • May 28 16:46
    mwz commented #432
  • May 28 02:24
    scala-steward opened #462
  • May 27 18:35
    scala-steward opened #461
  • May 26 14:21
    cosminci commented #211
  • May 26 13:11
    cosminci commented #211
  • May 26 12:39
    cosminci commented #211
  • May 26 11:42
    cosminci commented #211
  • May 26 03:07
    scala-steward opened #460
  • May 25 22:37

    mwz on master

    Update readme. (compare)

  • May 25 22:32

    mwz on v8.3.0

    (compare)

  • May 25 22:32

    mwz on master

    Setting version to 8.3.0. [ci s… Setting version to 8.4.0-SNAPSH… (compare)

  • May 25 22:19

    mwz on sonarqube-8.3

    (compare)

  • May 25 22:19

    mwz on master

    Update SonarQube to 8.3. (#459) (compare)

  • May 25 22:19
    mwz closed #459
  • May 25 22:19
    mwz closed #455
  • May 25 22:19
    mwz commented #211
  • May 25 22:07
    mwz edited #459
  • May 25 22:06
    mwz opened #459
  • May 25 22:06

    mwz on sonarqube-8.3

    Update SonarQube to 8.3. (compare)

  • May 25 22:06
    mwz closed #446
Michael Wizner
@mwz
Zulip and Discord are also good options
Martin Todorov
@carlspring
I haven't tried either, but might give them a go soon enough, because RocketChat is a bit buggy as well... :(
Yaroslav Derman
@yarosman
Hello. Have you ever had problems with showing failed test in sonar? For example, my Spec failed on some step, but in sonar I don't see specific failed test. I see only failed Spec file
Michael Wizner
@mwz
Hi @yarosman, this might be actually not implemented yet, but I'd need to double check. We might have left this out because it just doesn't make sense to have broken tests in your project.
Yaroslav Derman
@yarosman
It works, if you don't have integration tests. But in my case I have integration tests with third party side, and it would be much better to see failed test in sonar rather than somewhere in console
Michael Wizner
@mwz
Makes sense, could you raise an issue on Github?
Yaroslav Derman
@yarosman
Done
Michael Wizner
@mwz
Thanks
Luis Miguel Mejía Suárez
@BalmungSan
I must say, that I love the new logo :tada:
Michael Wizner
@mwz
Haha thanks, I hope you enjoy the new functionality too :smile:
Luis Miguel Mejía Suárez
@BalmungSan
Yeah, looking forward to using it once I return to my scala projects. On these days I have been doing Python for an "Analytical" project :disappointed:
Michael Wizner
@mwz
Python is ok, but personally I couldn’t take a long break from Scala!
I’ve been doing a bit of ML with Python recently outside of work and it it’s just shocking to me how everything is mutable and non-referentially transparent. Obviously, you don’t need those in Jupyter notebooks, but regardless mutating state still feels wrong to me :laughing:
@/all 7.8.0 was released with support for pull request decoration on Github. New docker images can be found as always here.
Luis Miguel Mejía Suárez
@BalmungSan
@mwz my two problems with Python are. The weak and dynamic type system, like I do not understand how people is capable of knowing what to do with their variables. And second, that even if everyone says that it is an easy language, every time I need to do something serious I need to do a lot of work and if I replicate that in Scala it becomes a few lines of more readable code. But yeah, Python libraries like Numpy are fantastic!
Michael Wizner
@mwz
yeah the entire ML ecosystem is focused around Python, although I’ve recently discovered this https://scalapy.dev and the bindings for tensorflow https://github.com/shadaj/scalapy-tensorflow - I haven’t tried it yet but it looks promising
and recently released Polynote which is a notebook with Scala support makes it easy to mix Python and Scala https://polynote.org
Luis Miguel Mejía Suárez
@BalmungSan
Cool!
Luis Miguel Mejía Suárez
@BalmungSan
@mwz I was thinking that probably it would be better to drop the sbt-sonar gitter room and just leave this.
Since you already move the documentation to the same micro-site.
Also, what about creating a github org with all the related repos.
Michael Wizner
@mwz
yeah, I’m planning to do all of that :sweat_smile:
Luis Miguel Mejía Suárez
@BalmungSan
Haha, yeah a lot of work going on these days.
Thanks for all this :smile:
Michael Wizner
@mwz
;) also next on my list is forking and sorting out Scalastyle - I want to add 2.13 support
this PR has perfect timing scalastyle/scalastyle#353
Luis Miguel Mejía Suárez
@BalmungSan
:tada:
Michael Wizner
@mwz
@/all sonar-scala has a website now, so make sure you check it out - https://sonar-scala.com
Michael Wizner
@mwz
@/all sonar-scala 8.0 was released with support for SonarQube 8.1. New docker images can be found as always here.
Lamine Bourib
@Mr_Bou_gitlab
Hi all,
I am using the sonar scala-Plugin. I have problems with the upload of the coverage report to our sonar qube server.
I performed theses steps:
sbt coverage test coverageReport sbt sonar
Here's my mapping:
sonarProperties ++= Map( "sonar.host.url" -> "localhost", "sonar.java.source" -> "src/main/java", "sonar.scala.version" -> "2.12", "sonar.sources" -> "src/main/scala", "sonar.tests" -> "src/test/scala", "sonar.scala.scoverage.reportPath" -> "target/scala-2.12/scoverage-report/scoverage.xml", "sonar.coverageReportPaths" -> "target/scala-2.12/scoverage-report/scoverage.xml", "sonar.coverage.jacoco.xmlReportPaths" -> "target/scala-2.12/scoverage-report/scoverage.xml", "sonar.scala.scapegoat.reportPath" -> "target/scala-2.12/scapegoat-report/scapegoat.xml", "sonar.junit.reportsPath" -> "target/scala-2.12/test-reports", "sonar.jacoco.reportPaths" -> "target/scala-2.12/scoverage-report/scoverage.xml", "sonar.projectKey" -> s"${name.value.split("\\s+").mkString}" )
I appreciate any help.
Lamine Bourib
@Mr_Bou_gitlab
I solved it. I was using the wrong sonar qube server version. Thx for your great tool for scala.
Michael Wizner
@mwz
welcome @Mr_Bou_gitlab :wave: glad you fixed it
Robby Kiskanyan
@robbyki
Despite having all of my sonar properties in build.sbt my sonarScan run is still failing after looking for the report here target/scala-2.11/scoverage-report/scoverage.xml even when show sonarProperties shows sonar.scala.scoverage.reportPath -> target/scala-2.12/scoverage-report/scoverage.xml. How can that be possible? I have "sonar.scala.version" -> "2.12" in properties.
Michael Wizner
@mwz
hey @robbyki, that sounds strange, can you try running sonarScan in a verbose mode and update your issue with the output?
sbt -Dsonar.verbose=true sonarScan
Robby Kiskanyan
@robbyki
yeah. it's really perplexing. Just went through the output and it looks great until it just gets to Importing coverage from /target/scala-2.11/scoverage-report/scoverage.xml followed by java.io.FileNotFoundException
Robby Kiskanyan
@robbyki
My full properites look like this:
val coverageReport = "target/scala-2.12/scoverage-report/scoverage.xml"
lazy val sonarSettings: Map[String, String] = Map(
  "sonar.host.url"                   -> sonarUrl,
  "sonar.login"                      -> sonarToken,
  "sonar.scala.version"              -> "2.12",
  "sonar.scala.scoverage.reportPath" -> s"$coverageReport",
  "sonar.coverageReportPaths"        -> s"$coverageReport",
  "sonar.projectName"                -> "<projectNm>",
  "sonar.projectKey"                 -> "<projectKey>",
  "sonar.modules"                    -> "module1,module2,module3,module4",
  "module1.sonar.projectName"        -> "Module1",
  "module2.sonar.projectName"        -> "Module2",
  "module3.sonar.projectName"        -> "Module3",
  "module4.sonar.projectName"        -> "Module4",
  "sonar.sources"                    -> "src/main/scala",
  "sonar.tests"                      -> "src/test/scala",
  "sonar.projectVersion"             -> "1.0.0",
  "sonar.sourceEncoding"             -> "UTF-8"
)
Michael Wizner
@mwz
Sounds like you’re using SonarScala, (not sonar-scala) which uses some different config properties
there is a WIP PR mwz/sbt-sonar#45 attempting to address that and make it compatible with SonarScala, but for now you’ll need to check the docs and set those properties yourself:
  • sonar.scala.scalastyle.reportPaths
  • sonar.scala.scapegoat.reportPaths
  • sonar.coverageReportPaths
Robby Kiskanyan
@robbyki
thanks @mwz
Michael Wizner
@mwz
I think that’s what the issue is
np
Robby Kiskanyan
@robbyki
I've been using sbt-sonar plugin which has been working for me with 2.11 but I recently upgraded to 2.12. Also the actual page from that link has a chat which links to here. that is slightly confusing.
Michael Wizner
@mwz
yeah sorry, I kind of repurposed this channel for both since it’s a bit more active (or has more people in it) but yeah I appreciate that you might be using one without the other :)
Robby Kiskanyan
@robbyki
got it. yeah. my company just manages the server and the plugins and I just manage an sbt project to upload the reports.
Michael Wizner
@mwz
:+1:
Robby Kiskanyan
@robbyki
@mwz in general and in terms of static analysis, how does the sonar-scala plugin using scalariform differ from the static analysis scanner we currently have in sonar? https://docs.sonarqube.org/latest/analysis/languages/scala/
Michael Wizner
@mwz
I wrote about this briefly some time ago, but haven’t done any recent comparison
https://github.com/mwz/sonar-scala/issues/179#issuecomment-477719803
on top of that from the most recent features the most significant one is pull request decoration which is available in sonar-scala for free (in comparison with SonarScala), you can read more about it on the website https://sonar-scala.com/docs/setup/pr-decoration
wei
@wei73905946_twitter
Hi all, just a qq, how do I configure SonarQube dashboard to show statement coverage and branch coverage for scala projects, https://sonar-scala.com/docs/about/supported-metrics
Michael Wizner
@mwz
@wei73905946_twitter You need to configure scoverage in your project, you can find an example on the website https://sonar-scala.com/docs/setup/getting-started#quick-start
wei
@wei73905946_twitter
Yes, I follows the instruction on the website. I also looked at all projects here: https://sonar.sonar-scala.com/projects?sort=-analysis_date
only sonar-scala-lts project have statement coverage, all other scala project don't
Michael Wizner
@mwz
you’re right, statement coverage seems to be missing there - thanks for reporting, I’ll have a look
wei
@wei73905946_twitter
thanks Michael
wei
@wei73905946_twitter
@mwz any updates on the issue of missing statement coverage? It will be great if you have ETA, thanks
Michael Wizner
@mwz
no updates yet I'm afraid, feel free to raise an issue on GitHub and I'll let you know there once I know more
wei
@wei73905946_twitter