/world-of-codecraft-scala

Scala implementation of the World of Codecraft Kata

Primary LanguageShell

Scala Kata Base

Scala CI Scala Steward badge

Starter project for Code Katas in Scala. Batteries included.

Included:

Installation

This project requires a JDK on your machine, as described in the .sdkmanrc. If you use sdkman cd into the root of this project and run:

sdk env install

to install it. You can also install them yourself.

The build tool (Sbt) and Scala are installed automatically by the wrapper script located at ./sbtx. It will grab the correct versions based off the project configuration.

Compile

./sbtx compile

Tests

Run tests once:

./sbtx test

Or in watch mode:

./sbtx ~test

Formatting

./sbtx scalafmtAll
./sbtx scalafixAll

Code Coverage

For generating a code coverage report run:

./sbtx clean coverage test coverageReport

Which generates a report in target/scala-2.13/scoverage-report.

Git Hooks

To install the git hooks run:

./hooks/install

IDE

If you're using Intellij, make sure you have the Scala plugin installed.