Skip to content

Commit

Permalink
add note about PHP-PHPCSFIXER apply fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Sep 11, 2024
1 parent fd216bb commit 47dd365
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/descriptors/php_php_cs_fixer.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ description: How to use php-cs-fixer (configure, ignore files, ignore errors, he
- Enable php-cs-fixer by adding `PHP_PHPCSFIXER` in [ENABLE_LINTERS variable](https://megalinter.io/beta/configuration/#activation-and-deactivation)
- Disable php-cs-fixer by adding `PHP_PHPCSFIXER` in [DISABLE_LINTERS variable](https://megalinter.io/beta/configuration/#activation-and-deactivation)

- Enable **autofixes** by adding `PHP_PHPCSFIXER` in [APPLY_FIXES variable](https://megalinter.io/beta/configuration/#apply-fixes)

> [!NOTE]
>
> If you want to apply fixes on risky rules, you should set `PHP_PHPCSFIXER_ARGUMENTS` for additional value(s).
> Read this [post](https://github.com/oxsecurity/megalinter/discussions/3973) to learn how to do.
| Variable | Description | Default value |
|--------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------|
| PHP_PHPCSFIXER_ARGUMENTS | User custom arguments to add in linter CLI call<br/>Ex: `-s --foo "bar"` | |
Expand Down

0 comments on commit 47dd365

Please sign in to comment.