-
-
Notifications
You must be signed in to change notification settings - Fork 449
Expand file tree
/
Copy pathOption.php
More file actions
338 lines (267 loc) · 10.4 KB
/
Copy pathOption.php
File metadata and controls
338 lines (267 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
<?php
declare(strict_types=1);
namespace Rector\Configuration;
final class Option
{
public const string SOURCE = 'source';
public const string AUTOLOAD_FILE = 'autoload-file';
/**
* @internal Use @see \Rector\Config\RectorConfig::bootstrapFiles() instead
* @var string
*/
public const string BOOTSTRAP_FILES = 'bootstrap_files';
public const string DRY_RUN = 'dry-run';
public const string DRY_RUN_SHORT = 'n';
public const string OUTPUT_FORMAT = 'output-format';
public const string NO_PROGRESS_BAR = 'no-progress-bar';
/**
* @internal Use @see \Rector\Config\RectorConfig::phpVersion() instead
* @var string
*/
public const string PHP_VERSION_FEATURES = 'php_version_features';
/**
* @internal Use @see \Rector\Config\RectorConfig::importNames() instead
* @var string
*/
public const string AUTO_IMPORT_NAMES = 'auto_import_names';
/**
* @internal Use @see \Rector\Config\RectorConfig::polyfillPackages() instead
* @var string
*/
public const string POLYFILL_PACKAGES = 'polyfill_packages';
/**
* PHP version explicitly picked in withPhpSets(), e.g. withPhpSets(php82: true).
* Polyfilled rules above this version are skipped, as the version is an intended ceiling.
*
* @internal
*/
public const string POLYFILL_CEILING_PHP_VERSION = 'polyfill_ceiling_php_version';
/**
* @internal Use @see \Rector\Config\RectorConfig::importNames() instead
* @var string
*/
public const string AUTO_IMPORT_DOC_BLOCK_NAMES = 'auto_import_doc_block_names';
/**
* @internal Use @see \Rector\Config\RectorConfig::importShortClasses() instead
* @var string
*/
public const string IMPORT_SHORT_CLASSES = 'import_short_classes';
/**
* @internal Use @see \Rector\Config\RectorConfig::symfonyContainerXml() instead
* @var string
*/
public const string SYMFONY_CONTAINER_XML_PATH_PARAMETER = 'symfony_container_xml_path';
/**
* @internal Use @see \Rector\Config\RectorConfig::symfonyContainerPhp()
* @var string
*/
public const string SYMFONY_CONTAINER_PHP_PATH_PARAMETER = 'symfony_container_php_path';
/**
* @internal Use @see \Rector\Config\RectorConfig::newLineOnFluentCall()
* @var string
*/
public const string NEW_LINE_ON_FLUENT_CALL = 'new_line_on_fluent_call';
public const string CLEAR_CACHE = 'clear-cache';
public const string ONLY = 'only';
/**
* @internal Use @see \Rector\Config\RectorConfig::parallel() instead
* @var string
*/
public const string PARALLEL = 'parallel';
/**
* @internal Use @see \Rector\Config\RectorConfig::paths() instead
* @var string
*/
public const string PATHS = 'paths';
/**
* @internal Use @see \Rector\Config\RectorConfig::autoloadPaths() instead
* @var string
*/
public const string AUTOLOAD_PATHS = 'autoload_paths';
/**
* @internal Use @see \Rector\Config\RectorConfig::skip() instead
* @var string
*/
public const string SKIP = 'skip';
/**
* @internal Use @see \Rector\Config\RectorConfig::reportUnusedSkips() instead
* @var string
*/
public const string REPORT_UNUSED_SKIPS = 'report_unused_skips';
/**
* True when the run is narrowed on the command line - via paths argument, "--only" or
* "--only-suffix". Unused skip reporting is then disabled, as skips outside the narrowed scope
* look falsely unused and would produce many false positives.
*
* @internal
*/
public const string IS_RUN_NARROWED = 'is_run_narrowed';
/**
* True when the unchanged-files cache dropped at least one file from the run, so rules only ran
* on the changed subset. Unused skip reporting is then disabled, as skips on cached files never
* get a chance to match and would all look falsely unused.
*
* @internal
*/
public const string IS_CACHED_RUN = 'is_cached_run';
/**
* @internal Use RectorConfig::fileExtensions() instead
*/
public const string FILE_EXTENSIONS = 'file_extensions';
/**
* @internal Use RectorConfig::cacheDirectory() instead
*/
public const string CACHE_DIR = 'cache_dir';
public const string DEBUG = 'debug';
public const string XDEBUG = 'xdebug';
public const string RULES_SUMMARY = 'rules-summary';
public const string MAX_CHANGES = 'max-changes';
public const string CONFIG = 'config';
/**
* @internal Use @see \Rector\Config\RectorConfig::phpstanConfig() instead
* @var string
*/
public const string PHPSTAN_FOR_RECTOR_PATHS = 'phpstan_for_rector_paths';
public const string NO_DIFFS = 'no-diffs';
public const string AUTOLOAD_FILE_SHORT = 'a';
public const string PARALLEL_IDENTIFIER = 'identifier';
public const string PARALLEL_PORT = 'port';
/**
* @internal Use @see \Rector\Config\RectorConfig::parallel() instead with pass int $jobSize parameter
* @var string
*/
public const string PARALLEL_JOB_SIZE = 'parallel-job-size';
/**
* @internal Use @see \Rector\Config\RectorConfig::parallel() instead with pass int $maxNumberOfProcess parameter
* @var string
*/
public const string PARALLEL_MAX_NUMBER_OF_PROCESSES = 'parallel-max-number-of-processes';
/**
* @internal Use @see \Rector\Config\RectorConfig::parallel() instead with pass int $seconds parameter
* @var string
*/
public const string PARALLEL_JOB_TIMEOUT_IN_SECONDS = 'parallel-job-timeout-in-seconds';
public const string MEMORY_LIMIT = 'memory-limit';
/**
* @internal Use @see \Rector\Config\RectorConfig::indent() method
* @var string
*/
public const string INDENT_CHAR = 'indent-char';
/**
* @internal Use @see \Rector\Config\RectorConfig::indent() method
* @var string
*/
public const string INDENT_SIZE = 'indent-size';
/**
* @internal Use @see \Rector\Config\RectorConfig::removeUnusedImports() method
* @var string
*/
public const string REMOVE_UNUSED_IMPORTS = 'remove-unused-imports';
/**
* @internal Use @see \Rector\Config\RectorConfig::containerCacheDirectory() method
* @var string
*/
public const string CONTAINER_CACHE_DIRECTORY = 'container-cache-directory';
/**
* @internal For cache invalidation in case of change
*/
public const string REGISTERED_RECTOR_RULES = 'registered_rector_rules';
/**
* @internal For cache invalidation in case of change
*/
public const string REGISTERED_RECTOR_SETS = 'registered_rector_sets';
/**
* @internal For cache invalidation when a configurable rule value changes
*/
public const string RULE_CONFIGURATIONS = 'rule_configurations';
/**
* @internal For verify RectorConfigBuilder instance recreated
*/
public const string IS_RECTORCONFIG_BUILDER_RECREATED = 'is_rectorconfig_builder_recreated';
/**
* @internal For verify skipped rules exists in registered rules
*/
public const string SKIPPED_RECTOR_RULES = 'skipped_rector_rules';
/**
* @internal For reporting skipped classes that are not Rector rules
*/
public const string SKIPPED_NON_RECTOR_CLASSES = 'skipped_non_rector_classes';
/**
* @internal For reporting deprecated cache meta extensions
*/
public const string CACHE_META_EXTENSIONS = 'cache_meta_extensions';
/**
* @internal For reporting deprecated withPhp53Sets() ... withPhp74Sets() methods
*/
public const string DEPRECATED_PHP_SETS_METHODS = 'deprecated_php_sets_methods';
/**
* @internal For reporting deprecated withAttributesSets() arguments
*/
public const string DEPRECATED_ATTRIBUTES_SETS_ARGS = 'deprecated_attributes_sets_args';
/**
* @internal For reporting deprecated withComposerBased() arguments
*/
public const string DEPRECATED_COMPOSER_BASED_ARGS = 'deprecated_composer_based_args';
/**
* @internal For collect skipped start with short open tag files to be reported
*/
public const string SKIPPED_START_WITH_SHORT_OPEN_TAG_FILES = 'skipped_start_with_short_open_tag_files';
/**
* @internal For reporting with absolute paths instead of relative paths (default behaviour)
* @see \Rector\Config\RectorConfig::reportingRealPath()
*/
public const string ABSOLUTE_FILE_PATH = 'absolute_file_path';
/**
* @internal To add editor links to console output
* @see \Rector\Config\RectorConfig::editorUrl()
*/
public const string EDITOR_URL = 'editor_url';
/**
* @internal Use @see \Rector\Config\RectorConfig::treatClassesAsFinal() method
* @var string
*/
public const string TREAT_CLASSES_AS_FINAL = 'treat_classes_as_final';
/**
* @internal To report rule configuration bound to an installed package version
* @see \Rector\Config\RectorConfig::ruleWithConfigurationComposerVersionBound()
*/
public const string COMPOSER_BOUND_RULE_CONFIGURATIONS = 'composer_bound_rule_configurations';
/**
* Run only rules bound to an installed composer package version
*/
public const string COMPOSER_BASED = 'composer-based';
/**
* Run only rules bound to a minimal PHP version
*/
public const string PHP = 'php';
/**
* @internal To filter files by specific suffix
*/
public const string ONLY_SUFFIX = 'only-suffix';
/**
* @internal To keep only files matching all given patterns
*/
public const string FILTER = 'filter';
/**
* @internal To report overflow levels in ->with*Level() methods
*/
public const string LEVEL_OVERFLOWS = 'level_overflows';
/**
* @internal To avoid registering rules via ->withRules(), that are already loaded in sets,
* and keep rector.php clean
*/
public const string ROOT_STANDALONE_REGISTERED_RULES = 'root_standalone_registered_rules';
/**
* @internal The other half of ROOT_STANDALONE_REGISTERED_RULES to compare
*/
public const string SET_REGISTERED_RULES = 'set_registered_rules';
/**
* @internal to allow process file without extension if explicitly registered
*/
public const string FILES_WITHOUT_EXTENSION = 'files_without_extension';
/**
* @internal Use @see \Rector\Config\RectorConfig::typeGuardedClasses() instead
* @var string
*/
public const string TYPE_GUARDED_CLASSES = 'type_guarded_classes';
}