[wp-trac] [WordPress Trac] #49781: PHPCS config: exclude plugins and themes within src

WordPress Trac noreply at wordpress.org
Thu Apr 2 15:52:58 UTC 2020


#49781: PHPCS config: exclude plugins and themes within src
------------------------------+-----------------------------
 Reporter:  johnbillion       |      Owner:  (none)
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 When running the PHPCS linting locally (eg. with `composer lint:errors`),
 there are files that can exist within an installation that's running from
 `src` which should not be linted:

 * Plugins
 * Must-Use Plugins
 * Drop-in plugins
 * Themes other than the twenty*  themes

 These should all be excluded from linting so that a clean lint can be run
 on an active installation of WordPress running from `src`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49781>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list