{"action":"created","issue":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2996","repository_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer","labels_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2996/labels{/name}","comments_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2996/comments","events_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2996/events","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/2996","id":251890304,"number":2996,"title":"Command to list unspecified fixers","user":{"login":"Slamdunk","id":152236,"avatar_url":"https://avatars0.githubusercontent.com/u/152236?v=4","gravatar_id":"","url":"https://api.github.com/users/Slamdunk","html_url":"https://github.com/Slamdunk","followers_url":"https://api.github.com/users/Slamdunk/followers","following_url":"https://api.github.com/users/Slamdunk/following{/other_user}","gists_url":"https://api.github.com/users/Slamdunk/gists{/gist_id}","starred_url":"https://api.github.com/users/Slamdunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Slamdunk/subscriptions","organizations_url":"https://api.github.com/users/Slamdunk/orgs","repos_url":"https://api.github.com/users/Slamdunk/repos","events_url":"https://api.github.com/users/Slamdunk/events{/privacy}","received_events_url":"https://api.github.com/users/Slamdunk/received_events","type":"User","site_admin":false},"labels":[{"id":291481729,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels/feature%20request","name":"feature request","color":"009800","default":false},{"id":560267676,"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/labels/I/O","name":"I/O","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-08-22T09:16:10Z","updated_at":"2017-09-12T13:33:57Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"It is difficult to keep tracking of which fixers you already wrote in the `.php_cs` and which one you didn't, expecially if you use rulesets or a new version of the tool is released.\r\n\r\nI propose a new command that gets `.php_cs` config, makes a diff with all the fixers available and shows which ones are not specified.\r\n\r\nWith a flag we can also print a `var_export` with all these unspecified fixers set to `false` that can be copy-pasted in the `.php_cs`, so the user can progressively set them to true, or leave them to false to be able to re-run the command in the future.\r\n\r\nSuggestions on the name of this command and flags are welcome."},"comment":{"url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/comments/328854691","html_url":"https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/2996#issuecomment-328854691","issue_url":"https://api.github.com/repos/FriendsOfPHP/PHP-CS-Fixer/issues/2996","id":328854691,"user":{"login":"Aerendir","id":1968622,"avatar_url":"https://avatars3.githubusercontent.com/u/1968622?v=4","gravatar_id":"","url":"https://api.github.com/users/Aerendir","html_url":"https://github.com/Aerendir","followers_url":"https://api.github.com/users/Aerendir/followers","following_url":"https://api.github.com/users/Aerendir/following{/other_user}","gists_url":"https://api.github.com/users/Aerendir/gists{/gist_id}","starred_url":"https://api.github.com/users/Aerendir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aerendir/subscriptions","organizations_url":"https://api.github.com/users/Aerendir/orgs","repos_url":"https://api.github.com/users/Aerendir/repos","events_url":"https://api.github.com/users/Aerendir/events{/privacy}","received_events_url":"https://api.github.com/users/Aerendir/received_events","type":"User","site_admin":false},"created_at":"2017-09-12T13:33:57Z","updated_at":"2017-09-12T13:33:57Z","author_association":"NONE","body":"@Slamdunk , reading again your comments here and going then to your initial issue, I think I've understand what you'd like to have.\r\n\r\nGiven that using the command `vendor/bin/php-cs-fixer compare --show-risky --hide-in-use` I have this as result:\r\n\r\n![schermata 2017-09-12 alle 15 19 05](https://user-images.githubusercontent.com/1968622/30327835-bfc13ae6-97cd-11e7-8b3c-c7212ad6aacc.png)\r\n\r\nIf I understand well your thoughts, you would be able to dump the first column \"Fixer\" (where the fixer name is) in a way that is copy-and-pastable directly in the `.php_cs` file.\r\n\r\nSomething like this:\r\n\r\n```php\r\n'class_keyword_remove' => false,\r\n'combine_consecutive_issets' => false,\r\n'declare_strict_types' => false,\r\n'doctrine_annotation_array_assignment' => false,\r\n'doctrine_annotation_braces' => false,\r\n'doctrine_annotation_indentation' => false,\r\n'doctrine_annotation_spaces' => false,\r\n'general_phpdoc_annotation_remove' => false,\r\n'heredoc_to_nowdoc' => false,\r\n'mb_str_functions' => false,\r\n'native_function_invocation' => false,\r\n'no_blank_lines_before_namespace' => false,\r\n'no_homoglyph_names' => false,\r\n'no_php4_constructor' => false,\r\n'no_superfluous_elseif' => false,\r\n'php_unit_strict' => false,\r\n'php_unit_test_class_requires_covers' => false,\r\n'phpdoc_to_comment' => false,\r\n'pow_to_exponentiation' => false,\r\n'psr0' => false,\r\n'random_api_migration' => false,\r\n'simplified_null_return' => false,\r\n'strict_comparison' => false,\r\n'strict_param' => false,\r\n'ternary_to_null_coalescing' => false,\r\n'void_return' => false\r\n```\r\n\r\nAm I right?"}}
{"actor":{"display_login":"Aerendir"}}