wpcs-docs icon indicating copy to clipboard operation
wpcs-docs copied to clipboard

WordPress Coding Standards Docs

Results 21 wpcs-docs issues
Sort by recently updated
recently updated
newest added

This PR depends on #105. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about writing the magic constants and is the...

Type: Enhancement
Type: Documentation

This PR depends on #104. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about the spread operator and is the continuation...

Type: Enhancement
Type: Documentation

This PR depends on #110. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about the include/require statements and is the continuation...

Type: Enhancement
Type: Documentation

This PR depends on #108. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about the object instantiation and is the continuation...

Type: Enhancement
Type: Documentation

This PR depends on #107. Once that is merged, this PR should be rebased to the master branch. The PR adds rules about the order of property and method modifiers...

Type: Enhancement
Type: Documentation

The [Formatting SQL Statements](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#formatting-sql-statements) section currently includes a paragraph on [string and integer placeholders](https://github.com/WordPress/wpcs-docs/blob/dff1d8622d201bf1d9bc3b9896f783a44778b0cc/wordpress-coding-standards/php.md?plain=1#L465): > `%s` is used for string placeholders and `%d` is used for integer placeholders. Note that...

Type: Enhancement

Currently, the main branch of this repo is named `master` and all the other projects are using `trunk` or `main` as the main branches instead of `master`. We should do...

Type: Enhancement
Status: Awaiting Feedback

Idea that Juliette sugessted in the [PR](https://github.com/WordPress/wpcs-docs/pull/102#discussion_r955986866) was to standardize the order of certain parts of a rule in the handbook: 1. CS rules 2. Possible code samples 3. Usage...

Type: Enhancement

We have a section in the PHP coding standards called `Indentation`: ![Screenshot 2022-07-22 at 20 53 15](https://user-images.githubusercontent.com/88371/180517499-582a457f-48e5-464b-bc0d-51f69647d7cf.png) However, the first "exception" to it (second sentence) is about mid-line alignment. Would...

The Opening and Closing PHP Tags Section - Specifically the case of single lines PHP inside HTML blocks was unclear and not full. Please see the above-proposed suggestion for edit...