Wordpress/.gitignore
jrf 3581d34bb0 Build/Tools: Update PHPCS ruleset for WP Core and related Composer setup.
`.gitignore` + `svn:ignore`:
* Add the typical filenames of overloaded PHPCS configs to `.gitignore`.

Composer:
* Use the `develop` (Packagist `dev-master`) version of WPCS as it contains lots of bugfixes.
* Remove the PHPCS dependency. This is a dependency of WPCS, not of WP Core itself. This will also make sure that the PHPCS version used is always one which is supported by WPCS.
* Refreshed the `composer.lock` file.

PHPCS ruleset:
* Removed a reference to a sniff which doesn't exist in WPCS yet.
* Use the PHPCS 3.x `basepath` option to clean up the file paths PHPCS shows in the reports.
* Use the PHPCS 3.x `parallel` option to enable parallel scanning whenever possible to speed up the scans.
* Whitelist the `wp-includes/l10n.php` file from issues being reported by the `WordPress.WP.I18n` sniff.

Fixes #44366.

git-svn-id: https://develop.svn.wordpress.org/trunk@43348 602fd350-edb4-49c9-b593-d223f7449a82
2018-06-15 15:56:58 +00:00

65 lines
1.5 KiB
Plaintext

# gitignore file for WordPress Core
# Configuration files with possibly sensitive information
wp-config.php
wp-tests-config.php
.htaccess
# Files and folders related to build/test tools
/phpunit.xml
/.phpcs.xml
/phpcs.xml
/tests/phpunit/data/plugins/wordpress-importer
/tests/phpunit/data/.trac-ticket-cache*
/tests/qunit/compiled.html
/src/.wp-tests-version
/node_modules
/npm-debug.log
/build
/tests/phpunit/build
/wp-cli.local.yml
/jsdoc
# Files and folders that get created in wp-content
/src/wp-content/blogs.dir
/src/wp-content/languages
/src/wp-content/mu-plugins
/src/wp-content/plugins
/src/wp-content/themes/*
!/src/wp-content/themes/twentyten
!/src/wp-content/themes/twentyeleven
!/src/wp-content/themes/twentytwelve
!/src/wp-content/themes/twentythirteen
!/src/wp-content/themes/twentyfourteen
!/src/wp-content/themes/twentyfifteen
!/src/wp-content/themes/twentyseventeen
/src/wp-content/upgrade
/src/wp-content/uploads
/src/wp-content/advanced-cache.php
/src/wp-content/blog-deleted.php
/src/wp-content/blog-inactive.php
/src/wp-content/blog-suspended.php
/src/wp-content/db.php
/src/wp-content/db-error.php
/src/wp-content/debug.log
/src/wp-content/install.php
/src/wp-content/maintenance.php
/src/wp-content/object-cache.php
/src/wp-content/sunrise.php
# Operating system specific files
.DS_Store
# Ignore other .gitignore files to allow for personal customizations
.gitignore
# Files related to applying patches
*.rej
*.orig
*.patch
*.diff
.svn
vendor
!/src/js/_enqueues/vendor