Skip to content

withoutRiskyFixers() produces error #113

Description

@krzysztofrewak

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions