From cf9732af14faae391d692960641466cbc1a78efe Mon Sep 17 00:00:00 2001 From: bdovaz Date: Sun, 14 May 2023 15:41:03 +0000 Subject: [PATCH] [MegaLinter] Apply linters fixes --- .automation/build.py | 2 +- README.md | 2 +- docs/descriptors/xml_xmllint.md | 2 +- docs/index.md | 2 +- megalinter/utils_reporter.py | 4 +++- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.automation/build.py b/.automation/build.py index eb82a42ac61..4ba983e8c8b 100644 --- a/.automation/build.py +++ b/.automation/build.py @@ -789,7 +789,7 @@ def generate_documentation(): + "and **ready to use out of the box**, as a GitHub action or any CI system " + "**highly configurable** and **free for all uses**.\n\n" + "[**Upgrade to MegaLinter v7 !**]" - + "https://github.com/oxsecurity/megalinter/issues/2608" #TODOV7: Replace link + + "https://github.com/oxsecurity/megalinter/issues/2608" # TODOV7: Replace link ) # Update README.md file replace_in_file( diff --git a/README.md b/README.md index b1106b1d044..a08b74f4273 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ MegaLinter is an **Open-Source** tool for **CI/CD workflows** that analyzes the Supporting [**55** languages](#languages), [**24** formats](#formats), [**21** tooling formats](#tooling-formats) and **ready to use out of the box**, as a GitHub action or any CI system **highly configurable** and **free for all uses**. -[**Upgrade to MegaLinter v7 !**]https://github.com/oxsecurity/megalinter/issues/2608 +[**Upgrade to MegaLinter v7 !**] diff --git a/docs/descriptors/xml_xmllint.md b/docs/descriptors/xml_xmllint.md index 2a0f09b98f8..3821a397df2 100644 --- a/docs/descriptors/xml_xmllint.md +++ b/docs/descriptors/xml_xmllint.md @@ -25,7 +25,7 @@ To apply file formatting you must set `XML_XMLLINT_CLI_LINT_MODE: file` and `XML | Variable | Description | Default value | |-----------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------| | XML_XMLLINT_AUTOFORMAT | If set to `true`, it will reformat and reindent the output | `false` | -| XML_XMLLINT_INDENT | The number of indentation spaces when `XML_XMLLINT_AUTOFORMAT` is `true` | ` ` | +| XML_XMLLINT_INDENT | The number of indentation spaces when `XML_XMLLINT_AUTOFORMAT` is `true` | `` | | XML_XMLLINT_ARGUMENTS | User custom arguments to add in linter CLI call
Ex: `-s --foo "bar"` | | | XML_XMLLINT_FILTER_REGEX_INCLUDE | Custom regex including filter
Ex: `(src\|lib)` | Include every file | | XML_XMLLINT_FILTER_REGEX_EXCLUDE | Custom regex excluding filter
Ex: `(test\|examples)` | Exclude no file | diff --git a/docs/index.md b/docs/index.md index b3cf949c6a4..eae6f508c61 100644 --- a/docs/index.md +++ b/docs/index.md @@ -30,7 +30,7 @@ MegaLinter is an **Open-Source** tool for **CI/CD workflows** that analyzes the Supporting [**55** languages](supported-linters.md#languages), [**24** formats](supported-linters.md#formats), [**21** tooling formats](supported-linters.md#tooling-formats) and **ready to use out of the box**, as a GitHub action or any CI system **highly configurable** and **free for all uses**. -[**Upgrade to MegaLinter v7 !**]https://github.com/oxsecurity/megalinter/issues/2608 +[**Upgrade to MegaLinter v7 !**] diff --git a/megalinter/utils_reporter.py b/megalinter/utils_reporter.py index 9270b93b964..23e1ea0fd58 100644 --- a/megalinter/utils_reporter.py +++ b/megalinter/utils_reporter.py @@ -126,7 +126,9 @@ def build_markdown_summary(reporter_self, action_run_url): ) for suggestion in reporter_self.master.flavor_suggestions: build_version = config.get(None, "BUILD_VERSION", DEFAULT_RELEASE) - action_version = DEFAULT_RELEASE if len(build_version) > 20 else build_version + action_version = ( + DEFAULT_RELEASE if len(build_version) > 20 else build_version + ) action_path = ( f"{ML_REPO}/flavors/{suggestion['flavor']}@{action_version}" )