Skip to content

C

Linters

Linter Additional
dotnet-format
CSHARP_DOTNET_FORMAT
GitHub stars formatter
csharpier
CSHARP_CSHARPIER
GitHub stars formatter
roslynator
CSHARP_ROSLYNATOR
GitHub stars formatter

Linted files

  • File extensions:
    • .cs

Configuration in MegaLinter

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 apk add --no-cache dotnet8-sdk --repository=https://dl-cdn.alpinelinux.org/alpine/edge/community
ENV PATH="${PATH}:/root/.dotnet/tools"