From 11f72b21cc0f124bbf73909039b7b6f31898239c Mon Sep 17 00:00:00 2001 From: Simon Thrane Date: Thu, 14 Dec 2023 07:57:25 +0100 Subject: [PATCH] Added scalafix --- .scalafix.conf | 16 ++++++++++++++++ pom.xml | 14 +++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .scalafix.conf diff --git a/.scalafix.conf b/.scalafix.conf new file mode 100644 index 0000000..a41d1f9 --- /dev/null +++ b/.scalafix.conf @@ -0,0 +1,16 @@ +rules = [ + ExplicitResultTypes, + RemoveUnused +] + +ExplicitResultTypes.rewriteStructuralTypesToNamedSubclass = false + +OrganizeImports.groupedImports = Explode +OrganizeImports.expandRelative = true +OrganizeImports.removeUnused = true +OrganizeImports.groups = [ + "re:javax?\\." + "scala." + "lspexample." + "*" +] \ No newline at end of file diff --git a/pom.xml b/pom.xml index 745a714..2d049a2 100644 --- a/pom.xml +++ b/pom.xml @@ -168,6 +168,11 @@ + + io.github.evis + scalafix-maven-plugin_2.13 + 0.1.8_0.11.0 + net.alchim31.maven @@ -182,6 +187,7 @@ + -Ywarn-unused -dependencyfile ${project.build.directory}/.scala_dependencies @@ -190,7 +196,13 @@ -Xms512m -Xmx4096m - + + + org.scalameta + semanticdb-scalac_2.13.12 + 4.8.14 + +