benmatselby / sublime-phpcs

🔍 PHP CodeSniffer, PHP Coding Standard Fixer, Linter, and Mess Detector Support for Sublime Text
Other
814 stars 126 forks source link

phpcs.sublime-settings configuration file parameter error #216

Closed lcuncle closed 1 year ago

lcuncle commented 1 year ago

phpcs.sublime-settings { "php_cs_fixer_additional_args": { "--rules": "{\"binary_operator_spaces\": {\"default\": \"single_space\", \"operators\": {\"=>\": \"align_single_space_minimal\"}}}", }, }

Q1: the parameter contains symbols =>, it cannot work

Q2: can this value allow JSON data types

lcuncle commented 1 year ago

The issue has been resolved through other means. ` "php_cs_fixer_additional_args": { "--config": ".php-cs-fixer.php", // It can be placed in the default location. C:\Users\YOUR_USERNAME_HERE\.php-cs-fixer.php

// "--config": "D:\YOUR_PROJECT_PATH\.php-cs-fixer.php", // Or it can be placed in the project location using absolute path.

// "--rules": "{\"concat_space\": {\"spacing\": \"one\"}}", // Ot it can be set with simple rules. }, `

benmatselby commented 1 year ago

Fab news, @lcuncle , thanks for coming back to share your solution. I'll close the ticket now.