Skip to content
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

withoutRiskyFixers() produces error #113

Open
krzysztofrewak opened this issue Feb 21, 2024 · 0 comments
Open

withoutRiskyFixers() produces error #113

krzysztofrewak opened this issue Feb 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@krzysztofrewak
Copy link
Member

This configuration:

return $config->withoutRiskyFixers()->config();

returns a big red error:

host-user@b050eb49eb28:/application$ composer cs 
> ./vendor/bin/php-cs-fixer fix --dry-run --diff --config codestyle.php
PHP CS Fixer 3.49.0 Insomnia by Fabien Potencier, Dariusz Ruminski and contributors.
PHP runtime: 8.3.0
Loaded config Blumilk codestyle standard from "codestyle.php".
   0/353 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0%
In ConfigurationResolver.php line 338:
                                                                                                                                                                                                                                                   
  The rules contain risky fixers ("PhpCsFixerCustomFixers/commented_out_function", "strict_comparison", "use_arrow_functions", "strict_param", "php_unit_test_annotation", "class_keyword", "void_return", "function_to_constant", "declare_stric  
  t_types", "is_null", "php_unit_set_up_tear_down_visibility", "no_homoglyph_names", "psr_autoloading" and "self_accessor"), but they are not allowed to run. Perhaps you forget to use --allow-risky=yes option?                                  
                                                                                                                                                                                                                                                   

fix [--path-mode PATH-MODE] [--allow-risky ALLOW-RISKY] [--config CONFIG] [--dry-run] [--rules RULES] [--using-cache USING-CACHE] [--cache-file CACHE-FILE] [--diff] [--format FORMAT] [--stop-on-violation] [--show-progress SHOW-PROGRESS] [--] [<path>...]

Script ./vendor/bin/php-cs-fixer fix --dry-run --diff --config codestyle.php handling the cs event returned with error code 16
@krzysztofrewak krzysztofrewak added the bug Something isn't working label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant