7
All C# (CSHARP) linters - MegaLinter by OX Security
source link: https://oxsecurity.github.io/megalinter/latest/descriptors/csharp/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Linters
Linter | Configuration key | Status |
---|---|---|
dotnet-format | CSHARP |
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 wget --tries=5 -q -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 5.0 -version latest
ENV PATH="${PATH}:/root/.dotnet/tools:/usr/share/dotnet"
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK