Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Scala 2.13.12 to version mapping #171

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sbt-scapegoat
=============

[![plugin release badge]][plugin release link]
![plugin release badge]

sbt-scapegoat is a plugin for SBT that integrates the scapegoat [static code analysis library](http://en.wikipedia.org/wiki/Static_program_analysis). Find out more about scapegoat at the [scapegoat project page](https://github.com/sksamuel/scapegoat).

Expand All @@ -16,7 +16,7 @@ sbt-scapegoat is an [auto plugin](https://typesafe.com/blog/preview-of-upcoming-
Add the plugin to your build with the following in project/plugins.sbt:

```scala
addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.1.1") // Verify latest in badge above
addSbtPlugin("com.sksamuel.scapegoat" %% "sbt-scapegoat" % "1.2.2") // Verify latest in badge above
```

The plugin has a default Scapegoat version depending on the Scala version you are using.
Expand Down Expand Up @@ -143,6 +143,6 @@ Please note that scapegoat is a new project. While it's been tested on some comm
If you have an error please do report it, but it would be helpful if the issues were logged at the [scapegoat](https://github.com/sksamuel/scapegoat) issues page, unless the bug is directly related to the plugin. Eg, inspection false positives or false negatives are errors in the scalac compiler plugin, not the sbt plugin.


[plugin release badge]: https://maven-badges.herokuapp.com/maven-central/com.sksamuel.scapegoat/sbt-scapegoat/badge.svg?subject=Latest%20Plugin%20Release&color=yellowgreen
[plugin release badge]: https://img.shields.io/github/v/tag/scapegoat-scala/sbt-scapegoat?label=Latest%20Release
[plugin release link]: https://maven-badges.herokuapp.com/maven-central/com.sksamuel.scapegoat/sbt-scapegoat
[scapegoat release badge]: https://maven-badges.herokuapp.com/maven-central/com.sksamuel.scapegoat/scalac-scapegoat-plugin_2.13.6/badge.svg?subject=Latest%20scapegoat&color=yellowgreen
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ object ScapegoatSbtPlugin extends AutoPlugin {
val selectedScapegoatVersion = (scapegoatVersion ?).value.getOrElse {
scalaVersion.value match {
// To give a better out of the box experience, default to a recent version of Scapegoat for known Scala versions
case "2.13.11" | "2.13.10" | "2.12.18" | "2.12.17" => "2.1.2"
case "2.13.12" | "2.13.11" => "2.1.3"
case "2.13.10" | "2.12.18" | "2.12.17" => "2.1.2"
case "2.13.9" | "2.12.16" => "2.1.1"
// Default to the latest version with Scala 2.11 support to improve apparent compatibility
case _ => "1.4.17"
Expand Down