Skip to content

Commit b0bc74b

Browse files
committed
Changed names again
1 parent f2c0cd9 commit b0bc74b

File tree

5 files changed

+42
-16
lines changed

5 files changed

+42
-16
lines changed

BigWing-Default/ruleset.xml renamed to BigWing-WP/ruleset.xml

+15-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
<?xml version="1.0"?>
2-
<ruleset name="BigWing-Default">
3-
<description>A base ruleset that all other BigWing rulesets should extend.</description>
2+
<ruleset name="BigWing-WP">
3+
<description>BigWing's PHP coding standards for WordPress projects.</description>
4+
5+
<arg name="extensions" value="php"/>
6+
<!-- Show sniff codes in all reports, and progress when running -->
7+
<arg value="sp"/>
8+
<!-- Strip the filepaths down to the relevant bit. -->
9+
<arg name="basepath" value="./"/>
10+
<!-- Enables parallel processing when available for faster results. -->
11+
<arg name="parallel" value="8"/>
412

513
<exclude-pattern>*/phpunit.xml*</exclude-pattern>
614
<exclude-pattern>*/languages/*</exclude-pattern>
@@ -11,8 +19,12 @@
1119
<exclude-pattern>*/node_modules/*</exclude-pattern>
1220
<exclude-pattern>*/vendor/*</exclude-pattern>
1321

22+
<!-- Production-ready files -->
23+
<exclude-pattern>*/build/*</exclude-pattern>
24+
<exclude-pattern>*/dist/*</exclude-pattern>
25+
1426
<!-- Ensure certain file types aren't sniffed -->
15-
<exclude-pattern>*\.(css|js)</exclude-pattern>
27+
<exclude-pattern>*\.(s?(a|p?c)ss|jsx?)</exclude-pattern>
1628

1729
<!-- Don't worry about files that don't contain any code -->
1830
<rule ref="Internal.NoCodeFound">

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
== dev-master ==
2+
3+
**20200805**
4+
5+
- Forked from 10up/phpcs-composer
6+
- Added rules used by BigWing for WP projects.
7+
- Added to Packagist as `bigwing/wp-phpcs-default`
8+
- Changed package to `bigwing/phpcs-composer` in preparation for non-WP rules.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
> Composer library to provide drop in installation and configuration of [WPCS](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards) and [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP), setting reasonable defaults for WordPress development with nearly zero configuration.
44
5-
[![Support Level](https://img.shields.io/badge/support-internal-blue.svg)](#support-level) [![MIT License](https://img.shields.io/github/license/bigwing/wp-phpcs-default.svg)](https://github.com/bigwing/wp-phpcs-default/blob/master/LICENSE)
5+
[![Support Level](https://img.shields.io/badge/support-internal-blue.svg)](#support-level) [![MIT License](https://img.shields.io/github/license/bigwing/phpcs-composer.svg)](https://github.com/bigwing/phpcs-composer/blob/master/LICENSE)
66

77
## Installation
88

99
Install the library via Composer:
1010

1111
```bash
12-
$ composer require --dev bigwing/wp-phpcs-default:dev-master
12+
$ composer require --dev bigwing/phpcs-composer:dev-master
1313
```
1414

1515
That's it!

composer.json

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,33 @@
11
{
2-
"name": "bigwing/wp-phpcs-default",
2+
"name": "bigwing/phpcs-composer",
33
"type": "phpcodesniffer-standard",
44
"version": "dev-master",
55
"license": "MIT",
66
"require": {
7+
"php": ">=5.6.0,<8.0.0-dev",
78
"squizlabs/php_codesniffer": "^3.4.0",
89
"wp-coding-standards/wpcs": "^2.3",
9-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
10-
"phpcompatibility/phpcompatibility-wp": "^2.1",
10+
"dealerdirect/phpcodesniffer-composer-installer": "*",
11+
"phpcompatibility/phpcompatibility-wp": "*",
1112
"roave/security-advisories": "dev-master"
1213
},
1314
"prefer-stable": true,
15+
"minimum-stability": "dev",
1416
"authors": [
1517
{
16-
"name": "Ephraim Gregor",
17-
"email": "[email protected]"
18+
"name": "Morgan Estes",
19+
"email": "[email protected]",
20+
"homepage": "https://bigwing.com"
1821
},
1922
{
20-
"name": "Morgan Estes",
21-
"email": "mestes@localiq.com"
23+
"name": "Ephraim Gregor",
24+
"email": "ephraim.gregor@10up.com"
2225
}
2326
],
2427
"scripts": {
2528
"config-cs": [
2629
"Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
27-
"\"vendor/bin/phpcs\" --config-set default_standard BigWing-Default"
30+
"\"vendor/bin/phpcs\" --config-set default_standard BigWing-WP"
2831
],
2932
"post-install-cmd": "@config-cs",
3033
"post-update-cmd": "@config-cs",

composer.lock

+6-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)