superlint/TEMPLATES/.scalafmt.conf
Marco Ferrari 38dd638c34
build: automatically set scalafmt version (#6024)
Automatically append the 'version' configuration parameter to the
scalafmt configuration file when building the image instead of using a
GitHub Actions workflow to keep the scalafmt configuration file up to
date. This makes the building process more reproducible and
self-contained in the Dockerfile, and it also avoid stalling Dependabot
PRs that update scalafmt because when there are automatically added
commits to a PR, they block triggering workflows for that PR.
2024-08-14 12:03:36 +02:00

11 lines
450 B
Text

// Scala Format Configuration
// https://scalameta.org/scalafmt/docs/configuration.html
align.preset = more
maxColumn = 80
// https://scalameta.org/scalafmt/docs/configuration.html#scala-dialects
runner.dialect = scala3
// The version parameter is required to be specified explicitly
// Ref: https://scalameta.org/scalafmt/docs/configuration.html#version
// It will be added at the end of this file when building the Super-linter
// container image