Skip to content

Commit

Permalink
Merge pull request #7867 from mmcev106/master
Browse files Browse the repository at this point in the history
Documented the allowMissingFiles attribute for ignoreFiles
  • Loading branch information
orklah committed Apr 15, 2022
2 parents 3b8449a + 6e3c305 commit b5b5c20
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/running_psalm/configuration.md
Expand Up @@ -408,13 +408,16 @@ Allows you to hard-code the number of threads Psalm will use (similar to `--thre
## Project settings

#### <projectFiles>
Contains a list of all the directories that Psalm should inspect. You can also specify a set of files and folders to ignore with the `<ignoreFiles>` directive, e.g.
Contains a list of all the directories that Psalm should inspect. You can also specify a set of files and folders to ignore with the `<ignoreFiles>` directive. By default, ignored files/folders are required to exist. An `allowMissingFiles` attribute can be added for ignored files/folders than may or may not exist.
```xml
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="src/Stubs" />
</ignoreFiles>
<ignoreFiles allowMissingFiles="true">
<directory name="path-that-may-not-exist" />
</ignoreFiles>
</projectFiles>
```

Expand Down

0 comments on commit b5b5c20

Please sign in to comment.