mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix quoting maybe
This commit is contained in:
parent
d3b814578c
commit
e73fe89c01
@ -341,7 +341,7 @@ Allows you to hard-code a serializer for Psalm to use when caching data. By defa
|
|||||||
|
|
||||||
## Project settings
|
## Project settings
|
||||||
|
|
||||||
#### `<projectFiles>`
|
#### \<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, e.g.
|
||||||
```xml
|
```xml
|
||||||
<projectFiles>
|
<projectFiles>
|
||||||
@ -352,22 +352,22 @@ Contains a list of all the directories that Psalm should inspect. You can also s
|
|||||||
</projectFiles>
|
</projectFiles>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `<fileExtensions>`
|
#### \<fileExtensions>
|
||||||
Optional. A list of extensions to search over. See [Checking non-PHP files](checking_non_php_files.md) to understand how to extend this.
|
Optional. A list of extensions to search over. See [Checking non-PHP files](checking_non_php_files.md) to understand how to extend this.
|
||||||
|
|
||||||
#### `<plugins>`
|
#### \<plugins>
|
||||||
Optional. A list of `<plugin filename="path_to_plugin.php" />` entries. See the [Plugins](plugins/using_plugins.md) section for more information.
|
Optional. A list of `<plugin filename="path_to_plugin.php" />` entries. See the [Plugins](plugins/using_plugins.md) section for more information.
|
||||||
|
|
||||||
#### `<issueHandlers>`
|
#### \<issueHandlers>
|
||||||
Optional. If you don't want Psalm to complain about every single issue it finds, the issueHandler tag allows you to configure that. [Dealing with code issues](dealing_with_code_issues.md) tells you more.
|
Optional. If you don't want Psalm to complain about every single issue it finds, the issueHandler tag allows you to configure that. [Dealing with code issues](dealing_with_code_issues.md) tells you more.
|
||||||
|
|
||||||
#### `<mockClasses>`
|
#### \<mockClasses>
|
||||||
Optional. Do you use mock classes in your tests? If you want Psalm to ignore them when checking files, include a fully-qualified path to the class with `<class name="Your\Namespace\ClassName" />`
|
Optional. Do you use mock classes in your tests? If you want Psalm to ignore them when checking files, include a fully-qualified path to the class with `<class name="Your\Namespace\ClassName" />`
|
||||||
|
|
||||||
#### `<stubs>`
|
#### \<stubs>
|
||||||
Optional. If your codebase uses classes and functions that are not visible to Psalm via reflection (e.g. if there are internal packages that your codebase relies on that are not available on the machine running Psalm), you can use stub files. Used by PhpStorm (a popular IDE) and others, stubs provide a description of classes and functions without the implementations. You can find a list of stubs for common classes [here](https://github.com/JetBrains/phpstorm-stubs). List out each file with `<file name="path/to/file.php" />`.
|
Optional. If your codebase uses classes and functions that are not visible to Psalm via reflection (e.g. if there are internal packages that your codebase relies on that are not available on the machine running Psalm), you can use stub files. Used by PhpStorm (a popular IDE) and others, stubs provide a description of classes and functions without the implementations. You can find a list of stubs for common classes [here](https://github.com/JetBrains/phpstorm-stubs). List out each file with `<file name="path/to/file.php" />`.
|
||||||
|
|
||||||
#### `<ignoreExceptions>`
|
#### \<ignoreExceptions>
|
||||||
Optional. A list of exceptions to not report for `checkForThrowsDocblock` or `checkForThrowsInGlobalScope`. If an exception has `onlyGlobalScope` set to `true`, only `checkForThrowsInGlobalScope` is ignored for that exception, e.g.
|
Optional. A list of exceptions to not report for `checkForThrowsDocblock` or `checkForThrowsInGlobalScope`. If an exception has `onlyGlobalScope` set to `true`, only `checkForThrowsInGlobalScope` is ignored for that exception, e.g.
|
||||||
```xml
|
```xml
|
||||||
<ignoreExceptions>
|
<ignoreExceptions>
|
||||||
@ -375,7 +375,7 @@ Optional. A list of exceptions to not report for `checkForThrowsDocblock` or `c
|
|||||||
</ignoreExceptions>
|
</ignoreExceptions>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### `<globals>`
|
#### \<globals>
|
||||||
Optional. If your codebase uses global variables that are accessed with the `global` keyword, you can declare their type. e.g.
|
Optional. If your codebase uses global variables that are accessed with the `global` keyword, you can declare their type. e.g.
|
||||||
```xml
|
```xml
|
||||||
<globals>
|
<globals>
|
||||||
|
Loading…
Reference in New Issue
Block a user