-
Notifications
You must be signed in to change notification settings - Fork 529
Add dump-parameters command #1702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/Command/DumpConfigCommand.php
Outdated
new InputArgument('paths', InputArgument::OPTIONAL | InputArgument::IS_ARRAY, 'Paths with source code to run analysis on'), | ||
new InputOption('configuration', 'c', InputOption::VALUE_REQUIRED, 'Path to project configuration file'), | ||
new InputOption(AnalyseCommand::OPTION_LEVEL, 'l', InputOption::VALUE_REQUIRED, 'Level of rule options - the higher the stricter'), | ||
new InputOption('autoload-file', 'a', InputOption::VALUE_REQUIRED, 'Project\'s additional autoload file path'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove paths, but add memory-limit here.
Basically the arguments/options should mirror ClearResultCacheCommand, and add level because that influences the loaded file :)
What about the paths? I don't think they influence anything. Also maybe we could unset these parameters as they're really internal (the tempDir is especially confusing - the user-facing one is called Lines 359 to 363 in b7cfc17
And also maybe remove these: Lines 374 to 376 in b7cfc17
|
ba71dcf
to
5a386e4
Compare
5a386e4
to
468f56e
Compare
Hmm, so lint wants me to add the trailing comma, but the downgrade doesn't remove it so it doesn't work on <7.3 😞 |
Is it the trailing comma in the unset? That's probably a Rector downgrade bug. You can unset each key individually on a separate line I guess. |
468f56e
to
0e35ce7
Compare
Thank you! |
Inspired by phpstan/phpstan#7942. Not saying this is a good idea, but the implementation is almost trivial :)