You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Block delimiter: update class to be closer to original codebase (#43683)
* Block delimiter: update class to be closer to original codebase
Since the class does not rely on WordPress, we can afford to be more permissive, and not necessarily stick to WordPress coding standards.
This reverts some of the changes made in #43648.
* Add changelog
* Update Phan baseline to avoid errors
* Update phpcs config to avoid warnings
* Ignore more rules to match original file
* Update readme to clarify coding standards
Copy file name to clipboardExpand all lines: projects/packages/block-delimiter/README.md
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -364,6 +364,20 @@ This makes it ideal for operations like finding specific blocks, counting block
364
364
365
365
You can contribute to this package by submitting a pull request to the [Jetpack repository](https://github.com/Automattic/jetpack/tree/trunk/projects/packages/block-delimiter).
366
366
367
+
### Coding standards
368
+
369
+
This package follows standards set by the [Jetpack Codesniffer package](https://packagist.org/packages/automattic/jetpack-codesniffer), with a few exceptions documented in the package's `.phpcs.dir.xml` file.
370
+
371
+
### Testing
372
+
373
+
When introducing new features or making changes to existing code, please add tests.
374
+
375
+
To run the tests, you can use the following command:
376
+
377
+
```bash
378
+
composer phpunit
379
+
```
380
+
367
381
## Using this package in your WordPress plugin
368
382
369
383
If you plan on using this package in your WordPress plugin, we would recommend that you use [Jetpack Autoloader](https://packagist.org/packages/automattic/jetpack-autoloader) as your autoloader. This will allow for maximum interoperability with other plugins that use this package as well.
0 commit comments