-
Having an example of how to use https://github.com/squizlabs/PHP_CodeSniffer or https://github.com/FriendsOfPHP/PHP-CS-Fixer would be nice for module:
Here's what we had in our .travis.yml file for a…
-
Currently there are 2 types of annotations:
- PHPDoc ones (have space after it's name)
- Non-PHPDoc ones (have opening parenthesis after it's name)
Technically ones that don't have opening parenthesi…
-
### Bug Report
### Environment
I have a cluster in mongo 6, testing I have migrated to mongo 8, with the 1.20 driver.
There is an aggregate query that when executed remains undefined, are …
-
Our team is currently in the process of trying to get codesniffer working in sublime.
So far we have been able to set it up and get it running as it should with the default properties.
However, …
ghost updated
3 years ago
-
Hello,
Having problems when validating a file, showing this message:
PHP CodeSniffer[14:09:16.170000] Error: Arguments must all be strings
PHP CodeSniffer[14:09:19.492000] Error: Arguments mu…
-
### Rule
All new PHP files MUST have strict type mode enabled by starting with `declare(strict_types=1)`;. All updated PHP files SHOULD have strict type mode enabled. PHP interfaces SHOULD NOT have t…
-
Repost from https://github.com/squizlabs/PHP_CodeSniffer/issues/3161 by @gsherwood:
> The colon after a goto label does not have to be the very next token; there can be whitespace and comments betw…
jrfnl updated
6 months ago
-
add more static code analysis for various code types or files
suggestions
* [ ] *some* for javascript
* JSHint (javascript) http://jshint.com/install/ https://github.com/squizlabs/PHP_Code…
-
## Bug Description
The method `AbstractFunctionRestrictionsSniff::is_targetted_token()` is used to determine if a given token is a function call or not. It does not handle [first class callables](h…
-
Duplicated from https://github.com/squizlabs/PHP_CodeSniffer/issues/3889 (and updated from later comments)
----
## Describe the bug
`phpcs:enable` can sometimes wind up overriding a later `…