-
I have added required packagists:
```
"squizlabs/php_codesniffer": "*",
"wimg/php-compatibility": "dev-master",
"simplyadmire/composer-plugins": "@dev"
```
And after `vendor/bin/phpcs --standard=PHP…
-
According to [the Contributing doc](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/blob/develop/CONTRIBUTING.md#unit-testing), PHPUnit should be available via `/vendor/bin/ph…
-
#### Rule:
Have either UNIX or DOS line endings, not both. This rule gets applied to PHP, CSS, JS and TXT files.
Ref: https://make.wordpress.org/themes/handbook/review/required/theme-check-plugin/#l…
jrfnl updated
6 years ago
-
## Currently
There doesn't appear to be any code standards checks (just some for documentation).
## Issue
While not critical to the plugin behaviour, it can make maintenance easier if others cont…
-
In PHP 7 we can declare return type for method:
```php
function m() : int {
}
```
In this case "int" is tokenized as `T_RETURN_TYPE` and it's fine.
We can also declare there complex type:
```…
-
It seems to me that if we transfer this repository to Automattic account, we could integrate it with Travis.com. This way we can start checking for coding standard violations and run WC unit tests aut…
-
An arbitrary config directive `testVersion` is used for the [PHPCompatibility](https://github.com/wimg/PHPCompatibility/) standard to pass the PHP versions code should be compatible with and is subseq…
jrfnl updated
6 years ago
-
Latest v0.0.15 giving linting error :- [phpcs] get_category_link() is prohibited, please use wpcom_vip_get_term_link() instead.
-
M-x stops working after installing ivy, counsel and swiper through use-package. Here is the error-log
Debugger entered--Lisp error: (cyclic-function-indirection r-mode)
commandp(r-mode)
#f(c…
-
It would be nice if `Squiz.WhiteSpace.FunctionSpacing.After` would not require a blank line after a method if it is the last method in a class.
``` php
class A
{
public function method1()
{
}
…