Skip to content

SCALA

Linters

Linter Additional
scalafix
SCALA_SCALAFIX
GitHub stars

Linted files

  • File extensions:
    • .scala

Configuration in MegaLinter

Variable Description Default value
SCALA_PRE_COMMANDS List of bash commands to run before the linters None
SCALA_POST_COMMANDS List of bash commands to run after the linters None
SCALA_FILTER_REGEX_INCLUDE Custom regex including filter
SCALA_FILTER_REGEX_EXCLUDE Custom regex excluding filter

Behind the scenes

Installation

  • Dockerfile commands :
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
# renovate: datasource=github-tags depName=coursier/coursier
ARG SCALA_COURSIER_VERSION=2.1.24
RUN curl --retry-all-errors --retry 10 -fLo coursier https://github.com/coursier/coursier/releases/download/v${SCALA_COURSIER_VERSION}/coursier.jar && \
        chmod +x coursier