#Laravel Pint not using "class_keyword" rule

4 messages · Page 1 of 1 (latest)

rugged valve
#

I've got pint running on v1.18, php-cs-fixer v3.56.0 so no issues there. Only thing is when adding the class_keyword rule to my list, it doesnt seem to be taking effect. Anyone got any ideas? I saw php-cs-fixer marks this rule as risky, is there anything additional I need to do to make this run? I can confirm that pint is running and using my config.

{
  "exclude": "database/migrations",
  "allowRisky": true,
  "rules": {
    "php_unit_method_casing": { "case": "camel_case" },
    "single_line_empty_body": true,
    "array_syntax": { "syntax": "short" },
    "class_keyword": true
  }
}
hallow breach
#

It's not documented, so you'll probably have to dive into the source to see if it's possible to enable risky rules.

rugged valve
#

just took a look and it does look like risky rules are enabled by default

#

the class_keyword seemed to be working on the pint repo itself however insterestingly still not on mine