Skip to content

C

Linters

Linter Configuration key
dotnet-format CSHARP

Linted files

  • File extensions:
    • .cs

Configuration in Mega-Linter

Variable Description Default value
CSHARP_FILTER_REGEX_INCLUDE Custom regex including filter
CSHARP_FILTER_REGEX_EXCLUDE Custom regex excluding filter

Behind the scenes

Installation

  • Dockerfile commands :
RUN wget --tries=5 -O dotnet-install.sh https://dot.net/v1/dotnet-install.sh \
    && chmod +x dotnet-install.sh \
    && ./dotnet-install.sh --install-dir /usr/share/dotnet -channel Current -version latest

ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"