diff --git a/.gitignore b/.gitignore index 3f56adb217e..93a81489d87 100644 --- a/.gitignore +++ b/.gitignore @@ -111,4 +111,9 @@ github_conf/ Pipfile -run_local_linter.sh \ No newline at end of file +# .NET Core build folders +bin/ +obj/ + +run_local_linter.sh + diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f7b9a2313a..4aa639ea916 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,9 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Core - Run CI linter jobs only on Pull requests to avoid doubling jobs + +- Documentation + - mega-linter-runner: doc fix for env list of values, see [#2448](https://github.com/oxsecurity/megalinter/issues/2448) - Linter versions upgrades - [ansible-lint](https://ansible-lint.readthedocs.io/) from 6.14.1 to **6.14.2** on 2023-03-11 diff --git a/docs/mega-linter-runner.md b/docs/mega-linter-runner.md index 9c740066ae1..4215287681f 100644 --- a/docs/mega-linter-runner.md +++ b/docs/mega-linter-runner.md @@ -11,6 +11,7 @@ [![Downloads/week](https://img.shields.io/npm/dw/mega-linter-runner.svg)](https://npmjs.org/package/mega-linter-runner) [![Downloads/total](https://img.shields.io/npm/dt/mega-linter-runner.svg)](https://npmjs.org/package/mega-linter-runner) [![GitHub stars](https://img.shields.io/github/stars/oxsecurity/megalinter?maxAge=2592000)](https://GitHub.com/oxsecurity/megalinter/stargazers/) + @@ -44,7 +45,7 @@ You can run mega-linter-runner without installation by using `npx` Example: ```shell -npx mega-linter-runner -r beta -e 'ENABLE=MARKDOWN,YAML' -e 'SHOW_ELAPSED_TIME=true' +npx mega-linter-runner -r beta -e "'ENABLE=MARKDOWN,YAML'" -e 'SHOW_ELAPSED_TIME=true' ``` ### Pre-commit hook @@ -76,19 +77,19 @@ mega-linter-runner [OPTIONS] [FILES] The options are only related to mega-linter-runner. For MegaLinter options, please use a `.mega-linter.yml` [configuration file](#configuration) -| Option | Description | Default | -|------------------------|--------------------------------------------------------------------------------------------------------------------|-------------------| -| `-p`
`--path` | Directory containing the files to lint | current directory | -| `-f`
`--flavor` | Set this parameter to use a [MegaLinter flavor](https://megalinter.io/flavors/) | `all` | -| `-d`
`--image` | You can override the used docker image, including if it is on another docker registry | | -| `-e`
`--env` | Environment variables for MegaLinter, following format **'ENV_VAR_NAME=VALUE'**
Warning: Quotes are mandatory | | -| `--fix` | Automatically apply formatting and fixes in your files | | -| `-r`
`--release` | Allows to override MegaLinter version used | `v5` | -| `-h`
`--help` | Show mega-linter-runner help | | -| `-v`
`--version` | Show mega-linter-runner version | | -| `-i`
`--install` | Generate MegaLinter configuration files | | -| `--container-name` | Specify MegaLinter container name | | -| `--remove-container` | Remove MegaLinter Docker container when done | | +| Option | Description | Default | +| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | +| `-p`
`--path` | Directory containing the files to lint | current directory | +| `-f`
`--flavor` | Set this parameter to use a [MegaLinter flavor](https://megalinter.io/flavors/) | `all` | +| `-d`
`--image` | You can override the used docker image, including if it is on another docker registry | | +| `-e`
`--env` | Environment variables for MegaLinter, following format **'ENV_VAR_NAME=VALUE'** for a single value or **"'ENV_VAR_NAME=VALUE1,VALUE2'"** for a list of values
Warning: Quotes are mandatory | | +| `--fix` | Automatically apply formatting and fixes in your files | | +| `-r`
`--release` | Allows to override MegaLinter version used | `v5` | +| `-h`
`--help` | Show mega-linter-runner help | | +| `-v`
`--version` | Show mega-linter-runner version | | +| `-i`
`--install` | Generate MegaLinter configuration files | | +| `--container-name` | Specify MegaLinter container name | | +| `--remove-container` | Remove MegaLinter Docker container when done | | _You can also use `npx mega-linter-runner` if you do not want to install the package_ @@ -103,7 +104,7 @@ mega-linter-runner -p myFolder --fix ``` ```shell -mega-linter-runner -r beta -e 'ENABLE=MARKDOWN,YAML' -e 'SHOW_ELAPSED_TIME=true' +mega-linter-runner -r beta -e "'ENABLE=MARKDOWN,YAML'" -e 'SHOW_ELAPSED_TIME=true' ``` ```shell diff --git a/mega-linter-runner/README.md b/mega-linter-runner/README.md index 3402f1ab8d6..8a2a1d77b26 100644 --- a/mega-linter-runner/README.md +++ b/mega-linter-runner/README.md @@ -62,7 +62,7 @@ You can run mega-linter-runner without installation by using `npx` Example: ```shell -npx mega-linter-runner -r beta -e 'ENABLE=MARKDOWN,YAML' -e 'SHOW_ELAPSED_TIME=true' +npx mega-linter-runner -r beta -e "'ENABLE=MARKDOWN,YAML'" -e 'SHOW_ELAPSED_TIME=true' ``` ### Pre-commit hook @@ -94,19 +94,19 @@ mega-linter-runner [OPTIONS] [FILES] The options are only related to mega-linter-runner. For MegaLinter options, please use a `.mega-linter.yml` [configuration file](#configuration) -| Option | Description | Default | -|------------------------|--------------------------------------------------------------------------------------------------------------------|-------------------| -| `-p`
`--path` | Directory containing the files to lint | current directory | -| `-f`
`--flavor` | Set this parameter to use a [MegaLinter flavor](https://megalinter.io/flavors/) | `all` | -| `-d`
`--image` | You can override the used docker image, including if it is on another docker registry | | -| `-e`
`--env` | Environment variables for MegaLinter, following format **'ENV_VAR_NAME=VALUE'**
Warning: Quotes are mandatory | | -| `--fix` | Automatically apply formatting and fixes in your files | | -| `-r`
`--release` | Allows to override MegaLinter version used | `v5` | -| `-h`
`--help` | Show mega-linter-runner help | | -| `-v`
`--version` | Show mega-linter-runner version | | -| `-i`
`--install` | Generate MegaLinter configuration files | | -| `--container-name` | Specify MegaLinter container name | | -| `--remove-container` | Remove MegaLinter Docker container when done | | +| Option | Description | Default | +|------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------| +| `-p`
`--path` | Directory containing the files to lint | current directory | +| `-f`
`--flavor` | Set this parameter to use a [MegaLinter flavor](https://megalinter.io/flavors/) | `all` | +| `-d`
`--image` | You can override the used docker image, including if it is on another docker registry | | +| `-e`
`--env` | Environment variables for MegaLinter, following format **'ENV_VAR_NAME=VALUE'** for a single value or **"'ENV_VAR_NAME=VALUE1,VALUE2'"** for a list of values
Warning: Quotes are mandatory | | +| `--fix` | Automatically apply formatting and fixes in your files | | +| `-r`
`--release` | Allows to override MegaLinter version used | `v5` | +| `-h`
`--help` | Show mega-linter-runner help | | +| `-v`
`--version` | Show mega-linter-runner version | | +| `-i`
`--install` | Generate MegaLinter configuration files | | +| `--container-name` | Specify MegaLinter container name | | +| `--remove-container` | Remove MegaLinter Docker container when done | | _You can also use `npx mega-linter-runner` if you do not want to install the package_ @@ -121,7 +121,7 @@ mega-linter-runner -p myFolder --fix ``` ```shell -mega-linter-runner -r beta -e 'ENABLE=MARKDOWN,YAML' -e 'SHOW_ELAPSED_TIME=true' +mega-linter-runner -r beta -e "'ENABLE=MARKDOWN,YAML'" -e 'SHOW_ELAPSED_TIME=true' ``` ```shell