Skip to content

dotnet Mega-Linter Flavor

Docker Image Size (tag) Docker Pulls

Description

Optimized for C, C++, C# or VB based projects

Usage

  • GitHub Action: nvuillam/mega-linter/flavors/dotnet@v4
  • Docker image: nvuillam/mega-linter-dotnet:v4
  • mega-linter-runner: mega-linter-runner --flavor dotnet

Embedded linters

Languages

Language Linter Configuration key Format/Fix
BASH bash-exec BASH_EXEC
shellcheck BASH_SHELLCHECK
shfmt BASH_SHFMT ✔
C cpplint C_CPPLINT
C++ (CPP) cpplint CPP_CPPLINT
C# (CSHARP) dotnet-format CSHARP_DOTNET_FORMAT ✔
GROOVY npm-groovy-lint GROOVY_NPM_GROOVY_LINT ✔
KOTLIN ktlint KOTLIN_KTLINT ✔
POWERSHELL powershell POWERSHELL_POWERSHELL
SQL sql-lint SQL_SQL_LINT
sqlfluff SQL_SQLFLUFF
Visual Basic .NET (VBDOTNET) dotnet-format VBDOTNET_DOTNET_FORMAT ✔

Formats

Format Linter Configuration key Format/Fix
CSS stylelint CSS_STYLELINT ✔
scss-lint CSS_SCSS_LINT
ENV dotenv-linter ENV_DOTENV_LINTER ✔
GRAPHQL graphql-schema-linter GRAPHQL_GRAPHQL_SCHEMA_LINTER
HTML htmlhint HTML_HTMLHINT
JSON jsonlint JSON_JSONLINT
eslint-plugin-jsonc JSON_ESLINT_PLUGIN_JSONC ✔
v8r JSON_V8R
prettier JSON_PRETTIER ✔
MARKDOWN markdownlint MARKDOWN_MARKDOWNLINT ✔
remark-lint MARKDOWN_REMARK_LINT ✔
markdown-link-check MARKDOWN_MARKDOWN_LINK_CHECK
markdown-table-formatter MARKDOWN_MARKDOWN_TABLE_FORMATTER ✔
PROTOBUF protolint PROTOBUF_PROTOLINT ✔
XML xmllint XML_XMLLINT
YAML prettier YAML_PRETTIER ✔
yamllint YAML_YAMLLINT
v8r YAML_V8R

Tooling formats

Tooling format Linter Configuration key Format/Fix
ANSIBLE ansible-lint ANSIBLE_ANSIBLE_LINT
ARM arm-ttk ARM_ARM_TTK
DOCKERFILE dockerfilelint DOCKERFILE_DOCKERFILELINT
hadolint DOCKERFILE_HADOLINT
EDITORCONFIG editorconfig-checker EDITORCONFIG_EDITORCONFIG_CHECKER
KUBERNETES kubeval KUBERNETES_KUBEVAL
OPENAPI spectral OPENAPI_SPECTRAL
SNAKEMAKE snakemake SNAKEMAKE_LINT
snakefmt SNAKEMAKE_SNAKEFMT ✔
TEKTON tekton-lint TEKTON_TEKTON_LINT

Other

Code quality checker Linter Configuration key Format/Fix
COPYPASTE jscpd COPYPASTE_JSCPD
GIT git_diff GIT_GIT_DIFF
SPELL misspell SPELL_MISSPELL ✔
cspell SPELL_CSPELL