From f41e283af63261b2c463abebb2e46d1704afa956 Mon Sep 17 00:00:00 2001
From: Vincent Lafeychine <vincent.lafeychine@gmail.com>
Date: Tue, 1 Feb 2022 19:53:08 +0100
Subject: [PATCH] Add scalafmt formatter + build

---
 .scalafmt.conf           | 12 ++++++++++++
 build.sbt                |  5 +++++
 project/build.properties |  1 +
 3 files changed, 18 insertions(+)
 create mode 100644 .scalafmt.conf
 create mode 100644 build.sbt
 create mode 100644 project/build.properties

diff --git a/.scalafmt.conf b/.scalafmt.conf
new file mode 100644
index 0000000..ccddde2
--- /dev/null
+++ b/.scalafmt.conf
@@ -0,0 +1,12 @@
+# https://diamantidis.github.io/2020/05/17/ci-with-github-actions-for-scala-project
+version = "3.3.0"
+
+runner.dialect = scala3
+rewrite.scala3.convertToNewSyntax = true
+
+maxColumn = 120
+
+indent.main = 4
+indent.callSite = 4
+
+project.git = true
diff --git a/build.sbt b/build.sbt
new file mode 100644
index 0000000..3814790
--- /dev/null
+++ b/build.sbt
@@ -0,0 +1,5 @@
+lazy val root = (project in file("."))
+  .settings(
+    name := "prog-2",
+    scalaVersion := "3.1.0"
+  )
diff --git a/project/build.properties b/project/build.properties
new file mode 100644
index 0000000..9edb75b
--- /dev/null
+++ b/project/build.properties
@@ -0,0 +1 @@
+sbt.version=1.5.4
-- 
GitLab