diff --git a/.distignore b/.distignore index ac8837d1..6f1f6f9e 100644 --- a/.distignore +++ b/.distignore @@ -12,4 +12,13 @@ renovate.json .distignore .gitignore .editorconfig -.gitattributes \ No newline at end of file +.gitattributes +.phplint.yml +.vipgoci_lint_skip_folders +.vipgoci_phpcs_skip_folders +composer.lock +config.yml +courier-notices.code-workspace +gulpfile.babel.js +phpcs.xml +renovate.json \ No newline at end of file diff --git a/.phplint.yml b/.phplint.yml new file mode 100644 index 00000000..61685d10 --- /dev/null +++ b/.phplint.yml @@ -0,0 +1,8 @@ +path: ./ +jobs: 10 +cache: build/phplint.cache +extensions: + - php +exclude: + - vendor +warning: true \ No newline at end of file diff --git a/.vipgoci_lint_skip_folders b/.vipgoci_lint_skip_folders new file mode 100644 index 00000000..8697051b --- /dev/null +++ b/.vipgoci_lint_skip_folders @@ -0,0 +1,7 @@ +node_modules +vendor +.github +.deployment +assets +sourcedata +wsdl \ No newline at end of file diff --git a/.vipgoci_phpcs_skip_folders b/.vipgoci_phpcs_skip_folders new file mode 100644 index 00000000..8697051b --- /dev/null +++ b/.vipgoci_phpcs_skip_folders @@ -0,0 +1,7 @@ +node_modules +vendor +.github +.deployment +assets +sourcedata +wsdl \ No newline at end of file diff --git a/composer.json b/composer.json index dc32efa5..9f61132c 100644 --- a/composer.json +++ b/composer.json @@ -57,6 +57,8 @@ ], "coverage": [ "@php ./vendor/phpunit/phpunit/phpunit" - ] + ], + "lint-fix": "phpcbf .", + "php-cs-fixer": "./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix ./ --config=./.php-cs-fixer.dist.php" } } diff --git a/phpcs.xml b/phpcs.xml index 6393323a..1dde1f2a 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -1,22 +1,89 @@ - - Linchpin WordPress Project PHPCS Sniffs - - - - - - - - - - - - - - node_modules/* - vendor/* - .github/* - .deployment/* - /src/Helper/WP_List_Table.php - + + Linchpin WordPress Project PHPCS Sniffs + + + + + + + + + 0 + + + + + + + + + + + + . + + + \.github/* + \.deployment/* + \.wordpress-org/* + assets/* + wiki/* + vendor/* + node_modules/* + tests/* + templates/* + gulpfile\.js + *.css* + *.js* + ^build/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + *\.css + *\.js + + + *\.css + *\.js + + + + *\.css + *\.js + + + + \ No newline at end of file