Skip to content
Permalink
Browse files

Add documentation for findUnusedVariables and findUnusedCode

  • Loading branch information...
muglug committed Aug 13, 2019
1 parent 7533949 commit b53446e11d7b5055211db920396eb1ec09eb33da
Showing with 16 additions and 0 deletions.
  1. +16 −0 docs/running_psalm/configuration.md
@@ -187,6 +187,22 @@ When `true`, Psalm ignores possibly-false issues stemming from return values of
```
When `true`, Psalm ignores possibly-null issues stemming from return values of internal array functions (like `current`) that may return null, but do so rarely. Defaults to `true`.

#### findUnusedVariablesAndParams
```xml
<psalm
findUnusedVariables="[bool]"
>
```
When `true`, Psalm will attempt to find all unused variables, the equivalent of running with `--find-unused-variables`. Defaults to `false`.

#### findUnusedCode
```xml
<psalm
findUnusedCode="[bool]"
>
```
When `true`, Psalm will attempt to find all unused code (including unused variables), the equivalent of running with `--find-unused-code`. Defaults to `false`.

### Running Psalm

#### autoloader

0 comments on commit b53446e

Please sign in to comment.
You can’t perform that action at this time.