Skip to content

Commit

Permalink
Allow backslashes in hook names (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
carstingaxion authored Jul 17, 2023
2 parents cf929e5 + 46593fa commit e44b101
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 43 deletions.
49 changes: 9 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<img src="https://raw.githubusercontent.com/figuren-theater/logos/main/favicon.png" alt="figuren.theater Logo" width="100" height="100">
</a>

<h1 align="center">figuren.theater | coding_standards</h1>
<h1 align="center">figuren.theater | coding-standards</h1>

<p align="center">
Coding standards for PHP, JavaScript and CSS within the WordPress Multisite network for puppeteers - <a href="https://figuren.theater">figuren.theater</a>.
Expand All @@ -27,50 +27,19 @@
This is the long desc

* [x] *list closed tracking-issues or `docs` files here*
* [ ] Do you have any [ideas](/issues/new) ?
* [ ] Do you have any [ideas](https://github.com/figuren-theater/coding-standards/issues/new) ?

## Background & Motivation

...

## Install

1. Add this repository to your `composer.json`
```json
"repositories": [
{
"type": "git",
"url": "https://github.com/figuren-theater/coding-standards"
}
]
```
1. Install via command line
```sh
composer require figuren-theater/coding-standards
```

2. Install via command line
```sh
composer require figuren-theater/coding-standards
```

## Usage

### API

```php
Figuren_Theater::API\get_...()
```

### Plugins included

This package contains the following plugins.
Thoose are completely managed by code and lack of their typical UI.

* ...


### What does this package do in addition?

Accompaniying the core functionality of the mentioned plugins, theese **best practices** are included with this package.

* ...


## Built with & uses
Expand All @@ -95,18 +64,18 @@ Don't forget to give the project a star! Thanks again!
## Versioning

We use [Semantic Versioning](http://semver.org/) for versioning. For the versions
available, see the [tags on this repository](/tags).
available, see the [tags on this repository](https://github.com/figuren-theater/coding-standards/tags).

## Authors

- **Carsten Bach** - *Provided idea & code* - [figuren.theater/crew](https://figuren.theater/crew/)

See also the list of [contributors](/contributors)
See also the list of [contributors](https://github.com/figuren-theater/coding-standards/contributors)
who participated in this project.

## License

This project is licensed under the [GPL-3.0-or-later](LICENSE.md), see the [LICENSE](LICENSE) file for
This project is licensed under the **GPL-3.0-or-later**, see the [LICENSE](/LICENSE) file for
details

## Acknowledgments
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"keywords": [
"wordpress",
"coding-standards",
"wpcs"
"wpcs",
"WordPressVIPMinimum"
],
"authors": [
{
Expand Down
7 changes: 5 additions & 2 deletions figurentheater/ruleset.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
<ruleset name="figurentheater">
<description>Coding standards for figuren.theater</description>

<file>.</file>

<exclude-pattern>*/bin/*</exclude-pattern>
<exclude-pattern>*/tests/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
Expand All @@ -29,6 +27,11 @@
</properties>
</rule>

<!-- Allow backslashes in hook names -->
<rule ref="WordPress.NamingConventions.ValidHookName">
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores" />
</rule>

<!-- Prevent deprecation notice when the sniff is not explicitely included. -->
<!-- 11.11.2019: 2.2.0: "The deprecated sniff will be removed in WPCS 3.0.0." ;) -->
<rule ref="WordPress.WP.TimezoneChange.DeprecatedSniff">
Expand Down

0 comments on commit e44b101

Please sign in to comment.