From 97c63fa38edc9ca761683625fc5997b6291db9e1 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Wed, 26 Jan 2022 23:40:00 +0100 Subject: [PATCH] [automation] Auto-update linters version, help and documentation (#1203) * [automation] Auto-update linters version, help and documentation * Remove downgrade of sqlfluff https://github.com/megalinter/megalinter/pull/1200 --- .automation/generated/flavors-stats.json | 64 +++++++++++++++++++ .automation/generated/linter-helps.json | 19 ++++-- .automation/generated/linter-versions.json | 6 +- CHANGELOG.md | 3 + Dockerfile | 2 +- docs/all_linters.md | 6 +- docs/descriptors/go_golangci_lint.md | 4 +- docs/descriptors/python_bandit.md | 4 +- docs/descriptors/python_flake8.md | 4 +- docs/descriptors/sql_sqlfluff.md | 11 +++- docs/descriptors/terraform_checkov.md | 11 +++- docs/installation.md | 4 +- flavors/dart/Dockerfile | 2 +- flavors/documentation/Dockerfile | 2 +- flavors/dotnet/Dockerfile | 2 +- flavors/go/Dockerfile | 2 +- flavors/java/Dockerfile | 2 +- flavors/javascript/Dockerfile | 2 +- flavors/php/Dockerfile | 2 +- flavors/python/Dockerfile | 2 +- flavors/ruby/Dockerfile | 2 +- flavors/rust/Dockerfile | 2 +- flavors/salesforce/Dockerfile | 2 +- flavors/scala/Dockerfile | 2 +- flavors/swift/Dockerfile | 2 +- flavors/terraform/Dockerfile | 2 +- .../descriptors/sql.megalinter-descriptor.yml | 3 +- 27 files changed, 131 insertions(+), 38 deletions(-) diff --git a/.automation/generated/flavors-stats.json b/.automation/generated/flavors-stats.json index 5cf2b4ffbaa..a455b112ad7 100644 --- a/.automation/generated/flavors-stats.json +++ b/.automation/generated/flavors-stats.json @@ -511,6 +511,10 @@ [ "2022-01-25T07:19:01", 2426950 + ], + [ + "2022-01-26T01:45:09", + 2427753 ] ], "ci_light": [ @@ -1025,6 +1029,10 @@ [ "2022-01-25T07:19:01", 6703 + ], + [ + "2022-01-26T01:45:09", + 6711 ] ], "dart": [ @@ -1539,6 +1547,10 @@ [ "2022-01-25T07:19:01", 1984 + ], + [ + "2022-01-26T01:45:09", + 2003 ] ], "documentation": [ @@ -2053,6 +2065,10 @@ [ "2022-01-25T07:19:01", 32996 + ], + [ + "2022-01-26T01:45:09", + 33612 ] ], "dotnet": [ @@ -2567,6 +2583,10 @@ [ "2022-01-25T07:19:01", 271425 + ], + [ + "2022-01-26T01:45:09", + 271750 ] ], "go": [ @@ -3081,6 +3101,10 @@ [ "2022-01-25T07:19:01", 7322 + ], + [ + "2022-01-26T01:45:09", + 7372 ] ], "java": [ @@ -3595,6 +3619,10 @@ [ "2022-01-25T07:19:01", 53057 + ], + [ + "2022-01-26T01:45:09", + 53346 ] ], "javascript": [ @@ -4109,6 +4137,10 @@ [ "2022-01-25T07:19:01", 77843 + ], + [ + "2022-01-26T01:45:09", + 78542 ] ], "php": [ @@ -4623,6 +4655,10 @@ [ "2022-01-25T07:19:01", 3769 + ], + [ + "2022-01-26T01:45:09", + 3785 ] ], "python": [ @@ -5137,6 +5173,10 @@ [ "2022-01-25T07:19:01", 49123 + ], + [ + "2022-01-26T01:45:09", + 49529 ] ], "ruby": [ @@ -5647,6 +5687,10 @@ [ "2022-01-25T07:19:01", 1775 + ], + [ + "2022-01-26T01:45:09", + 1778 ] ], "rust": [ @@ -6157,6 +6201,10 @@ [ "2022-01-25T07:19:01", 1509 + ], + [ + "2022-01-26T01:45:09", + 1512 ] ], "salesforce": [ @@ -6671,6 +6719,10 @@ [ "2022-01-25T07:19:01", 9990 + ], + [ + "2022-01-26T01:45:09", + 10009 ] ], "scala": [ @@ -7181,6 +7233,10 @@ [ "2022-01-25T07:19:01", 1354 + ], + [ + "2022-01-26T01:45:09", + 1366 ] ], "swift": [ @@ -7691,6 +7747,10 @@ [ "2022-01-25T07:19:01", 1402 + ], + [ + "2022-01-26T01:45:09", + 1407 ] ], "terraform": [ @@ -8205,6 +8265,10 @@ [ "2022-01-25T07:19:01", 33803 + ], + [ + "2022-01-26T01:45:09", + 34037 ] ] } \ No newline at end of file diff --git a/.automation/generated/linter-helps.json b/.automation/generated/linter-helps.json index 111a0e17dc3..c15e3085dac 100644 --- a/.automation/generated/linter-helps.json +++ b/.automation/generated/linter-helps.json @@ -259,6 +259,8 @@ " B505 weak_cryptographic_key", " B506 yaml_load", " B507 ssh_no_host_key_verification", + " B508 snmp_insecure_version", + " B509 snmp_weak_cryptography", " B601 paramiko_calls", " B602 subprocess_popen_with_shell_equals_true", " B603 subprocess_without_shell_equals_true", @@ -471,6 +473,8 @@ " [--repo-root-for-plan-enrichment REPO_ROOT_FOR_PLAN_ENRICHMENT]", " [--config-file CONFIG_FILE] [--create-config CREATE_CONFIG]", " [--show-config] [--create-baseline] [--baseline BASELINE]", + " [--min-cve-severity {critical,high,medium,low,none}]", + " [--skip-cve-package SKIP_CVE_PACKAGE]", " [-s | --soft-fail-on SOFT_FAIL_ON | --hard-fail-on HARD_FAIL_ON]", "", "Infrastructure as code static analysis", @@ -589,6 +593,13 @@ " results with a known baseline. Report will include", " only failed checks that are new with respect to the", " provided baseline", + " --min-cve-severity {critical,high,medium,low,none}", + " Set minimum severity that will cause returning non-", + " zero exit code", + " --skip-cve-package SKIP_CVE_PACKAGE", + " filter scan to run on all packages but a specific", + " package identifier (denylist), You can specify this", + " argument multiple times to skip multiple packages", " -s, --soft-fail Runs checks but suppresses error code", " --soft-fail-on SOFT_FAIL_ON", " Exits with a 0 exit code for specified checks. You can", @@ -1382,8 +1393,8 @@ " of opening bracket's line.", " --ignore errors Comma-separated list of errors and warnings to ignore", " (or skip). For example, ``--ignore=E4,E51,W234``.", - " (Default: ['E226', 'E126', 'E24', 'W503', 'E704',", - " 'W504', 'E121', 'E123'])", + " (Default: ['W504', 'E24', 'E123', 'W503', 'E126',", + " 'E226', 'E704', 'E121'])", " --extend-ignore errors", " Comma-separated list of errors and warnings to add to", " the list of ignored ones. For example, ``--extend-", @@ -1508,7 +1519,7 @@ "", "Available Commands:", " cache Cache control and information", - " completion generate the autocompletion script for the specified shell", + " completion Generate the autocompletion script for the specified shell", " config Config", " help Help", " linters List current linters configuration", @@ -6670,7 +6681,7 @@ " -h, --help display help for command" ], "sqlfluff": [ - "Usage: python -m sqlfluff [OPTIONS] COMMAND [ARGS]...", + "Usage: sqlfluff [OPTIONS] COMMAND [ARGS]...", "", " Sqlfluff is a modular sql linter for humans.", "", diff --git a/.automation/generated/linter-versions.json b/.automation/generated/linter-versions.json index b71c8011951..4ae1ce569cf 100644 --- a/.automation/generated/linter-versions.json +++ b/.automation/generated/linter-versions.json @@ -2,11 +2,11 @@ "actionlint": "1.6.8", "ansible-lint": "0.0.0", "arm-ttk": "0.0.0", - "bandit": "1.7.1", + "bandit": "1.7.2", "bash-exec": "5.1.0", "black": "21.12", "cfn-lint": "0.57.0", - "checkov": "2.0.754", + "checkov": "2.0.763", "checkstyle": "9.2.1", "chktex": "1.7.6", "clippy": "0.1.58", @@ -24,7 +24,7 @@ "flake8": "4.0.1", "gherkin-lint": "0.0.0", "git_diff": "2.30.2", - "golangci-lint": "1.43.0", + "golangci-lint": "1.44.0", "graphql-schema-linter": "2.0.1", "hadolint": "2.7.0", "htmlhint": "1.1.1", diff --git a/CHANGELOG.md b/CHANGELOG.md index b09c14f9010..8c73b4d1b56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,9 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l - [checkov](https://www.checkov.io/) from 2.0.746 to **2.0.749** on 2022-01-24 - [dotenv-linter](https://dotenv-linter.github.io/) from 3.1.1 to **3.2.0** on 2022-01-24 - [checkov](https://www.checkov.io/) from 2.0.749 to **2.0.754** on 2022-01-24 + - [golangci-lint](https://golangci-lint.run/) from 1.43.0 to **1.44.0** on 2022-01-26 + - [bandit](https://bandit.readthedocs.io/en/latest/) from 1.7.1 to **1.7.2** on 2022-01-26 + - [checkov](https://www.checkov.io/) from 2.0.754 to **2.0.763** on 2022-01-26 ## [v5.6.0] - 2022-01-22 diff --git a/Dockerfile b/Dockerfile index 9f0c0ca64cf..600d07ea197 100644 --- a/Dockerfile +++ b/Dockerfile @@ -149,7 +149,7 @@ RUN pip3 install --no-cache-dir --upgrade \ 'rstfmt' \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/docs/all_linters.md b/docs/all_linters.md index 585379aaf18..4c55b6f61cd 100644 --- a/docs/all_linters.md +++ b/docs/all_linters.md @@ -8,11 +8,11 @@ | [**actionlint**](https://github.com/rhysd/actionlint){target=_blank} | 1.6.8 | [MIT](licenses/actionlint.md) | [ACTION](descriptors/action_actionlint.md) | :white_circle: | [Repository](https://github.com/rhysd/actionlint){target=_blank} | | [**ansible-lint**](https://github.com/ansible/ansible-lint){target=_blank} | N/A | [MIT](licenses/ansible-lint.md) | [ANSIBLE](descriptors/ansible_ansible_lint.md) | :white_circle: | [Repository](https://github.com/ansible/ansible-lint){target=_blank} | | [**arm-ttk**](https://github.com/Azure/arm-ttk){target=_blank} | N/A | | [ARM](descriptors/arm_arm_ttk.md) | :white_circle: | [Web Site](https://github.com/Azure/arm-ttk){target=_blank} | -| [**bandit**](https://github.com/PyCQA/bandit){target=_blank} | 1.7.1 | [Apache-2.0](licenses/bandit.md) | [PYTHON](descriptors/python_bandit.md) | :white_circle: | [Repository](https://github.com/PyCQA/bandit){target=_blank} | +| [**bandit**](https://github.com/PyCQA/bandit){target=_blank} | 1.7.2 | [Apache-2.0](licenses/bandit.md) | [PYTHON](descriptors/python_bandit.md) | :white_circle: | [Repository](https://github.com/PyCQA/bandit){target=_blank} | | [**bash-exec**](https://tiswww.case.edu/php/chet/bash/bashtop.html){target=_blank} | 5.1.0 | | [BASH](descriptors/bash_bash_exec.md) | | [Web Site](https://tiswww.case.edu/php/chet/bash/bashtop.html){target=_blank} | | [**black**](https://github.com/psf/black){target=_blank} | 21.12 | [MIT](licenses/black.md) | [PYTHON](descriptors/python_black.md) | :white_circle: | [Repository](https://github.com/psf/black){target=_blank} | | [**cfn-lint**](https://github.com/martysweet/cfn-lint){target=_blank} | 0.57.0 | | [CLOUDFORMATION](descriptors/cloudformation_cfn_lint.md) | :white_circle: | [Web Site](https://github.com/martysweet/cfn-lint){target=_blank} | -| [**checkov**](https://github.com/bridgecrewio/checkov){target=_blank} | 2.0.754 | [Apache-2.0](licenses/checkov.md) | [TERRAFORM](descriptors/terraform_checkov.md) | :no_entry_sign: | [Repository](https://github.com/bridgecrewio/checkov){target=_blank} | +| [**checkov**](https://github.com/bridgecrewio/checkov){target=_blank} | 2.0.763 | [Apache-2.0](licenses/checkov.md) | [TERRAFORM](descriptors/terraform_checkov.md) | :no_entry_sign: | [Repository](https://github.com/bridgecrewio/checkov){target=_blank} | | [**checkstyle**](https://github.com/checkstyle/checkstyle){target=_blank} | 9.2.1 | [Other](licenses/checkstyle.md) | [JAVA](descriptors/java_checkstyle.md) | :heart: | [MegaLinter reference](https://checkstyle.sourceforge.io/index.html#Related_Tools_Active_Tools){target=_blank} | | [**chktex**](https://www.nongnu.org/chktex){target=_blank} | 1.7.6 | | [LATEX](descriptors/latex_chktex.md) | :white_circle: | [Web Site](https://www.nongnu.org/chktex){target=_blank} | | [**clippy**](https://github.com/rust-lang/rust-clippy){target=_blank} | 0.1.58 | | [RUST](descriptors/rust_clippy.md) | :white_circle: | [Web Site](https://github.com/rust-lang/rust-clippy){target=_blank} | @@ -30,7 +30,7 @@ | [**flake8**](https://github.com/PyCQA/flake8){target=_blank} | 4.0.1 | [Other](licenses/flake8.md) | [PYTHON](descriptors/python_flake8.md) | :white_circle: | [Repository](https://github.com/PyCQA/flake8){target=_blank} | | [**gherkin-lint**](https://github.com/vsiakka/gherkin-lint){target=_blank} | N/A | | [GHERKIN](descriptors/gherkin_gherkin_lint.md) | :white_circle: | [Web Site](https://github.com/vsiakka/gherkin-lint){target=_blank} | | [**git_diff**](https://github.com/git/git){target=_blank} | 2.30.2 | [Other](licenses/git_diff.md) | [GIT](descriptors/git_git_diff.md) | | [Repository](https://github.com/git/git){target=_blank} | -| [**golangci-lint**](https://github.com/golangci/golangci-lint){target=_blank} | 1.43.0 | [GPL-3.0](licenses/golangci-lint.md) | [GO](descriptors/go_golangci_lint.md) | :white_circle: | [Repository](https://github.com/golangci/golangci-lint){target=_blank} | +| [**golangci-lint**](https://github.com/golangci/golangci-lint){target=_blank} | 1.44.0 | [GPL-3.0](licenses/golangci-lint.md) | [GO](descriptors/go_golangci_lint.md) | :white_circle: | [Repository](https://github.com/golangci/golangci-lint){target=_blank} | | [**graphql-schema-linter**](https://github.com/cjoudrey/graphql-schema-linter){target=_blank} | 2.0.1 | | [GRAPHQL](descriptors/graphql_graphql_schema_linter.md) | :hammer_and_wrench: | [Pull Request](https://github.com/cjoudrey/graphql-schema-linter/pull/272){target=_blank} | | [**hadolint**](https://github.com/hadolint/hadolint){target=_blank} | 2.7.0 | | [DOCKERFILE](descriptors/dockerfile_hadolint.md) | :heart: | [MegaLinter reference](https://github.com/hadolint/hadolint/blob/master/docs/INTEGRATION.md#mega-linter){target=_blank} | | [**htmlhint**](https://github.com/htmlhint/HTMLHint){target=_blank} | 1.1.1 | [MIT](licenses/htmlhint.md) | [HTML](descriptors/html_htmlhint.md) | :heart: | [MegaLinter reference](https://htmlhint.com/docs/user-guide/integrations/task-runner){target=_blank} | diff --git a/docs/descriptors/go_golangci_lint.md b/docs/descriptors/go_golangci_lint.md index c3ef4d99ecd..6c05f12b4f1 100644 --- a/docs/descriptors/go_golangci_lint.md +++ b/docs/descriptors/go_golangci_lint.md @@ -9,7 +9,7 @@ ## golangci-lint documentation -- Version in MegaLinter: **1.43.0** +- Version in MegaLinter: **1.44.0** - Visit [Official Web Site](https://golangci-lint.run/){target=_blank} - See [How to configure golangci-lint rules](https://golangci-lint.run/usage/configuration/#config-file){target=_blank} - If custom `.golangci.yml` config file is not found, [.golangci.yml](https://github.com/megalinter/megalinter/tree/main/TEMPLATES/.golangci.yml){target=_blank} will be used @@ -95,7 +95,7 @@ Usage: Available Commands: cache Cache control and information - completion generate the autocompletion script for the specified shell + completion Generate the autocompletion script for the specified shell config Config help Help linters List current linters configuration diff --git a/docs/descriptors/python_bandit.md b/docs/descriptors/python_bandit.md index d329b93e21c..de723699f5a 100644 --- a/docs/descriptors/python_bandit.md +++ b/docs/descriptors/python_bandit.md @@ -13,7 +13,7 @@ If you find it too harsh, you may define `PYTHON_BANDIT_DISABLE_ERRORS: true` in ## bandit documentation -- Version in MegaLinter: **1.7.1** +- Version in MegaLinter: **1.7.2** - Visit [Official Web Site](https://bandit.readthedocs.io/en/latest/){target=_blank} - See [How to configure bandit rules](https://bandit.readthedocs.io/en/latest/config.html#){target=_blank} - If custom `.bandit.yml` config file is not found, [.bandit.yml](https://github.com/megalinter/megalinter/tree/main/TEMPLATES/.bandit.yml){target=_blank} will be used @@ -242,6 +242,8 @@ The following tests were discovered and loaded: B505 weak_cryptographic_key B506 yaml_load B507 ssh_no_host_key_verification + B508 snmp_insecure_version + B509 snmp_weak_cryptography B601 paramiko_calls B602 subprocess_popen_with_shell_equals_true B603 subprocess_without_shell_equals_true diff --git a/docs/descriptors/python_flake8.md b/docs/descriptors/python_flake8.md index 2586aec8f2f..926095aedfc 100644 --- a/docs/descriptors/python_flake8.md +++ b/docs/descriptors/python_flake8.md @@ -124,8 +124,8 @@ optional arguments: of opening bracket's line. --ignore errors Comma-separated list of errors and warnings to ignore (or skip). For example, ``--ignore=E4,E51,W234``. - (Default: ['E226', 'E126', 'E24', 'W503', 'E704', - 'W504', 'E121', 'E123']) + (Default: ['W504', 'E24', 'E123', 'W503', 'E126', + 'E226', 'E704', 'E121']) --extend-ignore errors Comma-separated list of errors and warnings to add to the list of ignored ones. For example, ``--extend- diff --git a/docs/descriptors/sql_sqlfluff.md b/docs/descriptors/sql_sqlfluff.md index ad7086a7ef3..589059c2214 100644 --- a/docs/descriptors/sql_sqlfluff.md +++ b/docs/descriptors/sql_sqlfluff.md @@ -3,7 +3,7 @@
- sqlfluff + sqlfluff
@@ -12,6 +12,7 @@ - Version in MegaLinter: **0.9.1** - Visit [Official Web Site](https://www.sqlfluff.com/){target=_blank} - See [How to configure sqlfluff rules](https://docs.sqlfluff.com/en/stable/configuration.html){target=_blank} + - If custom `.sqlfluff` config file is not found, [.sqlfluff](https://github.com/megalinter/megalinter/tree/main/TEMPLATES/.sqlfluff){target=_blank} will be used - See [Index of problems detected by sqlfluff](https://docs.sqlfluff.com/en/stable/rules.html){target=_blank} [![sqlfluff - GitHub](https://gh-card.dev/repos/sqlfluff/sqlfluff.svg?fullname=)](https://github.com/sqlfluff/sqlfluff){target=_blank} @@ -31,7 +32,7 @@ | SQL_SQLFLUFF_FILE_NAMES_REGEX | File name regex filters. Regular expression list for filtering files by their base names using regex full match. Empty list includes all files
Ex: `["Dockerfile(-.+)?", "Jenkinsfile"]` | Include every file | | SQL_SQLFLUFF_PRE_COMMANDS | List of bash commands to run before the linter | None | | SQL_SQLFLUFF_POST_COMMANDS | List of bash commands to run after the linter | None | -| SQL_SQLFLUFF_CONFIG_FILE | sqlfluff configuration file name
Use `LINTER_DEFAULT` to let the linter find it | `setup.cfg` | +| SQL_SQLFLUFF_CONFIG_FILE | sqlfluff configuration file name
Use `LINTER_DEFAULT` to let the linter find it | `.sqlfluff` | | SQL_SQLFLUFF_RULES_PATH | Path where to find linter configuration file | Workspace folder, then MegaLinter default rules | | SQL_SQLFLUFF_DISABLE_ERRORS | Run linter but consider errors as warnings | `false` | | SQL_SQLFLUFF_DISABLE_ERRORS_IF_LESS_THAN | Maximum number of errors allowed | `0` | @@ -76,11 +77,15 @@ This linter is available in the following flavours sqlfluff myfile.sql ``` +```shell +sqlfluff --config .sqlfluff myfile.sql myfile2.sql +``` + ### Help content ```shell -Usage: python -m sqlfluff [OPTIONS] COMMAND [ARGS]... +Usage: sqlfluff [OPTIONS] COMMAND [ARGS]... Sqlfluff is a modular sql linter for humans. diff --git a/docs/descriptors/terraform_checkov.md b/docs/descriptors/terraform_checkov.md index 9e8e8e2c43c..34e970e704b 100644 --- a/docs/descriptors/terraform_checkov.md +++ b/docs/descriptors/terraform_checkov.md @@ -9,7 +9,7 @@ ## checkov documentation -- Version in MegaLinter: **2.0.754** +- Version in MegaLinter: **2.0.763** - Visit [Official Web Site](https://www.checkov.io/){target=_blank} - See [How to disable checkov rules in files](https://www.checkov.io/2.Basics/Suppressing%20and%20Skipping%20Policies.html){target=_blank} - See [Index of problems detected by checkov](https://www.checkov.io/5.Policy%20Index/all.html){target=_blank} @@ -94,6 +94,8 @@ usage: checkov [-h] [-v] [-d DIRECTORY] [--add-check] [-f FILE] [--repo-root-for-plan-enrichment REPO_ROOT_FOR_PLAN_ENRICHMENT] [--config-file CONFIG_FILE] [--create-config CREATE_CONFIG] [--show-config] [--create-baseline] [--baseline BASELINE] + [--min-cve-severity {critical,high,medium,low,none}] + [--skip-cve-package SKIP_CVE_PACKAGE] [-s | --soft-fail-on SOFT_FAIL_ON | --hard-fail-on HARD_FAIL_ON] Infrastructure as code static analysis @@ -212,6 +214,13 @@ optional arguments: results with a known baseline. Report will include only failed checks that are new with respect to the provided baseline + --min-cve-severity {critical,high,medium,low,none} + Set minimum severity that will cause returning non- + zero exit code + --skip-cve-package SKIP_CVE_PACKAGE + filter scan to run on all packages but a specific + package identifier (denylist), You can specify this + argument multiple times to skip multiple packages -s, --soft-fail Runs checks but suppresses error code --soft-fail-on SOFT_FAIL_ON Exits with a 0 exit code for specified checks. You can diff --git a/docs/installation.md b/docs/installation.md index 999b858db09..c47bb22d7d8 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -148,8 +148,8 @@ You may activate [File.io reporter](https://megalinter.github.io/reporters/FileI steps: - script: | docker pull megalinter/megalinter:v5 - docker run -v $(System.DefaultWorkingDirectory):/tmp/lint megalinter/megalinter - displayName: 'Code Scan using MegaLinter' + docker run -v $(System.DefaultWorkingDirectory):/tmp/lint -e GIT_AUTHORIZATION_BEARER=$(System.AccessToken) megalinter/megalinter:v5 + displayName: 'MegaLinter analysis' ``` ## Jenkins diff --git a/flavors/dart/Dockerfile b/flavors/dart/Dockerfile index ac2acb04572..31a05b69f3e 100644 --- a/flavors/dart/Dockerfile +++ b/flavors/dart/Dockerfile @@ -88,7 +88,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/documentation/Dockerfile b/flavors/documentation/Dockerfile index 2e550caad51..f7ff0d02eb2 100644 --- a/flavors/documentation/Dockerfile +++ b/flavors/documentation/Dockerfile @@ -87,7 +87,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/dotnet/Dockerfile b/flavors/dotnet/Dockerfile index 83c4935bbd6..71d5cf5f967 100644 --- a/flavors/dotnet/Dockerfile +++ b/flavors/dotnet/Dockerfile @@ -96,7 +96,7 @@ RUN pip3 install --no-cache-dir --upgrade \ 'cpplint' \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/go/Dockerfile b/flavors/go/Dockerfile index a1d3d06ba43..f39508236f9 100644 --- a/flavors/go/Dockerfile +++ b/flavors/go/Dockerfile @@ -88,7 +88,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/java/Dockerfile b/flavors/java/Dockerfile index 124e8042c75..07f730b2c68 100644 --- a/flavors/java/Dockerfile +++ b/flavors/java/Dockerfile @@ -89,7 +89,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/javascript/Dockerfile b/flavors/javascript/Dockerfile index 7de17fe4982..4f8e80a69a5 100644 --- a/flavors/javascript/Dockerfile +++ b/flavors/javascript/Dockerfile @@ -87,7 +87,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/php/Dockerfile b/flavors/php/Dockerfile index 2447168be30..59447645118 100644 --- a/flavors/php/Dockerfile +++ b/flavors/php/Dockerfile @@ -108,7 +108,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/python/Dockerfile b/flavors/python/Dockerfile index 9dc91329b31..83d40d0bc73 100644 --- a/flavors/python/Dockerfile +++ b/flavors/python/Dockerfile @@ -97,7 +97,7 @@ RUN pip3 install --no-cache-dir --upgrade \ 'rstfmt' \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/ruby/Dockerfile b/flavors/ruby/Dockerfile index cc7f91b4aad..bc1d2db6899 100644 --- a/flavors/ruby/Dockerfile +++ b/flavors/ruby/Dockerfile @@ -91,7 +91,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/rust/Dockerfile b/flavors/rust/Dockerfile index e9e51ca2642..2e29036e57a 100644 --- a/flavors/rust/Dockerfile +++ b/flavors/rust/Dockerfile @@ -87,7 +87,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/salesforce/Dockerfile b/flavors/salesforce/Dockerfile index bcbb4785519..656c8d1f9e9 100644 --- a/flavors/salesforce/Dockerfile +++ b/flavors/salesforce/Dockerfile @@ -88,7 +88,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/scala/Dockerfile b/flavors/scala/Dockerfile index 1b53c3d3ec3..1a3615a46f4 100644 --- a/flavors/scala/Dockerfile +++ b/flavors/scala/Dockerfile @@ -87,7 +87,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/swift/Dockerfile b/flavors/swift/Dockerfile index ce79f5dcb74..ee14d6ce651 100644 --- a/flavors/swift/Dockerfile +++ b/flavors/swift/Dockerfile @@ -89,7 +89,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/flavors/terraform/Dockerfile b/flavors/terraform/Dockerfile index 927cb97b434..dda88a37a17 100644 --- a/flavors/terraform/Dockerfile +++ b/flavors/terraform/Dockerfile @@ -91,7 +91,7 @@ RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin RUN pip3 install --no-cache-dir --upgrade \ 'snakemake' \ 'snakefmt' \ - 'sqlfluff==0.9.1' \ + 'sqlfluff' \ 'yamllint' #PIP__END diff --git a/megalinter/descriptors/sql.megalinter-descriptor.yml b/megalinter/descriptors/sql.megalinter-descriptor.yml index 061d1193aaf..360e12df8ee 100644 --- a/megalinter/descriptors/sql.megalinter-descriptor.yml +++ b/megalinter/descriptors/sql.megalinter-descriptor.yml @@ -40,10 +40,9 @@ linters: examples: - "sqlfluff myfile.sql" - "sqlfluff --config .sqlfluff myfile.sql myfile2.sql" - downgraded_version: true install: pip: - - sqlfluff==0.9.1 + - sqlfluff # TSQL - linter_name: tsqllint descriptor_flavors: