You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* This configuration file was automatically generated by 'phan --init --init-level=1'
7
+
*
8
+
* TODOs (added by 'phan --init'):
9
+
*
10
+
* - Go through this file and verify that there are no missing/unnecessary files/directories.
11
+
* (E.g. this only includes direct composer dependencies - You may have to manually add indirect composer dependencies to 'directory_list')
12
+
* - Look at 'plugins' and add or remove plugins if appropriate (see https://github.com/phan/phan/tree/master/.phan/plugins#plugins)
13
+
* - Add global suppressions for pre-existing issues to suppress_issue_types (https://github.com/phan/phan/wiki/Tutorial-for-Analyzing-a-Large-Sloppy-Code-Base)
14
+
*
15
+
* This configuration will be read and overlaid on top of the
16
+
* default configuration. Command line arguments will be applied
17
+
* after this file is read.
18
+
*
19
+
* @see src/Phan/Config.php
20
+
* See Config for all configurable options.
21
+
*
22
+
* A Note About Paths
23
+
* ==================
24
+
*
25
+
* Files referenced from this file should be defined as
26
+
*
27
+
* ```
28
+
* Config::projectPath('relative_path/to/file')
29
+
* ```
30
+
*
31
+
* where the relative path is relative to the root of the
32
+
* project which is defined as either the working directory
33
+
* of the phan executable or a path passed in via the CLI
// results will only be a guess given that classes,
176
+
// properties, constants and methods can be referenced
177
+
// as variables (like `$class->$property` or
178
+
// `$class->$method()`) in ways that we're unable
179
+
// to make sense of.
180
+
'dead_code_detection' => false,
181
+
182
+
// Set to true in order to attempt to detect unused variables.
183
+
// `dead_code_detection` will also enable unused variable detection.
184
+
//
185
+
// This has a few known false positives, e.g. for loops or branches.
186
+
'unused_variable_detection' => true,
187
+
188
+
// Set to true in order to attempt to detect redundant and impossible conditions.
189
+
//
190
+
// This has some false positives involving loops,
191
+
// variables set in branches of loops, and global variables.
192
+
'redundant_condition_detection' => true,
193
+
194
+
// If enabled, Phan will act as though it's certain of real return types of a subset of internal functions,
195
+
// even if those return types aren't available in reflection (real types were taken from php 7.3 or 8.0-dev, depending on target_php_version).
196
+
//
197
+
// Note that with php 7 and earlier, php would return null or false for many internal functions if the argument types or counts were incorrect.
198
+
// As a result, enabling this setting with target_php_version 8.0 may result in false positives for `--redundant-condition-detection` when codebases also support php 7.x.
// Plugins which are bundled with Phan can be added here by providing their name (e.g. `'AlwaysReturnPlugin'`)
311
+
//
312
+
// Documentation about available bundled plugins can be found [here](https://github.com/phan/phan/tree/master/.phan/plugins).
313
+
//
314
+
// Alternately, you can pass in the full path to a PHP file with the plugin's implementation (e.g. `'vendor/phan/phan/.phan/plugins/AlwaysReturnPlugin.php'`)
315
+
'plugins' => [
316
+
'AlwaysReturnPlugin',
317
+
'DollarDollarPlugin',
318
+
'DuplicateArrayKeyPlugin',
319
+
'DuplicateExpressionPlugin',
320
+
'PregRegexCheckerPlugin',
321
+
'PrintfCheckerPlugin',
322
+
'SleepCheckerPlugin',
323
+
'UnreachableCodePlugin',
324
+
'UseReturnValuePlugin',
325
+
'EmptyStatementListPlugin',
326
+
'StrictComparisonPlugin',
327
+
'LoopVariableReusePlugin',
328
+
],
329
+
330
+
// A list of directories that should be parsed for class and
331
+
// method information. After excluding the directories
332
+
// defined in `exclude_analysis_directory_list`, the remaining
333
+
// files will be statically analyzed for errors.
334
+
//
335
+
// Thus, both first-party and third-party code being used by
336
+
// your application should be included in this list.
337
+
'directory_list' => [
338
+
'src',
339
+
'vendor/predis/predis',
340
+
],
341
+
342
+
// A list of individual files to include in analysis
343
+
// with a path relative to the root directory of the
0 commit comments