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}"
RUN curl --retry-all-errors --retry 10 -fLo coursier https://git.io/coursier-cli && \
        chmod +x coursier