Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for php-cs-fixer 2 #76
Are there any plans for supporting the new major release?
Using this config produces some warnings
# .styleci.yml preset: symfony enabled: - binary_operator_spaces - combine_consecutive_unsets - long_array_syntax - linebreak_after_opening_tag - no_php4_constructor - no_useless_else - ordered_class_elements - ordered_imports - php_unit_construct - php_unit_strict finder: exclude: - 'Tests/Fixtures'
Are you planing to wrap the old name to the new syntax?
Ok, I've done that then, similar to the "validate" endpoint, just pass the config file as the "config" parameter. For example: https://api.styleci.io/rules?config=preset:%20psr2. Unlike the validate endpoint, empty config is supported. The design decision with not permitting this on the other endpoint was because it was targeted at validation, so we wanted to be sure people weren't accidently passing nothing. On this endpoint, nothing is treated like the empty config file, you get all the rules generated from the recommended preset with risky enabled.