Skip to content

Commit

Permalink
Add documentation for findUnusedVariables and findUnusedCode
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Aug 13, 2019
1 parent 7533949 commit b53446e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/running_psalm/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b53446e

Please sign in to comment.