{"action":"opened","issue":{"url":"https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/642","repository_url":"https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards","labels_url":"https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/642/labels{/name}","comments_url":"https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/642/comments","events_url":"https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/642/events","html_url":"https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/issues/642","id":168152717,"number":642,"title":"Add additional file name checks","user":{"login":"jrfnl","id":663378,"avatar_url":"https://avatars.githubusercontent.com/u/663378?v=3","gravatar_id":"","url":"https://api.github.com/users/jrfnl","html_url":"https://github.com/jrfnl","followers_url":"https://api.github.com/users/jrfnl/followers","following_url":"https://api.github.com/users/jrfnl/following{/other_user}","gists_url":"https://api.github.com/users/jrfnl/gists{/gist_id}","starred_url":"https://api.github.com/users/jrfnl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrfnl/subscriptions","organizations_url":"https://api.github.com/users/jrfnl/orgs","repos_url":"https://api.github.com/users/jrfnl/repos","events_url":"https://api.github.com/users/jrfnl/events{/privacy}","received_events_url":"https://api.github.com/users/jrfnl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/WordPress-Coding-Standards/WordPress-Coding-Standards/labels/phpcs%202.7","name":"phpcs 2.7","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-28T17:34:38Z","updated_at":"2016-07-28T17:34:38Z","closed_at":null,"body":"> Class file names should be based on the class name with class- prepended and the underscores in the class name replaced with hyphens, for example WP_Error becomes:\r\n>\r\n> `class-wp-error.php`\r\n>\r\n> This file-naming standard is for all current and new files with classes. There is one exception for three files that contain code that got ported into BackPress: class.wp-dependencies.php, class.wp-scripts.php, class.wp-styles.php. Those files are prepended with class., a dot after the word class instead of a hyphen.\r\n>\r\n> Files containing template tags in wp-includes should have -template appended to the end of the name so that they are obvious.\r\n>\r\n> `general-template.php`\r\n\r\nRef: https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/#naming-conventions\r\n\r\nThis rule is currently not covered and would have been untestable, however, a recent change in PHPCS which will be included in PHPCS 2.7 will allow for this: https://github.com/squizlabs/PHP_CodeSniffer/issues/1078"}}
{"actor":{"display_login":"jrfnl"}}