superlint/test/linters
2025-02-17 21:13:28 +01:00
..
ansible
arm chore: update arm test api version (#6485) 2025-01-10 18:38:28 +01:00
bash
bash_exec
checkov chore: fix checkov and sqlfluff tests (#6574) 2025-02-17 20:38:28 +01:00
clang_format
clojure
cloudformation
coffeescript
cpp chore: prepare tests for updates (#6279) 2024-11-14 15:29:44 +01:00
csharp
css
css_prettier feat: prettier for additional languages (#6025) 2024-08-15 11:46:02 +02:00
dart
dockerfile_hadolint
dotnet_sln_format_analyzers feat: lint and format dotnet solutions (#6039) 2024-08-16 16:23:52 +02:00
dotnet_sln_format_style feat: lint and format dotnet solutions (#6039) 2024-08-16 16:23:52 +02:00
dotnet_sln_format_whitespace feat: lint and format dotnet solutions (#6039) 2024-08-16 16:23:52 +02:00
editorconfig
env
gherkin
git_commitlint feat: lint commit messages with commitlint (#6118) 2024-09-19 08:53:13 +00:00
git_merge_conflict_markers fix: make git conflict markers check more precise (#6379) 2024-12-03 15:03:44 +00:00
github_actions
gitleaks
go
go_modules
go_releaser
google_java_format
graphql_prettier feat: prettier for additional languages (#6025) 2024-08-15 11:46:02 +02:00
groovy fix: downgrade npm-groovy-lint to 15.0.0 (#6373) 2024-11-27 11:57:54 +01:00
html
html_prettier feat: prettier for additional languages (#6025) 2024-08-15 11:46:02 +02:00
java
javascript_es
javascript_prettier
javascript_standard
jscpd
json
json_prettier feat: prettier for additional languages (#6025) 2024-08-15 11:46:02 +02:00
jsonc
jsonc_prettier feat: format JSONC and JSON5 with prettier (#6041) 2024-08-16 17:15:05 +02:00
jsx
jsx_prettier feat: prettier for additional languages (#6025) 2024-08-15 11:46:02 +02:00
jupyter_nbqa_black feat: add nbqa linter for jupyter notebooks (#6240) 2024-12-20 19:13:16 +00:00
jupyter_nbqa_flake8 feat: add nbqa linter for jupyter notebooks (#6240) 2024-12-20 19:13:16 +00:00
jupyter_nbqa_isort feat: add nbqa linter for jupyter notebooks (#6240) 2024-12-20 19:13:16 +00:00
jupyter_nbqa_mypy feat: add nbqa linter for jupyter notebooks (#6240) 2024-12-20 19:13:16 +00:00
jupyter_nbqa_pylint feat: add nbqa linter for jupyter notebooks (#6240) 2024-12-20 19:13:16 +00:00
jupyter_nbqa_ruff feat: add nbqa linter for jupyter notebooks (#6240) 2024-12-20 19:13:16 +00:00
kotlin
kubernetes_kubeconform
latex
lua
markdown
markdown_prettier feat: prettier for additional languages (#6025) 2024-08-15 11:46:02 +02:00
natural_language
openapi
perl
php_builtin
php_phpcs
php_phpstan
php_psalm
powershell
protobuf
python_black
python_flake8
python_isort
python_mypy
python_pyink feat: add pyink as a Python formatter (#6083) 2024-08-27 15:00:51 +00:00
python_pylint
python_ruff
r
raku
renovate
ruby
rust_2015
rust_2018
rust_2021
rust_clippy
scalafmt
shell_shfmt
snakemake_lint
snakemake_snakefmt
sqlfluff chore: fix sqlfluff test (#6579) 2025-02-17 21:13:28 +01:00
states
tekton
terraform_fmt
terraform_terrascan
terraform_tflint
terragrunt
tsx
typescript_es
typescript_prettier
typescript_standard
vue_prettier feat: prettier for additional languages (#6025) 2024-08-15 11:46:02 +02:00
xml
yaml
yaml_prettier feat: prettier for additional languages (#6025) 2024-08-15 11:46:02 +02:00
README.md

Test Cases

This directory contains test cases that super-linter uses to validate if a particular linter is working.

These test cases focus on how super-linter invokes each linter and their exit codes. We deliberately avoid to verify if the output of a given linter matches the expectations because it's the responsibility of each linter to do so.

Test case format

Each super-linter language should have its own directory, named after the language they refer to.

The name of each test case denotes its nature:

  • Test cases that are expected to pass validation contain the good string in their filename, or path. Example: markdown_good_5.md
  • Test cases that are expected to fail validation contain the bad string in their filename, or path. Example: markdown_bad_5.md

Notes about specific tests

In this section, we explain the peculiarities of certain test cases.

SQL Fluff test cases

From version 0.12.0 SQLFluff requires a dialect to be set, and no longer sets a default. This can be provided as a command-line argument, or a .sqlfluff config file (either in the usualy place for SQLFluff config files, or within the folder containg the SQL).

For SQLFluff we have added a default .sqlfluff config file in its test directory.

OpenAPI test cases

The _bad_ tests are valid .yml/.json but invalid OpenAPI specs. The test extensions used are .ymlopenapi/.jsonopenapi instead of .yml/.json. This is to prevent the YAML and JSON tests from picking them up.

ARM test cases

apiVersions older than 2 years (730 days) are treated as errors by the ARM linter if there is a newer version available.

Ansible test cases

roles/ghe-initialize is a valid Ansible role