An open API service indexing awesome lists of open source software.

https://github.com/polylang/polylang-cs

Polylang Coding Standards is a ruleset for code quality tools to be used in WP Syntex's projects.
https://github.com/polylang/polylang-cs

php phpcs-standard wordpress

Last synced: 5 months ago
JSON representation

Polylang Coding Standards is a ruleset for code quality tools to be used in WP Syntex's projects.

Awesome Lists containing this project

README

          

# Polylang Coding Standards

[![Version](https://img.shields.io/badge/packagist-dev--main-blue)](https://packagist.org/packages/wpsyntex/polylang-cs)
[![License: MIT](https://img.shields.io/github/license/polylang/polylang-cs)](https://github.com/polylang/polylang-cs/blob/main/LICENSE)

Polylang Coding Standards is a ruleset for code quality tools to be used in WP Syntex's projects.

## Installation

Standards are provided as a [Composer](https://getcomposer.org/) package and can be installed with:

```bash
composer require --dev wpsyntex/polylang-cs:dev-main
```

## PHP Code Sniffer

Set of [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) rules.

The following rulesets are included:

- Several custom sniffs mainly focused on naming conventions,
- [NeutronStandard](https://github.com/Automattic/phpcs-neutron-standard),
- [PHPCompatibilityWP](https://github.com/PHPCompatibility/PHPCompatibilityWP) (for PHP and WP version),
- [Suin](https://github.com/suin/phpcs-psr4-sniff) (for PSR-4),
- [WordPress](https://github.com/WordPress/WordPress-Coding-Standards),
- [WordPressVIPMinimum](https://github.com/Automattic/VIP-Coding-Standards).

Example for your `phpcs.xml.dist` file:

```xml

Coding standards for Polylang Foobar.



.









```